Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.ResetHoldIntegrator.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.ResetHoldIntegrator,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_ResetHoldIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.ResetHoldIntegrator,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_ResetHoldIntegrator",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.002889/0.00289, allocations: 178 kB / 8.362 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.268/2.268, 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.001095/0.001095, allocations: 83.98 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.2986/0.2986, allocations: 43.49 MB / 353.6 MB, free: 2.262 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.346e-05/2.344e-05, allocations: 224 / 418.3 MB, free: 40.95 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4039/0.404, allocations: 58.86 MB / 477.2 MB, free: 5.152 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1607/0.5647, allocations: 85.37 MB / 0.5494 GB, free: 13.84 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002322/0.565, allocations: 63.97 kB / 0.5494 GB, free: 13.77 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.006741/0.5718, allocations: 1.636 MB / 0.551 GB, free: 12.14 MB / 395.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.5718, allocations: 3.938 kB / 0.551 GB, free: 12.13 MB / 395.1 MB Notification: Performance of Transformations before backend: time 1.432e-05/0.5719, allocations: 4 kB / 0.551 GB, free: 12.13 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0005685/0.5724, allocations: 375 kB / 0.5514 GB, free: 11.72 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.401e-05/0.5725, allocations: 8.031 kB / 0.5514 GB, free: 11.71 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.541e-05/0.5726, allocations: 7.906 kB / 0.5514 GB, free: 11.7 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002532/0.5728, allocations: 194.9 kB / 0.5516 GB, free: 11.47 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.849e-05/0.5729, allocations: 0 / 0.5516 GB, free: 11.47 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.75e-05/0.5729, allocations: 4 kB / 0.5516 GB, free: 11.47 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001303/0.573, allocations: 39.92 kB / 0.5516 GB, free: 11.43 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001505/0.5732, allocations: 57.69 kB / 0.5517 GB, free: 11.37 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.035e-05/0.5732, allocations: 0 / 0.5517 GB, free: 11.37 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.603e-05/0.5732, allocations: 0 / 0.5517 GB, free: 11.37 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.34e-06/0.5733, allocations: 2.953 kB / 0.5517 GB, free: 11.37 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007045/0.574, allocations: 331.6 kB / 0.552 GB, free: 11.01 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000119/0.5741, allocations: 50.55 kB / 0.552 GB, free: 10.95 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.446e-05/0.5742, allocations: 17.02 kB / 0.5521 GB, free: 10.93 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.338e-05/0.5742, allocations: 3.938 kB / 0.5521 GB, free: 10.93 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001605/0.5744, allocations: 71.33 kB / 0.5521 GB, free: 10.84 MB / 395.1 MB Notification: Performance of pre-optimization done (n=7): time 1.943e-06/0.5744, allocations: 0 / 0.5521 GB, free: 10.84 MB / 395.1 MB Notification: Performance of matching and sorting (n=7): time 0.000229/0.5746, allocations: 73.56 kB / 0.5522 GB, free: 10.77 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.864e-05/0.5747, allocations: 51.41 kB / 0.5523 GB, free: 10.7 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001139/0.5748, allocations: 117 kB / 0.5524 GB, free: 10.58 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 2.77e-05/0.5749, allocations: 25.7 kB / 0.5524 GB, free: 10.55 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.861e-05/0.575, allocations: 162.7 kB / 0.5525 GB, free: 10.39 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.018e-05/0.575, allocations: 11.81 kB / 0.5526 GB, free: 10.38 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.901e-06/0.575, allocations: 4 kB / 0.5526 GB, free: 10.37 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001942/0.5752, allocations: 314.8 kB / 0.5529 GB, free: 10.05 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.193e-05/0.5753, allocations: 16 kB / 0.5529 GB, free: 10.04 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.882e-05/0.5754, allocations: 30.58 kB / 0.5529 GB, free: 10 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.989e-05/0.5754, allocations: 19.92 kB / 0.5529 GB, free: 9.98 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.5755, allocations: 0 / 0.5529 GB, free: 9.98 MB / 395.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001764/0.5756, allocations: 81.58 kB / 0.553 GB, free: 9.895 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.896e-05/0.5757, allocations: 4 kB / 0.553 GB, free: 9.891 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.561e-06/0.5757, allocations: 3.938 kB / 0.553 GB, free: 9.887 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.857e-05/0.5757, allocations: 3.953 kB / 0.553 GB, free: 9.883 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.316e-05/0.5758, allocations: 8.547 kB / 0.553 GB, free: 9.875 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.4e-06/0.5758, allocations: 4.062 kB / 0.553 GB, free: 9.871 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001028/0.5759, allocations: 12.12 kB / 0.553 GB, free: 9.859 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.867e-06/0.576, allocations: 0 / 0.553 GB, free: 9.859 MB / 395.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,$whenCondition2,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,fallingEdge.y,$PRE.fallingEdge.not_u,fallingEdge.not_u) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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.0001095/0.5761, allocations: 108.9 kB / 0.5531 GB, free: 9.746 MB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001458/0.5762, allocations: 69.75 kB / 0.5532 GB, free: 9.672 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.402e-05/0.5763, allocations: 11.86 kB / 0.5532 GB, free: 9.66 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.204e-05/0.5764, allocations: 12.56 kB / 0.5532 GB, free: 9.648 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.713e-06/0.5764, allocations: 4 kB / 0.5532 GB, free: 9.645 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.5764, allocations: 4 kB / 0.5532 GB, free: 9.641 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.652e-06/0.5764, allocations: 3.984 kB / 0.5532 GB, free: 9.637 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004176/0.5768, allocations: 303.1 kB / 0.5535 GB, free: 9.297 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.5768, allocations: 0 / 0.5535 GB, free: 9.297 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.373e-05/0.5769, allocations: 11.89 kB / 0.5535 GB, free: 9.285 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.577e-06/0.5769, allocations: 0 / 0.5535 GB, free: 9.285 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.482e-05/0.577, allocations: 4 kB / 0.5535 GB, free: 9.281 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.743e-06/0.577, allocations: 0 / 0.5535 GB, free: 9.281 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.836e-06/0.577, allocations: 0 / 0.5535 GB, free: 9.281 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002676/0.5773, allocations: 183.6 kB / 0.5537 GB, free: 9.086 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.591e-05/0.5773, allocations: 85.02 kB / 0.5538 GB, free: 8.984 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.724e-05/0.5774, allocations: 11.89 kB / 0.5538 GB, free: 8.973 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001441/0.5775, allocations: 12.02 kB / 0.5538 GB, free: 8.961 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.648e-05/0.5776, allocations: 7.984 kB / 0.5538 GB, free: 8.953 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.286e-06/0.5776, allocations: 0 / 0.5538 GB, free: 8.953 MB / 395.1 MB Notification: Performance of sorting global known variables: time 7.336e-05/0.5777, allocations: 91.34 kB / 0.5539 GB, free: 8.863 MB / 395.1 MB Notification: Performance of sort global known variables: time 3.81e-07/0.5777, allocations: 0 / 0.5539 GB, free: 8.863 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.0003291/0.5781, allocations: 12 kB / 0.5539 GB, free: 8.852 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: 5 (fallingEdge.y,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,fallingEdge.not_u) * Number of discrete states: 1 (fallingEdge.not_u) * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0005784/0.5786, allocations: 0.7167 MB / 0.5546 GB, free: 8.109 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.00016/0.5788, allocations: 44 kB / 0.5547 GB, free: 8.066 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.5788, allocations: 4.188 kB / 0.5547 GB, free: 8.062 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 6.643e-05/0.5789, allocations: 23.98 kB / 0.5547 GB, free: 8.039 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003147/0.5792, allocations: 11.95 kB / 0.5547 GB, free: 8.027 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008232/0.5801, allocations: 217.5 kB / 0.5549 GB, free: 7.77 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003432/0.5804, allocations: 0.7041 MB / 0.5556 GB, free: 7.039 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.726e-05/0.5805, allocations: 27.42 kB / 0.5556 GB, free: 7.012 MB / 395.1 MB Notification: Performance of SimCode: time 7.61e-07/0.5805, allocations: 0 / 0.5556 GB, free: 7.012 MB / 395.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.368/2.949, allocations: 1.503 MB / 0.5571 GB, free: 5.523 MB / 395.1 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.ResetHoldIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_ResetHoldIntegrator_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_ResetHoldIntegrator.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat does not exist to compare? outputFormat=mat