Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.SelfResettingIntegrator.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/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/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(ModelicaTest.Blocks.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_SelfResettingIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_SelfResettingIntegrator",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.002555/0.002555, allocations: 177.8 kB / 8.363 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.054/2.054, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001108/0.001108, allocations: 88.55 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3047/0.3047, allocations: 43.49 MB / 353.6 MB, free: 2.262 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.265e-05/2.275e-05, allocations: 4.219 kB / 418.3 MB, free: 40.94 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4172/0.4173, allocations: 58.85 MB / 477.2 MB, free: 5.281 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1623/0.5796, allocations: 84.14 MB / 0.5482 GB, free: 15.15 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002409/0.5799, allocations: 59.97 kB / 0.5482 GB, free: 15.09 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.003622/0.5836, allocations: 0.9871 MB / 0.5492 GB, free: 14.1 MB / 395.1 MB Notification: Performance of FrontEnd: time 4.278e-06/0.5836, allocations: 0 / 0.5492 GB, free: 14.1 MB / 395.1 MB Notification: Performance of Transformations before backend: time 1.072e-05/0.5836, allocations: 3.938 kB / 0.5492 GB, free: 14.09 MB / 395.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004097/0.5841, allocations: 338.5 kB / 0.5495 GB, free: 13.72 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.449e-05/0.5841, allocations: 12.03 kB / 0.5495 GB, free: 13.71 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.106e-05/0.5842, allocations: 4.531 kB / 0.5495 GB, free: 13.7 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002292/0.5844, allocations: 179 kB / 0.5497 GB, free: 13.49 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.177e-05/0.5845, allocations: 0 / 0.5497 GB, free: 13.49 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.621e-05/0.5845, allocations: 4 kB / 0.5497 GB, free: 13.48 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.856e-05/0.5846, allocations: 8 kB / 0.5497 GB, free: 13.48 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001122/0.5847, allocations: 49.62 kB / 0.5498 GB, free: 13.42 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.977e-06/0.5847, allocations: 0 / 0.5498 GB, free: 13.42 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.404e-05/0.5848, allocations: 4 kB / 0.5498 GB, free: 13.42 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.824e-06/0.5848, allocations: 4 kB / 0.5498 GB, free: 13.41 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006017/0.5854, allocations: 265.3 kB / 0.55 GB, free: 13.12 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.61e-05/0.5855, allocations: 18.58 kB / 0.55 GB, free: 13.09 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.683e-05/0.5855, allocations: 12.8 kB / 0.55 GB, free: 13.07 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.204e-05/0.5855, allocations: 8.062 kB / 0.55 GB, free: 13.07 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001126/0.5857, allocations: 43.41 kB / 0.5501 GB, free: 13.01 MB / 395.1 MB Notification: Performance of pre-optimization done (n=3): time 1.954e-06/0.5857, allocations: 3.938 kB / 0.5501 GB, free: 13.01 MB / 395.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001465/0.5858, allocations: 37.7 kB / 0.5501 GB, free: 12.96 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.061e-05/0.5859, allocations: 59.36 kB / 0.5502 GB, free: 12.89 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.565e-05/0.586, allocations: 101 kB / 0.5503 GB, free: 12.79 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 1.949e-05/0.586, allocations: 29.7 kB / 0.5503 GB, free: 12.75 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.169e-05/0.5861, allocations: 166.4 kB / 0.5505 GB, free: 12.59 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.854e-05/0.5861, allocations: 3.906 kB / 0.5505 GB, free: 12.59 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.547e-06/0.5862, allocations: 2.953 kB / 0.5505 GB, free: 12.59 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.000147/0.5863, allocations: 321.4 kB / 0.5508 GB, free: 12.27 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.327e-05/0.5863, allocations: 7.938 kB / 0.5508 GB, free: 12.26 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.499e-05/0.5864, allocations: 17.72 kB / 0.5508 GB, free: 12.23 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.675e-05/0.5864, allocations: 4 kB / 0.5508 GB, free: 12.23 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.5864, allocations: 4 kB / 0.5508 GB, free: 12.23 MB / 395.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001151/0.5866, allocations: 53.81 kB / 0.5509 GB, free: 12.17 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.962e-05/0.5866, allocations: 4 kB / 0.5509 GB, free: 12.16 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.5e-06/0.5866, allocations: 0 / 0.5509 GB, free: 12.16 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.444e-05/0.5866, allocations: 0 / 0.5509 GB, free: 12.16 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.522e-05/0.5867, allocations: 7.938 kB / 0.5509 GB, free: 12.16 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.982e-06/0.5867, allocations: 0 / 0.5509 GB, free: 12.16 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.208e-05/0.5868, allocations: 11.95 kB / 0.5509 GB, free: 12.14 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.332e-06/0.5868, allocations: 0 / 0.5509 GB, free: 12.14 MB / 395.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition1,greaterEqualThreshold.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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 8.982e-05/0.5869, allocations: 109 kB / 0.551 GB, free: 12.03 MB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 7.678e-05/0.587, allocations: 45.61 kB / 0.551 GB, free: 11.98 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.285e-05/0.587, allocations: 4 kB / 0.551 GB, free: 11.98 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.793e-05/0.5871, allocations: 8.328 kB / 0.551 GB, free: 11.96 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.357e-06/0.5871, allocations: 0 / 0.551 GB, free: 11.96 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.793e-06/0.5871, allocations: 3.953 kB / 0.5511 GB, free: 11.96 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.407e-06/0.5871, allocations: 0 / 0.5511 GB, free: 11.96 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003856/0.5875, allocations: 275 kB / 0.5513 GB, free: 11.65 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.5875, allocations: 4 kB / 0.5513 GB, free: 11.64 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.54e-05/0.5876, allocations: 4 kB / 0.5513 GB, free: 11.64 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.895e-06/0.5876, allocations: 0 / 0.5513 GB, free: 11.64 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.606e-06/0.5876, allocations: 0 / 0.5513 GB, free: 11.64 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.243e-06/0.5876, allocations: 3.953 kB / 0.5513 GB, free: 11.64 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.688e-06/0.5876, allocations: 8.531 kB / 0.5513 GB, free: 11.63 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001798/0.5878, allocations: 139.5 kB / 0.5515 GB, free: 11.48 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.438e-05/0.5879, allocations: 81.14 kB / 0.5515 GB, free: 11.38 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.659e-05/0.5879, allocations: 0 / 0.5515 GB, free: 11.38 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.334e-05/0.588, allocations: 4.062 kB / 0.5515 GB, free: 11.38 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.346e-05/0.5881, allocations: 12.17 kB / 0.5516 GB, free: 11.36 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.997e-06/0.5881, allocations: 0 / 0.5516 GB, free: 11.36 MB / 395.1 MB Notification: Performance of sorting global known variables: time 6.434e-05/0.5882, allocations: 87.2 kB / 0.5516 GB, free: 11.28 MB / 395.1 MB Notification: Performance of sort global known variables: time 4.31e-07/0.5882, allocations: 3.938 kB / 0.5516 GB, free: 11.27 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.0003233/0.5885, allocations: 11.91 kB / 0.5517 GB, free: 11.26 MB / 395.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (integrator.y) * Number of discrete variables: 2 (greaterEqualThreshold.y,$whenCondition1) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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.0005007/0.589, allocations: 0.6696 MB / 0.5523 GB, free: 10.57 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 9.656e-05/0.5891, allocations: 19.92 kB / 0.5523 GB, free: 10.55 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.5892, allocations: 4 kB / 0.5523 GB, free: 10.54 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 2.757e-05/0.5892, allocations: 8 kB / 0.5523 GB, free: 10.54 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002658/0.5895, allocations: 8.375 kB / 0.5524 GB, free: 10.53 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004879/0.59, allocations: 145.2 kB / 0.5525 GB, free: 10.34 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003261/0.5903, allocations: 0.6964 MB / 0.5532 GB, free: 9.617 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.905e-05/0.5904, allocations: 19.44 kB / 0.5532 GB, free: 9.598 MB / 395.1 MB Notification: Performance of SimCode: time 6.91e-07/0.5904, allocations: 0 / 0.5532 GB, free: 9.598 MB / 395.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.406/2.997, allocations: 0.9755 MB / 0.5541 GB, free: 8.625 MB / 395.1 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.SelfResettingIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_SelfResettingIntegrator_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_SelfResettingIntegrator.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat does not exist to compare? outputFormat=mat