Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.Continuous.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(ModelicaTest.Blocks.Continuous,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_Continuous",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Continuous,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_Continuous",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.0009401/0.0009402, allocations: 169.1 kB / 8.742 MB, free: 344 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.47/1.47, allocations: 221.5 MB / 230.7 MB, free: 7.559 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009045/0.0009045, allocations: 100.5 kB / 281.6 MB, free: 5.312 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2051/0.2051, allocations: 44.15 MB / 376.5 MB, free: 3.039 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.983e-05/1.987e-05, allocations: 4.219 kB / 444.7 MB, free: 15.13 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1274/0.1274, allocations: 61.92 MB / 0.4948 GB, free: 1.148 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4343/0.5618, allocations: 95.77 MB / 0.5883 GB, free: 0.543 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002707/0.5621, allocations: 67.97 kB / 0.5884 GB, free: 488 kB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04345/0.6056, allocations: 14.58 MB / 0.6026 GB, free: 1.879 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.362e-06/0.6057, allocations: 0 / 0.6026 GB, free: 1.879 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.7e-05/0.6057, allocations: 20 kB / 0.6026 GB, free: 1.859 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 110 * Number of variables: 110 Notification: Performance of Generate backend data structure: time 0.001808/0.6076, allocations: 0.9583 MB / 0.6036 GB, free: 0.8516 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.612e-05/0.6076, allocations: 11.98 kB / 0.6036 GB, free: 0.8398 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000185/0.6078, allocations: 90.97 kB / 0.6036 GB, free: 0.75 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009912/0.6088, allocations: 0.5473 MB / 0.6042 GB, free: 168 kB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.773e-05/0.6088, allocations: 16 kB / 0.6042 GB, free: 152 kB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.384e-05/0.6089, allocations: 39.91 kB / 0.6042 GB, free: 112 kB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006255/0.6096, allocations: 330.6 kB / 0.6046 GB, free: 15.78 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007958/0.6104, allocations: 0.4939 MB / 0.605 GB, free: 15.23 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.854e-05/0.6104, allocations: 0 / 0.605 GB, free: 15.23 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.497e-05/0.6105, allocations: 4 kB / 0.605 GB, free: 15.23 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.591e-05/0.6105, allocations: 15.98 kB / 0.6051 GB, free: 15.21 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003927/0.6144, allocations: 2.615 MB / 0.6076 GB, free: 12.51 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008971/0.6153, allocations: 453.5 kB / 0.608 GB, free: 12.04 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003228/0.6157, allocations: 190.5 kB / 0.6082 GB, free: 11.85 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.398e-05/0.6157, allocations: 4 kB / 0.6082 GB, free: 11.84 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.409e-05/0.6158, allocations: 38.56 kB / 0.6083 GB, free: 11.8 MB / 426.7 MB Notification: Performance of pre-optimization done (n=43): time 2.946e-06/0.6158, allocations: 0 / 0.6083 GB, free: 11.8 MB / 426.7 MB Notification: Performance of matching and sorting (n=44): time 0.001496/0.6173, allocations: 0.7652 MB / 0.609 GB, free: 11.02 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.478e-05/0.6174, allocations: 140.5 kB / 0.6091 GB, free: 10.85 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006086/0.618, allocations: 499.7 kB / 0.6096 GB, free: 10.36 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 7.507e-05/0.6181, allocations: 26.55 kB / 0.6096 GB, free: 10.33 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003124/0.6184, allocations: 360.6 kB / 0.61 GB, free: 9.969 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001545/0.6186, allocations: 165.5 kB / 0.6101 GB, free: 9.805 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.915e-05/0.6186, allocations: 0 / 0.6101 GB, free: 9.805 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002481/0.6189, allocations: 390.7 kB / 0.6105 GB, free: 9.414 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003539/0.6192, allocations: 197.5 kB / 0.6107 GB, free: 9.223 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004954/0.6197, allocations: 345.1 kB / 0.611 GB, free: 8.812 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003865/0.6201, allocations: 233.2 kB / 0.6113 GB, free: 8.586 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.6201, allocations: 0 / 0.6113 GB, free: 8.586 MB / 426.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.0009792/0.6211, allocations: 0.6236 MB / 0.6119 GB, free: 7.957 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007938/0.6219, allocations: 1.745 MB / 0.6136 GB, free: 6.078 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.023e-05/0.6219, allocations: 4 kB / 0.6136 GB, free: 6.074 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.109e-05/0.622, allocations: 8 kB / 0.6136 GB, free: 6.066 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007057/0.6227, allocations: 163.8 kB / 0.6137 GB, free: 5.906 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.276e-05/0.6227, allocations: 11.94 kB / 0.6138 GB, free: 5.895 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005448/0.6233, allocations: 83.53 kB / 0.6138 GB, free: 5.812 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.6e-05/0.6233, allocations: 24 kB / 0.6139 GB, free: 5.789 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.544e-06/0.6233, allocations: 4 kB / 0.6139 GB, free: 5.785 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008383/0.6242, allocations: 0.5105 MB / 0.6144 GB, free: 5.277 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.651e-06/0.6242, allocations: 7.938 kB / 0.6144 GB, free: 5.27 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.094e-05/0.6242, allocations: 11.98 kB / 0.6144 GB, free: 5.258 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006171/0.6248, allocations: 152.2 kB / 0.6145 GB, free: 5.109 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.09e-05/0.6249, allocations: 11.94 kB / 0.6145 GB, free: 5.098 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005074/0.6254, allocations: 75.62 kB / 0.6146 GB, free: 5.023 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.461e-05/0.6254, allocations: 28 kB / 0.6146 GB, free: 4.996 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 4 (limPID.I.local_reset,pID.I.local_reset,limIntegrator.local_reset,integrator.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (77): * Single equations (assignments): 77 * 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.0001804/0.6256, allocations: 124.8 kB / 0.6148 GB, free: 4.867 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0008348/0.6264, allocations: 446.5 kB / 0.6152 GB, free: 4.426 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001379/0.6266, allocations: 71.06 kB / 0.6152 GB, free: 4.355 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002705/0.6269, allocations: 77.7 kB / 0.6153 GB, free: 4.277 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.993e-06/0.6269, allocations: 8 kB / 0.6153 GB, free: 4.27 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.075e-06/0.6269, allocations: 3.984 kB / 0.6153 GB, free: 4.266 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.887e-06/0.6269, allocations: 3.953 kB / 0.6153 GB, free: 4.262 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001175/0.6281, allocations: 0.7561 MB / 0.6161 GB, free: 3.461 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.6281, allocations: 0 / 0.6161 GB, free: 3.461 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006714/0.6288, allocations: 115.9 kB / 0.6162 GB, free: 3.348 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.168e-06/0.6288, allocations: 0 / 0.6162 GB, free: 3.348 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.557e-05/0.6289, allocations: 12 kB / 0.6162 GB, free: 3.336 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.288e-06/0.6289, allocations: 4 kB / 0.6162 GB, free: 3.332 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.489e-06/0.6289, allocations: 3.953 kB / 0.6162 GB, free: 3.328 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001221/0.6301, allocations: 0.9494 MB / 0.6171 GB, free: 2.34 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002439/0.6304, allocations: 200.2 kB / 0.6173 GB, free: 2.125 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.114e-05/0.6305, allocations: 11.95 kB / 0.6173 GB, free: 2.113 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005577/0.631, allocations: 51.94 kB / 0.6174 GB, free: 2.062 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001164/0.6312, allocations: 39.94 kB / 0.6174 GB, free: 2.023 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.257e-05/0.6312, allocations: 16 kB / 0.6174 GB, free: 2.008 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0004812/0.6317, allocations: 379.1 kB / 0.6178 GB, free: 1.645 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.21e-07/0.6317, allocations: 0 / 0.6178 GB, free: 1.645 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0008019/0.6325, allocations: 164 kB / 0.618 GB, free: 1.484 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 18 (limPID.I.y,limPID.D.x,transferFunction.x_scaled[1],stateSpace.x[1],stateSpace.x[2],lowpassButterworth.x1[1],lowpassButterworth.x2[1],criticalDamping.x[1],criticalDamping.x[2],integrator.y,limIntegrator.y,derivative.x,firstOrder.y,secondOrder.y,secondOrder.yd,pI.x,pID.I.y,pID.D.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (44): * Single equations (assignments): 44 * 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.00158/0.6341, allocations: 1.663 MB / 0.6196 GB, free: 15.79 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001277/0.6354, allocations: 0.7673 MB / 0.6203 GB, free: 15.02 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/0.6354, allocations: 4 kB / 0.6203 GB, free: 15.01 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003256/0.6357, allocations: 219.7 kB / 0.6205 GB, free: 14.8 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000911/0.6366, allocations: 155.9 kB / 0.6207 GB, free: 14.64 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002571/0.6392, allocations: 1.333 MB / 0.622 GB, free: 13.26 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005209/0.6398, allocations: 0.9627 MB / 0.6229 GB, free: 12.27 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0006897/0.6405, allocations: 199 kB / 0.6231 GB, free: 12.07 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003424/0.6408, allocations: 251.3 kB / 0.6234 GB, free: 11.83 MB / 442.7 MB Notification: Performance of SimCode: time 7.51e-07/0.6408, allocations: 0 / 0.6234 GB, free: 11.83 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03716/0.678, allocations: 13.43 MB / 0.6365 GB, free: 14.46 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002336/0.6783, allocations: 122.1 kB / 0.6366 GB, free: 14.27 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.327/3.005, allocations: 4.031 kB / 0.6366 GB, free: 14.26 MB / 458.7 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Continuous.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.Continuous.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.Continuous.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Continuous.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.Continuous_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_Continuous_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_Continuous.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.Continuous.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Blocks.Continuous_res.mat does not exist to compare? outputFormat=mat