Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_SimpleControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_SimpleControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001555/0.00156, allocations: 184.2 kB / 15.8 MB, free: 6.316 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.142/2.142, allocations: 205.4 MB / 221.9 MB, free: 13.84 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00111/0.001109, allocations: 94.86 kB / 270.3 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.09716/0.09716, allocations: 12.59 MB / 331.1 MB, free: 10.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005446/0.0005446, allocations: 13.97 kB / 392.1 MB, free: 54.83 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09543/0.09602, allocations: 50.37 MB / 442.5 MB, free: 10.85 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1603/0.2564, allocations: 79.13 MB / 0.5094 GB, free: 11.61 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003073/0.2568, allocations: 75.95 kB / 0.5094 GB, free: 11.54 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009529/0.2663, allocations: 2.188 MB / 0.5116 GB, free: 9.348 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.164e-06/0.2664, allocations: 0 / 0.5116 GB, free: 9.348 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.155e-05/0.2664, allocations: 0 / 0.5116 GB, free: 9.348 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: 21 * Number of variables: 21 Notification: Performance of Generate backend data structure: time 0.0006953/0.2671, allocations: 411.1 kB / 0.512 GB, free: 8.895 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.674e-05/0.2672, allocations: 8.031 kB / 0.512 GB, free: 8.887 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.574e-05/0.2672, allocations: 42.55 kB / 0.512 GB, free: 8.836 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.194e-05/0.2673, allocations: 11.91 kB / 0.512 GB, free: 8.824 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002429/0.2675, allocations: 190.9 kB / 0.5122 GB, free: 8.598 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.843e-05/0.2676, allocations: 8.141 kB / 0.5122 GB, free: 8.59 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.398e-05/0.2676, allocations: 11.91 kB / 0.5122 GB, free: 8.578 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004078/0.268, allocations: 128.4 kB / 0.5124 GB, free: 8.445 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.696e-05/0.2681, allocations: 0 / 0.5124 GB, free: 8.445 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.983e-05/0.2681, allocations: 4 kB / 0.5124 GB, free: 8.441 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.235e-06/0.2681, allocations: 4 kB / 0.5124 GB, free: 8.438 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004053/0.2685, allocations: 83.88 kB / 0.5124 GB, free: 8.355 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001116/0.2697, allocations: 0.542 MB / 0.513 GB, free: 7.746 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003197/0.27, allocations: 78.61 kB / 0.513 GB, free: 7.66 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.939e-05/0.2701, allocations: 4 kB / 0.513 GB, free: 7.656 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.185e-05/0.2701, allocations: 34.56 kB / 0.5131 GB, free: 7.613 MB / 362.7 MB Notification: Performance of pre-optimization done (n=7): time 2.134e-06/0.2701, allocations: 3.938 kB / 0.5131 GB, free: 7.609 MB / 362.7 MB Notification: Performance of matching and sorting (n=7): time 0.0006852/0.2708, allocations: 145.7 kB / 0.5132 GB, free: 7.461 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.906e-05/0.2709, allocations: 51.41 kB / 0.5133 GB, free: 7.398 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001326/0.271, allocations: 116.9 kB / 0.5134 GB, free: 7.277 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.154e-05/0.271, allocations: 25.7 kB / 0.5134 GB, free: 7.246 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.592e-05/0.2711, allocations: 119.8 kB / 0.5135 GB, free: 7.125 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.77e-05/0.2712, allocations: 23.64 kB / 0.5135 GB, free: 7.102 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.666e-05/0.2712, allocations: 8 kB / 0.5136 GB, free: 7.094 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001481/0.2714, allocations: 314.8 kB / 0.5139 GB, free: 6.777 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001977/0.2716, allocations: 39.98 kB / 0.5139 GB, free: 6.738 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002206/0.2718, allocations: 76.19 kB / 0.514 GB, free: 6.648 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002151/0.2721, allocations: 47.92 kB / 0.514 GB, free: 6.602 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.387e-06/0.2721, allocations: 0 / 0.514 GB, free: 6.602 MB / 362.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0005214/0.2726, allocations: 153.4 kB / 0.5142 GB, free: 6.445 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.048e-05/0.2726, allocations: 4 kB / 0.5142 GB, free: 6.441 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.665e-06/0.2727, allocations: 0 / 0.5142 GB, free: 6.441 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.028e-05/0.2727, allocations: 4 kB / 0.5142 GB, free: 6.438 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002866/0.273, allocations: 31.92 kB / 0.5142 GB, free: 6.406 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.391e-05/0.273, allocations: 4 kB / 0.5142 GB, free: 6.402 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001436/0.2732, allocations: 24.02 kB / 0.5142 GB, free: 6.379 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.436e-05/0.2732, allocations: 4 kB / 0.5142 GB, free: 6.375 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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.0001327/0.2733, allocations: 121.6 kB / 0.5143 GB, free: 6.246 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.187e-05/0.2734, allocations: 11.86 kB / 0.5144 GB, free: 6.234 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.958e-05/0.2735, allocations: 12.38 kB / 0.5144 GB, free: 6.219 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.757e-06/0.2735, allocations: 0 / 0.5144 GB, free: 6.219 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.925e-06/0.2735, allocations: 3.984 kB / 0.5144 GB, free: 6.215 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/0.2735, allocations: 4 kB / 0.5144 GB, free: 6.211 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002896/0.2738, allocations: 189.6 kB / 0.5146 GB, free: 5.977 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.509e-06/0.2738, allocations: 3.984 kB / 0.5146 GB, free: 5.973 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002734/0.2741, allocations: 35.91 kB / 0.5146 GB, free: 5.938 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.262e-06/0.2741, allocations: 3.953 kB / 0.5146 GB, free: 5.934 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.431e-05/0.2741, allocations: 0 / 0.5146 GB, free: 5.934 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.2742, allocations: 0 / 0.5146 GB, free: 5.934 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.2742, allocations: 0 / 0.5146 GB, free: 5.934 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007113/0.2749, allocations: 247.4 kB / 0.5148 GB, free: 5.676 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.524e-05/0.275, allocations: 85.02 kB / 0.5149 GB, free: 5.574 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.815e-05/0.275, allocations: 3.953 kB / 0.5149 GB, free: 5.57 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001636/0.2752, allocations: 20.03 kB / 0.5149 GB, free: 5.551 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.843e-05/0.2752, allocations: 0 / 0.5149 GB, free: 5.551 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.056e-05/0.2753, allocations: 7.938 kB / 0.5149 GB, free: 5.543 MB / 362.7 MB Notification: Performance of sorting global known variables: time 9.073e-05/0.2754, allocations: 95.25 kB / 0.515 GB, free: 5.449 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.385e-06/0.2754, allocations: 0 / 0.515 GB, free: 5.449 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003537/0.2757, allocations: 31.88 kB / 0.5151 GB, free: 5.418 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (load.phi,load.w,PI.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 7 * 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.001051/0.2768, allocations: 0.7791 MB / 0.5158 GB, free: 4.613 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004967/0.2773, allocations: 95.97 kB / 0.5159 GB, free: 4.52 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.2773, allocations: 0 / 0.5159 GB, free: 4.52 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001978/0.2775, allocations: 48.17 kB / 0.516 GB, free: 4.473 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003833/0.2779, allocations: 23.89 kB / 0.516 GB, free: 4.449 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002483/0.2804, allocations: 1.484 MB / 0.5174 GB, free: 2.895 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003792/0.2809, allocations: 0.7004 MB / 0.5181 GB, free: 2.168 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 8.369e-05/0.281, allocations: 8.422 kB / 0.5181 GB, free: 2.16 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001105/0.2811, allocations: 27.44 kB / 0.5182 GB, free: 2.133 MB / 362.7 MB Notification: Performance of SimCode: time 1.042e-06/0.2811, allocations: 0 / 0.5182 GB, free: 2.133 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02647/0.3076, allocations: 2.031 MB / 0.5201 GB, free: 116 kB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.3425/0.6502, allocations: 212.7 kB / 0.5203 GB, free: 88.18 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.515/3.165, allocations: 0 / 0.5203 GB, free: 88.18 MB / 362.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_SimpleControlledDrive_Continuous_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_SimpleControlledDrive_Continuous.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous_res.mat does not exist to compare? outputFormat=mat