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.0009122/0.0009121, allocations: 175.5 kB / 16.72 MB, free: 5.082 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.133/1.133, allocations: 205.4 MB / 222.9 MB, free: 9.02 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.0007098/0.0007098, allocations: 85.36 kB / 271.2 MB, free: 8.254 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.276/0.276, allocations: 43.57 MB / 363.1 MB, free: 52.15 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003486/0.0003486, allocations: 12 kB / 432.1 MB, free: 5.738 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0935/0.09387, allocations: 58.85 MB / 490.9 MB, free: 10.8 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.001481/0.09539, allocations: 1.307 MB / 492.2 MB, free: 9.488 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006567/0.09606, allocations: 0.4959 MB / 492.7 MB, free: 8.984 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.408e-05/0.09613, allocations: 0 / 492.7 MB, free: 8.984 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 8.831e-05/0.09623, allocations: 7.922 kB / 492.7 MB, free: 8.977 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 3.545e-05/0.09627, allocations: 7.938 kB / 492.7 MB, free: 8.969 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001397/0.09642, allocations: 27.91 kB / 492.8 MB, free: 8.941 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001074/0.09654, allocations: 75.77 kB / 492.8 MB, free: 8.867 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.63e-05/0.09664, allocations: 32.2 kB / 492.9 MB, free: 8.836 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.43e-05/0.09668, allocations: 23.86 kB / 492.9 MB, free: 8.812 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.689e-05/0.09675, allocations: 19.86 kB / 492.9 MB, free: 8.793 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.671e-05/0.09677, allocations: 4 kB / 492.9 MB, free: 8.789 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.222e-05/0.09679, allocations: 4 kB / 492.9 MB, free: 8.785 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 1.826e-05/0.09681, allocations: 15.91 kB / 492.9 MB, free: 8.77 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 4.342e-05/0.09686, allocations: 45.58 kB / 493 MB, free: 8.719 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 7.009e-05/0.09693, allocations: 52.12 kB / 493 MB, free: 8.668 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.09694, allocations: 0 / 493 MB, free: 8.668 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.473e-06/0.09695, allocations: 7.938 kB / 493 MB, free: 8.66 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.567e-06/0.09696, allocations: 0 / 493 MB, free: 8.66 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0004247/0.09739, allocations: 383.2 kB / 493.4 MB, free: 8.238 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.467e-05/0.09743, allocations: 12.03 kB / 493.4 MB, free: 8.227 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.554e-05/0.09748, allocations: 38.73 kB / 493.5 MB, free: 8.18 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.569e-05/0.09751, allocations: 8.844 kB / 493.5 MB, free: 8.172 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001601/0.09768, allocations: 196.2 kB / 493.7 MB, free: 7.941 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.195e-05/0.0977, allocations: 12.31 kB / 493.7 MB, free: 7.93 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.955e-05/0.09772, allocations: 8.375 kB / 493.7 MB, free: 7.922 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001302/0.09786, allocations: 77.53 kB / 493.8 MB, free: 7.844 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.276e-06/0.09787, allocations: 3.984 kB / 493.8 MB, free: 7.84 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.185e-05/0.09789, allocations: 8 kB / 493.8 MB, free: 7.832 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.718e-06/0.0979, allocations: 4 kB / 493.8 MB, free: 7.828 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.848e-05/0.09797, allocations: 35.92 kB / 493.8 MB, free: 7.793 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004708/0.09845, allocations: 360.6 kB / 494.2 MB, free: 7.391 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.44e-05/0.09854, allocations: 42.56 kB / 494.2 MB, free: 7.34 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.894e-05/0.09858, allocations: 16.89 kB / 494.2 MB, free: 7.32 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.247e-06/0.0986, allocations: 0 / 494.2 MB, free: 7.32 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001267/0.09873, allocations: 79.36 kB / 494.3 MB, free: 7.23 MB / 378.7 MB Notification: Performance of pre-optimization done (n=7): time 1.083e-06/0.09874, allocations: 0 / 494.3 MB, free: 7.23 MB / 378.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001816/0.09892, allocations: 89.52 kB / 494.4 MB, free: 7.137 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.982e-05/0.09896, allocations: 51.41 kB / 494.4 MB, free: 7.074 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.139e-05/0.09906, allocations: 133.8 kB / 494.6 MB, free: 6.934 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.052e-05/0.09909, allocations: 29.7 kB / 494.6 MB, free: 6.898 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.615e-05/0.09914, allocations: 104 kB / 494.7 MB, free: 6.793 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.556e-05/0.09916, allocations: 15.81 kB / 494.7 MB, free: 6.777 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.16e-06/0.09917, allocations: 4 kB / 494.7 MB, free: 6.773 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.936e-05/0.09927, allocations: 322.8 kB / 495 MB, free: 6.449 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.89e-05/0.09931, allocations: 12 kB / 495 MB, free: 6.438 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.137e-05/0.09938, allocations: 42.5 kB / 495.1 MB, free: 6.387 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.832e-05/0.09945, allocations: 50.56 kB / 495.1 MB, free: 6.328 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.413e-06/0.09946, allocations: 0 / 495.1 MB, free: 6.328 MB / 378.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001173/0.09958, allocations: 89.52 kB / 495.2 MB, free: 6.234 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.508e-06/0.0996, allocations: 4 kB / 495.2 MB, free: 6.23 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.09961, allocations: 3.938 kB / 495.2 MB, free: 6.227 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.061e-05/0.09963, allocations: 7.938 kB / 495.2 MB, free: 6.219 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.653e-05/0.09969, allocations: 8.188 kB / 495.2 MB, free: 6.211 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.264e-06/0.0997, allocations: 4.391 kB / 495.2 MB, free: 6.207 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.261e-05/0.09977, allocations: 19.89 kB / 495.3 MB, free: 6.188 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.922e-06/0.09978, allocations: 4 kB / 495.3 MB, free: 6.184 MB / 378.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,integrator.reset,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,$PRE.fallingEdge.not_u,fallingEdge.not_u) * Number of discrete states: 0 () * Number of clocked 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 6.865e-05/0.09986, allocations: 117.8 kB / 495.4 MB, free: 6.059 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.835e-05/0.09988, allocations: 7.906 kB / 495.4 MB, free: 6.051 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.801e-05/0.09991, allocations: 24.59 kB / 495.4 MB, free: 6.027 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.362e-06/0.09992, allocations: 0 / 495.4 MB, free: 6.027 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.525e-06/0.09992, allocations: 0 / 495.4 MB, free: 6.027 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.325e-06/0.09993, allocations: 0 / 495.4 MB, free: 6.027 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000281/0.1002, allocations: 354.4 kB / 495.8 MB, free: 5.625 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.404e-06/0.1002, allocations: 3.984 kB / 495.8 MB, free: 5.621 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.218e-05/0.1003, allocations: 4 kB / 495.8 MB, free: 5.617 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.1003, allocations: 0 / 495.8 MB, free: 5.617 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.063e-05/0.1003, allocations: 4 kB / 495.8 MB, free: 5.613 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.1003, allocations: 0 / 495.8 MB, free: 5.613 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.1003, allocations: 0 / 495.8 MB, free: 5.613 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001783/0.1005, allocations: 195.3 kB / 496 MB, free: 5.406 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.323e-05/0.1005, allocations: 81.08 kB / 496 MB, free: 5.309 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.591e-05/0.1006, allocations: 8.031 kB / 496 MB, free: 5.301 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.266e-05/0.1006, allocations: 7.984 kB / 496.1 MB, free: 5.293 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.589e-05/0.1007, allocations: 11.98 kB / 496.1 MB, free: 5.281 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.37e-06/0.1007, allocations: 0 / 496.1 MB, free: 5.281 MB / 378.7 MB Notification: Performance of sorting global known variables: time 5.308e-05/0.1008, allocations: 106.5 kB / 496.2 MB, free: 5.18 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1008, allocations: 0 / 496.2 MB, free: 5.18 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002009/0.101, allocations: 15.91 kB / 496.2 MB, free: 5.164 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: 5 (integrator.reset,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,fallingEdge.not_u) * Number of discrete states: 1 (fallingEdge.not_u) * Number of clocked states: 0 () * 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.0003807/0.1014, allocations: 0.7396 MB / 496.9 MB, free: 4.395 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 9.96e-05/0.1015, allocations: 43.92 kB / 497 MB, free: 4.352 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.513e-06/0.1015, allocations: 0 / 497 MB, free: 4.352 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 4.314e-05/0.1015, allocations: 24 kB / 497 MB, free: 4.328 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002744/0.1018, allocations: 19.98 kB / 497 MB, free: 4.309 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000991/0.1028, allocations: 0.6651 MB / 497.7 MB, free: 3.586 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001994/0.103, allocations: 0.6965 MB / 498.4 MB, free: 2.863 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.467e-05/0.1031, allocations: 23.44 kB / 498.4 MB, free: 2.844 MB / 378.7 MB Notification: Performance of SimCode: time 2.2e-07/0.1031, allocations: 0 / 498.4 MB, free: 2.844 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.269/2.372, allocations: 1.469 MB / 499.9 MB, free: 1.375 MB / 378.7 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) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/ResetHoldIntegrator/ResetHoldIntegrator.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.ResetHoldIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches