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/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001172/0.001172, allocations: 79.7 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001007/0.001007, allocations: 174.3 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8976/0.8976, allocations: 177.1 MB / 204.3 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2473/0.2473, allocations: 32.79 MB / 293.5 MB, free: 1.219 MB / 266.7 MB " [Timeout remaining time 180] 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 Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 3.636e-06/3.636e-06, allocations: 4 kB / 439.6 MB, free: 4.258 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.801e-05/3.165e-05, allocations: 8.188 kB / 439.6 MB, free: 4.25 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.001954/0.001986, allocations: 1.6 MB / 441.2 MB, free: 2.637 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006436/0.002629, allocations: 498.6 kB / 441.7 MB, free: 2.145 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.333e-05/0.002703, allocations: 7.938 kB / 441.7 MB, free: 2.137 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001035/0.002806, allocations: 7.922 kB / 441.7 MB, free: 2.129 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 4.014e-05/0.002846, allocations: 15.81 kB / 441.7 MB, free: 2.113 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001624/0.003009, allocations: 39.83 kB / 441.7 MB, free: 2.074 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001207/0.003129, allocations: 83.7 kB / 441.8 MB, free: 1.992 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001087/0.003238, allocations: 24.2 kB / 441.8 MB, free: 1.969 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.772e-05/0.003296, allocations: 39.91 kB / 441.9 MB, free: 1.93 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.728e-05/0.003353, allocations: 27.89 kB / 441.9 MB, free: 1.902 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 2.235e-05/0.003375, allocations: 8 kB / 441.9 MB, free: 1.895 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.548e-06/0.003385, allocations: 4 kB / 441.9 MB, free: 1.891 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 2.423e-05/0.003409, allocations: 19.92 kB / 441.9 MB, free: 1.871 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 2.913e-05/0.003438, allocations: 15.98 kB / 442 MB, free: 1.855 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001174/0.003556, allocations: 79.7 kB / 442 MB, free: 1.777 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.285e-06/0.003558, allocations: 0 / 442 MB, free: 1.777 MB / 410.7 MB Notification: Performance of FrontEnd: time 9.12e-07/0.003559, allocations: 0 / 442 MB, free: 1.777 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.857e-06/0.003563, allocations: 0 / 442 MB, free: 1.777 MB / 410.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.0004323/0.003995, allocations: 334.8 kB / 442.4 MB, free: 1.418 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.617e-05/0.004031, allocations: 11.97 kB / 442.4 MB, free: 1.406 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.035e-05/0.004061, allocations: 42.73 kB / 442.4 MB, free: 1.355 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.868e-05/0.00409, allocations: 12.88 kB / 442.4 MB, free: 1.344 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001871/0.004277, allocations: 129.7 kB / 442.5 MB, free: 1.191 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.228e-05/0.00429, allocations: 8.375 kB / 442.6 MB, free: 1.184 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.867e-05/0.004308, allocations: 4.375 kB / 442.6 MB, free: 1.18 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001179/0.004426, allocations: 84.27 kB / 442.6 MB, free: 1.094 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.237e-06/0.004435, allocations: 4.125 kB / 442.6 MB, free: 1.09 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.768e-06/0.004445, allocations: 4.125 kB / 442.7 MB, free: 1.086 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.609e-06/0.00445, allocations: 4 kB / 442.7 MB, free: 1.082 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.097e-05/0.004511, allocations: 35.98 kB / 442.7 MB, free: 1.047 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004088/0.004919, allocations: 311.6 kB / 443 MB, free: 0.6992 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.909e-05/0.005009, allocations: 46.61 kB / 443 MB, free: 0.6445 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.233e-05/0.005031, allocations: 12.89 kB / 443.1 MB, free: 0.6289 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.868e-06/0.005041, allocations: 0 / 443.1 MB, free: 0.6289 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001037/0.005145, allocations: 71.33 kB / 443.1 MB, free: 0.5469 MB / 410.7 MB Notification: Performance of pre-optimization done (n=7): time 1.002e-06/0.005146, allocations: 0 / 443.1 MB, free: 0.5469 MB / 410.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001712/0.005317, allocations: 93.56 kB / 443.2 MB, free: 460 kB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.477e-05/0.005351, allocations: 55.39 kB / 443.3 MB, free: 392 kB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.743e-05/0.005429, allocations: 144.9 kB / 443.4 MB, free: 240 kB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.182e-05/0.005441, allocations: 25.7 kB / 443.4 MB, free: 208 kB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.103e-05/0.005482, allocations: 100.1 kB / 443.5 MB, free: 104 kB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.392e-05/0.005506, allocations: 15.89 kB / 443.5 MB, free: 88 kB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.224e-05/0.005538, allocations: 25.72 kB / 443.6 MB, free: 56 kB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.1542/0.1598, allocations: 319.4 kB / 443.9 MB, free: 46.14 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.038e-05/0.1599, allocations: 17.03 kB / 443.9 MB, free: 46.14 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.454e-05/0.1599, allocations: 38.61 kB / 443.9 MB, free: 46.12 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.84e-05/0.16, allocations: 51.52 kB / 444 MB, free: 46.09 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/0.16, allocations: 0 / 444 MB, free: 46.09 MB / 410.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001207/0.1601, allocations: 87.73 kB / 444.1 MB, free: 46.06 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.625e-05/0.1601, allocations: 5.531 kB / 444.1 MB, free: 46.06 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.042e-06/0.1601, allocations: 3.844 kB / 444.1 MB, free: 46.06 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.563e-05/0.1601, allocations: 3.312 kB / 444.1 MB, free: 46.06 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.95e-05/0.1602, allocations: 9.062 kB / 444.1 MB, free: 46.06 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.623e-06/0.1602, allocations: 7.031 kB / 444.1 MB, free: 46.06 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.127e-05/0.1603, allocations: 19.78 kB / 444.1 MB, free: 46.06 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.31e-06/0.1603, allocations: 10.5 kB / 444.1 MB, free: 46.06 MB / 410.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,integrator.reset,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,fallingEdge.not_u,$PRE.fallingEdge.not_u,$whenCondition2) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.271e-05/0.1603, allocations: 119.2 kB / 444.2 MB, free: 45.95 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.319e-05/0.1603, allocations: 9.297 kB / 444.3 MB, free: 45.95 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.921e-05/0.1604, allocations: 11.95 kB / 444.3 MB, free: 45.95 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.755e-06/0.1604, allocations: 6.656 kB / 444.3 MB, free: 45.95 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.08e-06/0.1604, allocations: 3.75 kB / 444.3 MB, free: 45.95 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.066e-06/0.1604, allocations: 0 / 444.3 MB, free: 45.95 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002343/0.1606, allocations: 306.4 kB / 444.6 MB, free: 45.69 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.1606, allocations: 2.062 kB / 444.6 MB, free: 45.69 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.971e-05/0.1607, allocations: 10.14 kB / 444.6 MB, free: 45.69 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.1607, allocations: 2.938 kB / 444.6 MB, free: 45.69 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.614e-06/0.1607, allocations: 4.188 kB / 444.6 MB, free: 45.69 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.1607, allocations: 0 / 444.6 MB, free: 45.69 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.1607, allocations: 0 / 444.6 MB, free: 45.69 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001189/0.1608, allocations: 189.9 kB / 444.8 MB, free: 45.56 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.132e-05/0.1608, allocations: 13.53 kB / 444.8 MB, free: 45.55 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.367e-05/0.1608, allocations: 5.312 kB / 444.8 MB, free: 45.55 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.426e-05/0.1609, allocations: 2.531 kB / 444.8 MB, free: 45.55 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.66e-05/0.1609, allocations: 14.95 kB / 444.8 MB, free: 45.55 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.511e-06/0.1609, allocations: 2.625 kB / 444.8 MB, free: 45.55 MB / 410.7 MB Notification: Performance of sorting global known variables: time 3.128e-05/0.1609, allocations: 106.5 kB / 444.9 MB, free: 45.48 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1609, allocations: 3.875 kB / 444.9 MB, free: 45.48 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001514/0.1611, allocations: 14.38 kB / 444.9 MB, free: 45.48 MB / 410.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,fallingEdge.not_u,booleanPulse.pulseStart) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001959/0.1613, allocations: 0.7237 MB / 445.7 MB, free: 44.82 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 9.129e-05/0.1614, allocations: 46.66 kB / 445.7 MB, free: 44.82 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.1614, allocations: 0 / 445.7 MB, free: 44.82 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 3.253e-05/0.1614, allocations: 24.69 kB / 445.7 MB, free: 44.81 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002238/0.1616, allocations: 16.2 kB / 445.8 MB, free: 44.81 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007766/0.1624, allocations: 1.527 MB / 447.3 MB, free: 43.61 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.523e-05/0.1624, allocations: 77.08 kB / 447.4 MB, free: 43.54 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 3.127e-05/0.1625, allocations: 15.17 kB / 447.4 MB, free: 43.53 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.307e-05/0.1625, allocations: 30.56 kB / 447.4 MB, free: 43.53 MB / 410.7 MB Notification: Performance of SimCode: time 6.21e-07/0.1625, allocations: 0 / 447.4 MB, free: 43.53 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01569/0.1782, allocations: 2.954 MB / 450.4 MB, free: 42.6 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.97/7.148, allocations: 7.047 kB / 450.4 MB, free: 42.59 MB / 410.7 MB " [Timeout remaining time 653] (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 & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000997805 ModelicaTest_4_0_0_ModelicaTest_Blocks_ResetHoldIntegrator.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/ResetHoldIntegrator/ResetHoldIntegrator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,integrator.y Variables in the result:time,integrator.y [Calling sys.exit(0), Time elapsed: 9.207724251784384]