Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.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.ResetHoldIntegrator,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_ResetHoldIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.ResetHoldIntegrator,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_ResetHoldIntegrator",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.0009421/0.0009422, allocations: 169.9 kB / 8.74 MB, free: 340 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.328/1.328, allocations: 221.5 MB / 230.7 MB, free: 7.578 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.0009603/0.0009602, allocations: 96.22 kB / 281.6 MB, free: 5.324 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.1954/0.1954, allocations: 44.15 MB / 376.5 MB, free: 3.051 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.833e-05/1.837e-05, allocations: 8.203 kB / 444.7 MB, free: 15.14 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1234/0.1234, allocations: 61.91 MB / 0.4948 GB, free: 1.164 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4267/0.5501, allocations: 86.37 MB / 0.5791 GB, free: 9.98 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002303/0.5504, allocations: 63.97 kB / 0.5792 GB, free: 9.918 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005844/0.5563, allocations: 1.687 MB / 0.5808 GB, free: 8.242 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.723e-06/0.5563, allocations: 0 / 0.5808 GB, free: 8.242 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.153e-05/0.5563, allocations: 0 / 0.5808 GB, free: 8.242 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.000534/0.5569, allocations: 374.4 kB / 0.5812 GB, free: 7.832 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.581e-05/0.5569, allocations: 11.98 kB / 0.5812 GB, free: 7.82 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.398e-05/0.557, allocations: 15.91 kB / 0.5812 GB, free: 7.805 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00026/0.5573, allocations: 190.8 kB / 0.5814 GB, free: 7.578 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.869e-05/0.5573, allocations: 4.844 kB / 0.5814 GB, free: 7.574 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.977e-05/0.5573, allocations: 4 kB / 0.5814 GB, free: 7.57 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001257/0.5575, allocations: 31.95 kB / 0.5814 GB, free: 7.539 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001594/0.5576, allocations: 67.5 kB / 0.5815 GB, free: 7.469 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.094e-05/0.5577, allocations: 2.953 kB / 0.5815 GB, free: 7.469 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.481e-05/0.5577, allocations: 0 / 0.5815 GB, free: 7.469 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.551e-06/0.5577, allocations: 4 kB / 0.5815 GB, free: 7.465 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007359/0.5585, allocations: 329.1 kB / 0.5818 GB, free: 7.105 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001154/0.5586, allocations: 42.58 kB / 0.5818 GB, free: 7.055 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.156e-05/0.5586, allocations: 24.89 kB / 0.5819 GB, free: 7.027 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.508e-05/0.5587, allocations: 0 / 0.5819 GB, free: 7.027 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001778/0.5589, allocations: 67.44 kB / 0.5819 GB, free: 6.949 MB / 394.7 MB Notification: Performance of pre-optimization done (n=7): time 1.683e-06/0.5589, allocations: 0 / 0.5819 GB, free: 6.949 MB / 394.7 MB Notification: Performance of matching and sorting (n=7): time 0.0002364/0.5591, allocations: 61.59 kB / 0.582 GB, free: 6.883 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.101e-05/0.5592, allocations: 51.41 kB / 0.582 GB, free: 6.82 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000118/0.5593, allocations: 109 kB / 0.5821 GB, free: 6.707 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.142e-05/0.5593, allocations: 33.7 kB / 0.5822 GB, free: 6.668 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.452e-05/0.5594, allocations: 100.3 kB / 0.5823 GB, free: 6.562 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.999e-05/0.5594, allocations: 19.7 kB / 0.5823 GB, free: 6.543 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.412e-06/0.5595, allocations: 0 / 0.5823 GB, free: 6.543 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000139/0.5596, allocations: 326.8 kB / 0.5826 GB, free: 6.215 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.637e-05/0.5597, allocations: 15.94 kB / 0.5826 GB, free: 6.199 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.885e-05/0.5597, allocations: 30.58 kB / 0.5827 GB, free: 6.16 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.751e-05/0.5598, allocations: 19.98 kB / 0.5827 GB, free: 6.141 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.5598, allocations: 0 / 0.5827 GB, free: 6.141 MB / 394.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001709/0.56, allocations: 74.33 kB / 0.5827 GB, free: 6.062 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.848e-05/0.56, allocations: 4 kB / 0.5827 GB, free: 6.059 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.56, allocations: 3.828 kB / 0.5827 GB, free: 6.059 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.733e-05/0.56, allocations: 4 kB / 0.5828 GB, free: 6.055 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.954e-05/0.5601, allocations: 4 kB / 0.5828 GB, free: 6.051 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.215e-06/0.5601, allocations: 4 kB / 0.5828 GB, free: 6.047 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.606e-05/0.5602, allocations: 20.03 kB / 0.5828 GB, free: 6.027 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.087e-05/0.5603, allocations: 4 kB / 0.5828 GB, free: 6.023 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 9.174e-05/0.5604, allocations: 114.1 kB / 0.5829 GB, free: 5.906 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001222/0.5605, allocations: 61.83 kB / 0.583 GB, free: 5.84 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.844e-05/0.5605, allocations: 7.906 kB / 0.583 GB, free: 5.832 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.561e-05/0.5606, allocations: 12.62 kB / 0.583 GB, free: 5.816 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.5606, allocations: 0 / 0.583 GB, free: 5.816 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.961e-06/0.5606, allocations: 0 / 0.583 GB, free: 5.816 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.697e-06/0.5606, allocations: 7.938 kB / 0.583 GB, free: 5.809 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003728/0.561, allocations: 323 kB / 0.5833 GB, free: 5.449 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.561, allocations: 0 / 0.5833 GB, free: 5.449 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.464e-05/0.5611, allocations: 4 kB / 0.5833 GB, free: 5.445 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.397e-06/0.5611, allocations: 0 / 0.5833 GB, free: 5.445 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.091e-05/0.5611, allocations: 0 / 0.5833 GB, free: 5.445 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.5611, allocations: 0 / 0.5833 GB, free: 5.445 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.21e-06/0.5611, allocations: 4.141 kB / 0.5833 GB, free: 5.441 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002462/0.5614, allocations: 183.5 kB / 0.5835 GB, free: 5.246 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.738e-05/0.5615, allocations: 84.95 kB / 0.5835 GB, free: 5.145 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.452e-05/0.5615, allocations: 4.031 kB / 0.5836 GB, free: 5.141 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001339/0.5616, allocations: 11.92 kB / 0.5836 GB, free: 5.129 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.047e-05/0.5617, allocations: 15.98 kB / 0.5836 GB, free: 5.113 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.338e-06/0.5617, allocations: 3.953 kB / 0.5836 GB, free: 5.109 MB / 394.7 MB Notification: Performance of sorting global known variables: time 6.016e-05/0.5618, allocations: 92.7 kB / 0.5837 GB, free: 5.02 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.01e-07/0.5618, allocations: 0 / 0.5837 GB, free: 5.02 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0004026/0.5622, allocations: 16.06 kB / 0.5837 GB, free: 5.004 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.0005514/0.5628, allocations: 0.7046 MB / 0.5844 GB, free: 4.273 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001381/0.5629, allocations: 43.92 kB / 0.5844 GB, free: 4.23 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.5629, allocations: 0 / 0.5844 GB, free: 4.23 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 6.111e-05/0.563, allocations: 20.2 kB / 0.5844 GB, free: 4.211 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003357/0.5634, allocations: 16.19 kB / 0.5845 GB, free: 4.195 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008122/0.5642, allocations: 192.1 kB / 0.5846 GB, free: 3.969 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003566/0.5646, allocations: 0.6963 MB / 0.5853 GB, free: 3.246 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 5.086e-05/0.5646, allocations: 11.95 kB / 0.5853 GB, free: 3.234 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.04e-05/0.5647, allocations: 27.42 kB / 0.5854 GB, free: 3.207 MB / 394.7 MB Notification: Performance of SimCode: time 3.61e-07/0.5647, allocations: 0 / 0.5854 GB, free: 3.207 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02271/0.5874, allocations: 1.462 MB / 0.5868 GB, free: 1.758 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000284/0.5878, allocations: 134.5 kB / 0.5869 GB, free: 1.562 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.589/2.177, allocations: 0 / 0.5869 GB, free: 1.562 MB / 394.7 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_ResetHoldIntegrator_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_ResetHoldIntegrator.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat does not exist to compare? outputFormat=mat