Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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_ModelicaTest_Blocks_ResetHoldIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.ResetHoldIntegrator,fileNamePrefix="ModelicaTest_3_2_3_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.00141/0.00141, allocations: 182.8 kB / 13.19 MB, free: 2.129 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.789/1.789, allocations: 205.2 MB / 218.9 MB, free: 9.207 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.000878/0.000878, allocations: 92.25 kB / 267.1 MB, free: 9.277 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4401/0.4401, allocations: 43.47 MB / 358.6 MB, free: 51.61 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.652e-05/3.655e-05, allocations: 4 kB / 425.4 MB, free: 8.121 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1367/0.1367, allocations: 58.84 MB / 484.2 MB, free: 13.18 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4344/0.5711, allocations: 86.02 MB / 0.5569 GB, free: 17.62 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001906/0.5714, allocations: 65.39 kB / 0.557 GB, free: 17.59 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004224/0.5756, allocations: 1.658 MB / 0.5586 GB, free: 16.57 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.124e-06/0.5757, allocations: 0.8906 kB / 0.5586 GB, free: 16.57 MB / 394.7 MB Notification: Performance of Transformations before backend: time 9.808e-06/0.5757, allocations: 4 kB / 0.5586 GB, free: 16.56 MB / 394.7 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.0003648/0.576, allocations: 371.1 kB / 0.5589 GB, free: 16.18 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.109e-05/0.5761, allocations: 12.03 kB / 0.559 GB, free: 16.17 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.584e-05/0.5761, allocations: 36.75 kB / 0.559 GB, free: 16.13 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.231e-05/0.5762, allocations: 15.34 kB / 0.559 GB, free: 16.12 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001609/0.5763, allocations: 189.4 kB / 0.5592 GB, free: 15.9 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.372e-05/0.5764, allocations: 4 kB / 0.5592 GB, free: 15.9 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.274e-05/0.5764, allocations: 7.938 kB / 0.5592 GB, free: 15.89 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001295/0.5765, allocations: 71.27 kB / 0.5593 GB, free: 15.84 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.588e-06/0.5765, allocations: 6.5 kB / 0.5593 GB, free: 15.84 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.023e-05/0.5766, allocations: 3.062 kB / 0.5593 GB, free: 15.84 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.827e-06/0.5766, allocations: 5.375 kB / 0.5593 GB, free: 15.83 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.174e-05/0.5767, allocations: 32.67 kB / 0.5593 GB, free: 15.81 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004717/0.5771, allocations: 366.3 kB / 0.5597 GB, free: 15.47 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.769e-05/0.5772, allocations: 44.56 kB / 0.5597 GB, free: 15.43 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.737e-05/0.5773, allocations: 16.77 kB / 0.5597 GB, free: 15.41 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.189e-05/0.5773, allocations: 3.953 kB / 0.5597 GB, free: 15.41 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001108/0.5774, allocations: 70.16 kB / 0.5598 GB, free: 15.34 MB / 394.7 MB Notification: Performance of pre-optimization done (n=7): time 1.363e-06/0.5774, allocations: 0 / 0.5598 GB, free: 15.34 MB / 394.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001569/0.5776, allocations: 76.77 kB / 0.5599 GB, free: 15.27 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.495e-05/0.5776, allocations: 56.5 kB / 0.5599 GB, free: 15.21 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.925e-05/0.5777, allocations: 130.9 kB / 0.56 GB, free: 15.09 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.115e-05/0.5777, allocations: 25.7 kB / 0.5601 GB, free: 15.06 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.359e-05/0.5778, allocations: 95.33 kB / 0.5602 GB, free: 14.97 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.018e-05/0.5778, allocations: 21.14 kB / 0.5602 GB, free: 14.96 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.847e-06/0.5778, allocations: 0 / 0.5602 GB, free: 14.96 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 4.652e-05/0.5778, allocations: 324.9 kB / 0.5605 GB, free: 14.64 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.908e-05/0.5779, allocations: 15.81 kB / 0.5605 GB, free: 14.63 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.675e-05/0.5779, allocations: 33.8 kB / 0.5605 GB, free: 14.59 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.343e-05/0.578, allocations: 18.5 kB / 0.5605 GB, free: 14.58 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.578, allocations: 0 / 0.5605 GB, free: 14.58 MB / 394.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001015/0.5781, allocations: 92.45 kB / 0.5606 GB, free: 14.5 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.205e-05/0.5781, allocations: 12.02 kB / 0.5606 GB, free: 14.49 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.761e-06/0.5781, allocations: 5.266 kB / 0.5607 GB, free: 14.49 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.295e-05/0.5781, allocations: 0 / 0.5607 GB, free: 14.49 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.007e-05/0.5782, allocations: 5.359 kB / 0.5607 GB, free: 14.48 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.005e-06/0.5782, allocations: 5.719 kB / 0.5607 GB, free: 14.48 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.298e-05/0.5783, allocations: 10.19 kB / 0.5607 GB, free: 14.47 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.863e-06/0.5783, allocations: 4 kB / 0.5607 GB, free: 14.47 MB / 394.7 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 4.876e-05/0.5783, allocations: 114.8 kB / 0.5608 GB, free: 14.36 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.316e-05/0.5784, allocations: 11.91 kB / 0.5608 GB, free: 14.35 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.221e-05/0.5784, allocations: 13.95 kB / 0.5608 GB, free: 14.34 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.816e-06/0.5784, allocations: 4 kB / 0.5608 GB, free: 14.34 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.018e-06/0.5784, allocations: 3.5 kB / 0.5608 GB, free: 14.34 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.5784, allocations: 5.344 kB / 0.5608 GB, free: 14.33 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002371/0.5787, allocations: 341 kB / 0.5611 GB, free: 13.99 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.796e-06/0.5787, allocations: 7.203 kB / 0.5612 GB, free: 13.99 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.612e-05/0.5787, allocations: 5.219 kB / 0.5612 GB, free: 13.98 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.884e-06/0.5787, allocations: 0 / 0.5612 GB, free: 13.98 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.516e-06/0.5787, allocations: 4 kB / 0.5612 GB, free: 13.98 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.133e-06/0.5788, allocations: 0 / 0.5612 GB, free: 13.98 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.5788, allocations: 6.562 kB / 0.5612 GB, free: 13.98 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001546/0.5789, allocations: 183.2 kB / 0.5613 GB, free: 13.8 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.546e-05/0.579, allocations: 90.12 kB / 0.5614 GB, free: 13.7 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.811e-05/0.579, allocations: 4.766 kB / 0.5614 GB, free: 13.7 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.755e-05/0.5791, allocations: 6.203 kB / 0.5614 GB, free: 13.7 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.642e-05/0.5791, allocations: 11.44 kB / 0.5615 GB, free: 13.69 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.832e-06/0.5791, allocations: 4.891 kB / 0.5615 GB, free: 13.68 MB / 394.7 MB Notification: Performance of sorting global known variables: time 5.188e-05/0.5792, allocations: 101.5 kB / 0.5616 GB, free: 13.59 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5792, allocations: 0 / 0.5616 GB, free: 13.59 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002242/0.5794, allocations: 21.17 kB / 0.5616 GB, free: 13.58 MB / 394.7 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.0003152/0.5798, allocations: 0.733 MB / 0.5623 GB, free: 12.85 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001144/0.5799, allocations: 44.86 kB / 0.5623 GB, free: 12.82 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.5799, allocations: 0 / 0.5623 GB, free: 12.82 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 4.202e-05/0.5799, allocations: 19.94 kB / 0.5624 GB, free: 12.8 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002232/0.5802, allocations: 16.62 kB / 0.5624 GB, free: 12.79 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005145/0.5807, allocations: 197.2 kB / 0.5626 GB, free: 12.61 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001097/0.5808, allocations: 0.7048 MB / 0.5632 GB, free: 11.89 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 3.412e-05/0.5809, allocations: 8.719 kB / 0.5633 GB, free: 11.89 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.169e-05/0.5809, allocations: 26 kB / 0.5633 GB, free: 11.88 MB / 394.7 MB Notification: Performance of SimCode: time 2.31e-07/0.5809, allocations: 3.938 kB / 0.5633 GB, free: 11.87 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01241/0.5933, allocations: 1.915 MB / 0.5651 GB, free: 10.72 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001501/0.5935, allocations: 152.2 kB / 0.5653 GB, free: 10.49 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.565/2.158, allocations: 4 kB / 0.5653 GB, free: 10.49 MB / 394.7 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Blocks_ResetHoldIntegrator_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Blocks_ResetHoldIntegrator.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat does not exist to compare? outputFormat=mat