Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001554/0.001554, allocations: 180.5 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.344/1.344, allocations: 223.2 MB / 240.3 MB, free: 10.17 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008639/0.0008639, allocations: 90.42 kB / 291.5 MB, free: 10.7 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002364/0.0002365, allocations: 4 kB / 351.2 MB, free: 15.01 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2182/0.2185, allocations: 50.41 MB / 401.6 MB, free: 32.55 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09037/0.3089, allocations: 78.66 MB / 480.2 MB, free: 1.781 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002354/0.3092, allocations: 71.97 kB / 480.3 MB, free: 1.711 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006663/0.3159, allocations: 2.384 MB / 482.7 MB, free: 15.33 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.3159, allocations: 4 kB / 482.7 MB, free: 15.32 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.17e-05/0.3159, allocations: 4 kB / 482.7 MB, free: 15.32 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0005237/0.3164, allocations: 422.8 kB / 483.1 MB, free: 14.86 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.681e-05/0.3165, allocations: 8.031 kB / 483.1 MB, free: 14.85 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.64e-05/0.3165, allocations: 46.55 kB / 483.2 MB, free: 14.8 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.577e-05/0.3166, allocations: 15.91 kB / 483.2 MB, free: 14.78 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001966/0.3168, allocations: 210.9 kB / 483.4 MB, free: 14.54 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.375e-05/0.3168, allocations: 11.98 kB / 483.4 MB, free: 14.52 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.932e-05/0.3168, allocations: 16 kB / 483.4 MB, free: 14.51 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004675/0.3173, allocations: 251 kB / 483.7 MB, free: 14.24 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.457e-05/0.3173, allocations: 7.891 kB / 483.7 MB, free: 14.23 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.509e-05/0.3174, allocations: 4 kB / 483.7 MB, free: 14.23 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.065e-06/0.3174, allocations: 4 kB / 483.7 MB, free: 14.22 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000264/0.3176, allocations: 95.88 kB / 483.8 MB, free: 14.13 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006055/0.3183, allocations: 0.5921 MB / 484.4 MB, free: 13.46 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003316/0.3186, allocations: 143.9 kB / 484.5 MB, free: 13.29 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.524e-05/0.3186, allocations: 15.98 kB / 484.5 MB, free: 13.28 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.149e-05/0.3187, allocations: 42.58 kB / 484.6 MB, free: 13.23 MB / 362.7 MB Notification: Performance of pre-optimization done (n=15): time 1.413e-06/0.3187, allocations: 0 / 484.6 MB, free: 13.23 MB / 362.7 MB Notification: Performance of matching and sorting (n=15): time 0.0005132/0.3192, allocations: 189.5 kB / 484.7 MB, free: 13.04 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.474e-05/0.3193, allocations: 114.8 kB / 484.9 MB, free: 12.9 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.36e-05/0.3194, allocations: 120.8 kB / 485 MB, free: 12.77 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.867e-05/0.3194, allocations: 33.69 kB / 485 MB, free: 12.73 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.212e-05/0.3195, allocations: 108 kB / 485.1 MB, free: 12.62 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.539e-05/0.3195, allocations: 31.78 kB / 485.1 MB, free: 12.59 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.26e-06/0.3195, allocations: 0 / 485.1 MB, free: 12.59 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001237/0.3197, allocations: 330.8 kB / 485.5 MB, free: 12.26 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001196/0.3198, allocations: 36.72 kB / 485.5 MB, free: 12.22 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001701/0.32, allocations: 142.5 kB / 485.6 MB, free: 12.04 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001356/0.3201, allocations: 61.23 kB / 485.7 MB, free: 11.98 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.458e-06/0.3201, allocations: 4 kB / 485.7 MB, free: 11.97 MB / 362.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003662/0.3205, allocations: 213.1 kB / 485.9 MB, free: 11.76 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.399e-05/0.3205, allocations: 4 kB / 485.9 MB, free: 11.75 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.943e-06/0.3205, allocations: 4 kB / 485.9 MB, free: 11.75 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.595e-05/0.3206, allocations: 8 kB / 485.9 MB, free: 11.74 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001587/0.3207, allocations: 47.91 kB / 486 MB, free: 11.7 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.376e-06/0.3207, allocations: 4.469 kB / 486 MB, free: 11.69 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001081/0.3208, allocations: 32.06 kB / 486 MB, free: 11.66 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.215e-05/0.3209, allocations: 8 kB / 486 MB, free: 11.65 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001034/0.321, allocations: 136.6 kB / 486.2 MB, free: 11.51 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001417/0.3211, allocations: 89.47 kB / 486.2 MB, free: 11.42 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.241e-05/0.3212, allocations: 20.7 kB / 486.3 MB, free: 11.4 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-06/0.3212, allocations: 0 / 486.3 MB, free: 11.4 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.3212, allocations: 7.984 kB / 486.3 MB, free: 11.39 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.887e-06/0.3213, allocations: 4 kB / 486.3 MB, free: 11.39 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000258/0.3215, allocations: 213.4 kB / 486.5 MB, free: 11.13 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.3215, allocations: 0 / 486.5 MB, free: 11.13 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001883/0.3217, allocations: 35.98 kB / 486.5 MB, free: 11.09 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.424e-06/0.3217, allocations: 0 / 486.5 MB, free: 11.09 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.379e-05/0.3218, allocations: 4 kB / 486.5 MB, free: 11.09 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.704e-06/0.3218, allocations: 0 / 486.5 MB, free: 11.09 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.807e-06/0.3218, allocations: 7.922 kB / 486.5 MB, free: 11.08 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00053/0.3223, allocations: 414.9 kB / 486.9 MB, free: 10.64 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.558e-05/0.3224, allocations: 92.89 kB / 487 MB, free: 10.54 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.34e-05/0.3224, allocations: 4 kB / 487 MB, free: 10.53 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001415/0.3225, allocations: 15.98 kB / 487 MB, free: 10.52 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.504e-05/0.3226, allocations: 11.94 kB / 487.1 MB, free: 10.5 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.097e-06/0.3226, allocations: 4 kB / 487.1 MB, free: 10.5 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.499e-05/0.3227, allocations: 103.3 kB / 487.2 MB, free: 10.4 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3227, allocations: 0 / 487.2 MB, free: 10.4 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000311/0.323, allocations: 28 kB / 487.2 MB, free: 10.37 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (load.phi,load.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008366/0.3238, allocations: 1.097 MB / 488.3 MB, free: 9.238 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000301/0.3242, allocations: 135.7 kB / 488.4 MB, free: 9.105 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.3242, allocations: 0.9375 kB / 488.4 MB, free: 9.105 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 9.969e-05/0.3243, allocations: 39.91 kB / 488.5 MB, free: 9.066 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000333/0.3246, allocations: 55.94 kB / 488.5 MB, free: 9.012 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002157/0.3268, allocations: 3.261 MB / 491.8 MB, free: 5.637 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002664/0.3271, allocations: 0.7164 MB / 492.5 MB, free: 4.895 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.665e-05/0.3271, allocations: 9.078 kB / 492.5 MB, free: 4.887 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.247e-05/0.3272, allocations: 40.23 kB / 492.5 MB, free: 4.848 MB / 362.7 MB Notification: Performance of SimCode: time 4.41e-07/0.3272, allocations: 0 / 492.5 MB, free: 4.848 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0124/0.3396, allocations: 2.395 MB / 494.9 MB, free: 2.637 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000169/0.3398, allocations: 208.7 kB / 495.1 MB, free: 2.398 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.697/2.037, allocations: 6.719 kB / 495.1 MB, free: 2.395 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat does not exist to compare? outputFormat=mat