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.00101/0.00101, allocations: 173.7 kB / 16.72 MB, free: 5.086 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.129/1.129, allocations: 205.4 MB / 222.9 MB, free: 9.043 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.0008131/0.0008131, allocations: 89.5 kB / 271.2 MB, free: 8.258 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.2753/0.2753, allocations: 43.55 MB / 363.1 MB, free: 52.18 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003209/0.0003209, allocations: 12 kB / 432.1 MB, free: 5.738 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09233/0.09266, allocations: 58.85 MB / 490.9 MB, free: 10.81 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.0009304/0.09363, allocations: 0.5286 MB / 491.4 MB, free: 10.28 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001619/0.0938, allocations: 47.89 kB / 491.5 MB, free: 10.23 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.426e-05/0.09387, allocations: 0 / 491.5 MB, free: 10.23 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 9.053e-05/0.09397, allocations: 7.922 kB / 491.5 MB, free: 10.23 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 1.547e-05/0.09399, allocations: 3.938 kB / 491.5 MB, free: 10.22 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 9.128e-05/0.09409, allocations: 11.98 kB / 491.5 MB, free: 10.21 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 8.566e-05/0.09418, allocations: 39.86 kB / 491.6 MB, free: 10.17 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.927e-05/0.09428, allocations: 16 kB / 491.6 MB, free: 10.16 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.951e-05/0.0943, allocations: 7.922 kB / 491.6 MB, free: 10.15 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.617e-05/0.09435, allocations: 11.94 kB / 491.6 MB, free: 10.14 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.233e-05/0.09437, allocations: 0 / 491.6 MB, free: 10.14 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.043e-05/0.09438, allocations: 4 kB / 491.6 MB, free: 10.13 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 1.383e-05/0.0944, allocations: 7.922 kB / 491.6 MB, free: 10.12 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 3.64e-05/0.09444, allocations: 41.62 kB / 491.6 MB, free: 10.08 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 5.748e-05/0.0945, allocations: 12.25 kB / 491.7 MB, free: 10.07 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.09451, allocations: 0 / 491.7 MB, free: 10.07 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.002e-06/0.09452, allocations: 0 / 491.7 MB, free: 10.07 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.636e-06/0.09453, allocations: 0 / 491.7 MB, free: 10.07 MB / 378.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.0003193/0.09486, allocations: 351.3 kB / 492 MB, free: 9.672 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.818e-05/0.0949, allocations: 12.03 kB / 492 MB, free: 9.66 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.119e-05/0.09494, allocations: 34.75 kB / 492 MB, free: 9.617 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.455e-05/0.09497, allocations: 8.922 kB / 492.1 MB, free: 9.609 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001416/0.09511, allocations: 184.2 kB / 492.2 MB, free: 9.391 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.11e-05/0.09513, allocations: 4.375 kB / 492.2 MB, free: 9.387 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.656e-05/0.09515, allocations: 384 / 492.2 MB, free: 9.387 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001107/0.09527, allocations: 58.23 kB / 492.3 MB, free: 9.324 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.665e-06/0.09529, allocations: 7.938 kB / 492.3 MB, free: 9.316 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.464e-06/0.0953, allocations: 0 / 492.3 MB, free: 9.316 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.592e-06/0.09531, allocations: 4 kB / 492.3 MB, free: 9.312 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.663e-05/0.09535, allocations: 12 kB / 492.3 MB, free: 9.301 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004172/0.09578, allocations: 292.6 kB / 492.6 MB, free: 8.965 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.73e-05/0.09583, allocations: 30.58 kB / 492.6 MB, free: 8.926 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.653e-05/0.09586, allocations: 8.844 kB / 492.6 MB, free: 8.914 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.975e-06/0.09587, allocations: 0 / 492.6 MB, free: 8.914 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001017/0.09598, allocations: 63.39 kB / 492.7 MB, free: 8.84 MB / 378.7 MB Notification: Performance of pre-optimization done (n=3): time 8.92e-07/0.09599, allocations: 0 / 492.7 MB, free: 8.84 MB / 378.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001122/0.0961, allocations: 49.59 kB / 492.8 MB, free: 8.785 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.799e-05/0.09614, allocations: 55.41 kB / 492.8 MB, free: 8.719 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.058e-05/0.09622, allocations: 117.8 kB / 492.9 MB, free: 8.594 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.132e-05/0.09624, allocations: 33.64 kB / 493 MB, free: 8.555 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.782e-05/0.09628, allocations: 88.14 kB / 493 MB, free: 8.465 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.044e-05/0.0963, allocations: 5.078 kB / 493 MB, free: 8.461 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.606e-06/0.09631, allocations: 0 / 493 MB, free: 8.461 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.663e-05/0.09641, allocations: 326.7 kB / 493.4 MB, free: 8.133 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.366e-05/0.09643, allocations: 4 kB / 493.4 MB, free: 8.129 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.253e-05/0.09646, allocations: 17.72 kB / 493.4 MB, free: 8.105 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.469e-05/0.0965, allocations: 29.7 kB / 493.4 MB, free: 8.07 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.885e-06/0.0965, allocations: 4 kB / 493.4 MB, free: 8.066 MB / 378.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 6.741e-05/0.09658, allocations: 53.53 kB / 493.5 MB, free: 8.008 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.084e-05/0.09659, allocations: 11.59 kB / 493.5 MB, free: 8 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.977e-06/0.0966, allocations: 0 / 493.5 MB, free: 8 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.121e-05/0.09662, allocations: 0 / 493.5 MB, free: 8 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.891e-05/0.09665, allocations: 8 kB / 493.5 MB, free: 7.992 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.138e-06/0.09666, allocations: 0 / 493.5 MB, free: 7.992 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.778e-05/0.09669, allocations: 7.938 kB / 493.5 MB, free: 7.984 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.878e-06/0.09671, allocations: 4.031 kB / 493.5 MB, free: 7.98 MB / 378.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 () * Number of clocked 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 7.302e-05/0.09678, allocations: 113.8 kB / 493.6 MB, free: 7.859 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.784e-06/0.0968, allocations: 0 / 493.6 MB, free: 7.859 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.055e-05/0.09682, allocations: 15.89 kB / 493.6 MB, free: 7.844 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.455e-06/0.09683, allocations: 0 / 493.6 MB, free: 7.844 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.515e-06/0.09683, allocations: 3.938 kB / 493.6 MB, free: 7.84 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.596e-06/0.09684, allocations: 3.938 kB / 493.6 MB, free: 7.836 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002407/0.09709, allocations: 303 kB / 493.9 MB, free: 7.484 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.0971, allocations: 0 / 493.9 MB, free: 7.484 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.66e-05/0.09713, allocations: 0 / 493.9 MB, free: 7.484 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.457e-06/0.09714, allocations: 4 kB / 493.9 MB, free: 7.48 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.426e-06/0.09715, allocations: 7.875 kB / 493.9 MB, free: 7.473 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.82e-07/0.09716, allocations: 0 / 493.9 MB, free: 7.473 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.09716, allocations: 0 / 493.9 MB, free: 7.473 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001209/0.09729, allocations: 147.9 kB / 494.1 MB, free: 7.312 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.39e-05/0.09734, allocations: 85.08 kB / 494.2 MB, free: 7.211 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.346e-05/0.09736, allocations: 15.95 kB / 494.2 MB, free: 7.195 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.976e-05/0.09742, allocations: 0 / 494.2 MB, free: 7.195 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.13e-05/0.09744, allocations: 3.984 kB / 494.2 MB, free: 7.191 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.258e-06/0.09746, allocations: 8 kB / 494.2 MB, free: 7.184 MB / 378.7 MB Notification: Performance of sorting global known variables: time 4.136e-05/0.0975, allocations: 95.2 kB / 494.3 MB, free: 7.09 MB / 378.7 MB Notification: Performance of sort global known variables: time 1e-07/0.09751, allocations: 0 / 494.3 MB, free: 7.09 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0001863/0.0977, allocations: 4 kB / 494.3 MB, free: 7.086 MB / 378.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 () * Number of clocked 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.0003203/0.09803, allocations: 0.6928 MB / 495 MB, free: 6.367 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 5.714e-05/0.09809, allocations: 15.94 kB / 495 MB, free: 6.352 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.0981, allocations: 0 / 495 MB, free: 6.352 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 1.701e-05/0.09812, allocations: 11.94 kB / 495 MB, free: 6.34 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002255/0.09835, allocations: 15.97 kB / 495 MB, free: 6.324 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005556/0.09892, allocations: 467.1 kB / 495.5 MB, free: 5.809 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002037/0.09913, allocations: 0.6809 MB / 496.2 MB, free: 5.102 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.254e-05/0.09917, allocations: 19.44 kB / 496.2 MB, free: 5.082 MB / 378.7 MB Notification: Performance of SimCode: time 2.41e-07/0.09918, allocations: 7.938 kB / 496.2 MB, free: 5.074 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.271/2.37, allocations: 0.9688 MB / 497.2 MB, free: 4.105 MB / 378.7 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) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/SelfResettingIntegrator/SelfResettingIntegrator.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.SelfResettingIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches