Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.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.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_SelfResettingIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_SelfResettingIntegrator",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.001784/0.001784, allocations: 175.1 kB / 8.739 MB, free: 348 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.557/1.557, allocations: 221.5 MB / 230.7 MB, free: 7.523 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.0008729/0.000873, allocations: 89.84 kB / 281.6 MB, free: 5.273 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.1894/0.1894, allocations: 44.16 MB / 376.5 MB, free: 3.051 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.077e-05/2.086e-05, allocations: 4.219 kB / 444.7 MB, free: 15.17 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1308/0.1309, allocations: 61.92 MB / 0.4948 GB, free: 1.188 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4026/0.5335, allocations: 85.21 MB / 0.578 GB, free: 11.21 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002385/0.5338, allocations: 63.95 kB / 0.578 GB, free: 11.15 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00271/0.5366, allocations: 0.9898 MB / 0.579 GB, free: 10.16 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.5366, allocations: 0 / 0.579 GB, free: 10.16 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.204e-05/0.5366, allocations: 4 kB / 0.579 GB, free: 10.16 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0003977/0.537, allocations: 333.1 kB / 0.5793 GB, free: 9.793 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.185e-05/0.5371, allocations: 11.98 kB / 0.5793 GB, free: 9.781 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.881e-05/0.5371, allocations: 7.906 kB / 0.5793 GB, free: 9.773 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002402/0.5374, allocations: 179 kB / 0.5795 GB, free: 9.559 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.442e-05/0.5374, allocations: 8 kB / 0.5795 GB, free: 9.551 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.608e-05/0.5374, allocations: 0 / 0.5795 GB, free: 9.551 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.17e-05/0.5375, allocations: 15.95 kB / 0.5795 GB, free: 9.535 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.913e-05/0.5376, allocations: 46.39 kB / 0.5796 GB, free: 9.484 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.926e-06/0.5377, allocations: 0 / 0.5796 GB, free: 9.484 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.634e-05/0.5377, allocations: 0 / 0.5796 GB, free: 9.484 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.141e-06/0.5377, allocations: 0 / 0.5796 GB, free: 9.484 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000561/0.5383, allocations: 269.2 kB / 0.5798 GB, free: 9.184 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.518e-05/0.5383, allocations: 22.56 kB / 0.5799 GB, free: 9.152 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.963e-05/0.5384, allocations: 12.92 kB / 0.5799 GB, free: 9.137 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.168e-05/0.5384, allocations: 0 / 0.5799 GB, free: 9.137 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001081/0.5385, allocations: 51.41 kB / 0.5799 GB, free: 9.074 MB / 394.7 MB Notification: Performance of pre-optimization done (n=3): time 1.183e-06/0.5385, allocations: 4 kB / 0.5799 GB, free: 9.07 MB / 394.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001331/0.5386, allocations: 41.62 kB / 0.58 GB, free: 9.023 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.812e-05/0.5387, allocations: 51.41 kB / 0.58 GB, free: 8.961 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.125e-05/0.5388, allocations: 104.9 kB / 0.5801 GB, free: 8.852 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.282e-05/0.5388, allocations: 29.53 kB / 0.5801 GB, free: 8.82 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.975e-05/0.5388, allocations: 96.06 kB / 0.5802 GB, free: 8.723 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.338e-05/0.5389, allocations: 7.906 kB / 0.5802 GB, free: 8.715 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.584e-06/0.5389, allocations: 0.75 kB / 0.5802 GB, free: 8.715 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001081/0.539, allocations: 310.8 kB / 0.5805 GB, free: 8.402 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.384e-05/0.539, allocations: 8 kB / 0.5805 GB, free: 8.395 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.475e-05/0.539, allocations: 17.72 kB / 0.5806 GB, free: 8.371 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.413e-05/0.5391, allocations: 15.94 kB / 0.5806 GB, free: 8.355 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.383e-06/0.5391, allocations: 0 / 0.5806 GB, free: 8.355 MB / 394.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.05e-05/0.5391, allocations: 49.55 kB / 0.5806 GB, free: 8.301 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.633e-05/0.5392, allocations: 7.984 kB / 0.5806 GB, free: 8.293 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.899e-06/0.5392, allocations: 4.688 kB / 0.5806 GB, free: 8.289 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.072e-05/0.5392, allocations: 32 / 0.5806 GB, free: 8.289 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.147e-05/0.5392, allocations: 12 kB / 0.5806 GB, free: 8.277 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.098e-06/0.5392, allocations: 0 / 0.5806 GB, free: 8.277 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.768e-05/0.5393, allocations: 4 kB / 0.5807 GB, free: 8.273 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.288e-06/0.5393, allocations: 0 / 0.5807 GB, free: 8.273 MB / 394.7 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 6.856e-05/0.5394, allocations: 105.8 kB / 0.5808 GB, free: 8.164 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 5.276e-05/0.5394, allocations: 45.62 kB / 0.5808 GB, free: 8.113 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.017e-05/0.5394, allocations: 7.906 kB / 0.5808 GB, free: 8.105 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.554e-05/0.5395, allocations: 8.344 kB / 0.5808 GB, free: 8.094 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.242e-06/0.5395, allocations: 0 / 0.5808 GB, free: 8.094 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.5395, allocations: 4 kB / 0.5808 GB, free: 8.09 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.545e-06/0.5395, allocations: 0 / 0.5808 GB, free: 8.09 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002432/0.5397, allocations: 275.1 kB / 0.5811 GB, free: 7.777 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.5398, allocations: 4 kB / 0.5811 GB, free: 7.773 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.046e-05/0.5398, allocations: 3.938 kB / 0.5811 GB, free: 7.77 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.893e-06/0.5398, allocations: 0 / 0.5811 GB, free: 7.77 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.973e-06/0.5398, allocations: 0 / 0.5811 GB, free: 7.77 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.907e-06/0.5398, allocations: 4 kB / 0.5811 GB, free: 7.766 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.5398, allocations: 0 / 0.5811 GB, free: 7.766 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001479/0.54, allocations: 151.8 kB / 0.5812 GB, free: 7.602 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.059e-05/0.54, allocations: 85.05 kB / 0.5813 GB, free: 7.5 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.171e-05/0.54, allocations: 0 / 0.5813 GB, free: 7.5 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.813e-05/0.5401, allocations: 3.984 kB / 0.5813 GB, free: 7.496 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.605e-05/0.5401, allocations: 6.953 kB / 0.5813 GB, free: 7.492 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.208e-06/0.5402, allocations: 0 / 0.5813 GB, free: 7.492 MB / 394.7 MB Notification: Performance of sorting global known variables: time 4.602e-05/0.5402, allocations: 83.28 kB / 0.5814 GB, free: 7.41 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.5402, allocations: 4.062 kB / 0.5814 GB, free: 7.406 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002314/0.5404, allocations: 8 kB / 0.5814 GB, free: 7.398 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: 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.0004326/0.5409, allocations: 0.6773 MB / 0.5821 GB, free: 6.695 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 8.539e-05/0.541, allocations: 16 kB / 0.5821 GB, free: 6.68 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.541, allocations: 0 / 0.5821 GB, free: 6.68 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 1.861e-05/0.541, allocations: 12.06 kB / 0.5821 GB, free: 6.668 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002098/0.5412, allocations: 11.98 kB / 0.5821 GB, free: 6.656 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003902/0.5416, allocations: 123.4 kB / 0.5822 GB, free: 6.492 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000253/0.5419, allocations: 0.6885 MB / 0.5829 GB, free: 5.777 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 1.962e-05/0.5419, allocations: 4.484 kB / 0.5829 GB, free: 5.773 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.14e-05/0.542, allocations: 15.44 kB / 0.5829 GB, free: 5.758 MB / 394.7 MB Notification: Performance of SimCode: time 2.8e-07/0.542, allocations: 3.938 kB / 0.5829 GB, free: 5.754 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01734/0.5593, allocations: 0.9182 MB / 0.5838 GB, free: 4.844 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000214/0.5596, allocations: 139.2 kB / 0.584 GB, free: 4.648 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.468/2.027, allocations: 1.969 kB / 0.584 GB, free: 4.648 MB / 394.7 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_SelfResettingIntegrator_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_SelfResettingIntegrator.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat does not exist to compare? outputFormat=mat