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.001761/0.001761, allocations: 123.4 kB / 17.79 MB, free: 5.246 MB / 14.72 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.002116/0.002116, allocations: 209.6 kB / 20.75 MB, free: 2.293 MB / 14.72 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 1.518/1.518, allocations: 230.6 MB / 254.1 MB, free: 15.11 MB / 206.1 MB " [Timeout remaining time 178] 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.2213/0.2213, allocations: 44.9 MB / 355.1 MB, free: 12.32 MB / 286.1 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: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001961/0.001961, allocations: 67.89 kB / 499.6 MB, free: 11.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1226/0.1246, allocations: 65.41 MB / 0.5517 GB, free: 10.13 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.003247/0.1278, allocations: 1.629 MB / 0.5533 GB, free: 8.492 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.00106/0.1289, allocations: 0.5276 MB / 0.5538 GB, free: 7.961 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.975e-05/0.129, allocations: 7.938 kB / 0.5539 GB, free: 7.953 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001247/0.1291, allocations: 7.875 kB / 0.5539 GB, free: 7.945 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 4.911e-05/0.1291, allocations: 11.86 kB / 0.5539 GB, free: 7.934 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001929/0.1293, allocations: 35.91 kB / 0.5539 GB, free: 7.898 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.000144/0.1295, allocations: 83.75 kB / 0.554 GB, free: 7.816 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001156/0.1296, allocations: 28.44 kB / 0.554 GB, free: 7.789 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.963e-05/0.1296, allocations: 23.92 kB / 0.554 GB, free: 7.766 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.002e-05/0.1297, allocations: 31.8 kB / 0.5541 GB, free: 7.734 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 2.092e-05/0.1298, allocations: 12 kB / 0.5541 GB, free: 7.723 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.237e-05/0.1298, allocations: 7.938 kB / 0.5541 GB, free: 7.715 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 3.003e-05/0.1298, allocations: 19.97 kB / 0.5541 GB, free: 7.695 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 4.891e-05/0.1298, allocations: 39.73 kB / 0.5541 GB, free: 7.656 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001466/0.13, allocations: 71.66 kB / 0.5542 GB, free: 7.586 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.517e-06/0.13, allocations: 4 kB / 0.5542 GB, free: 7.582 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.13, allocations: 3.938 kB / 0.5542 GB, free: 7.578 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.015e-05/0.13, allocations: 0 / 0.5542 GB, free: 7.578 MB / 414.1 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.0006178/0.1306, allocations: 387.1 kB / 0.5546 GB, free: 7.152 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.117e-05/0.1307, allocations: 16.03 kB / 0.5546 GB, free: 7.137 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.726e-05/0.1307, allocations: 34.75 kB / 0.5546 GB, free: 7.094 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.493e-05/0.1307, allocations: 8.891 kB / 0.5546 GB, free: 7.086 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002944/0.131, allocations: 204.1 kB / 0.5548 GB, free: 6.848 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.683e-05/0.1311, allocations: 8.375 kB / 0.5548 GB, free: 6.84 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.502e-05/0.1311, allocations: 4.375 kB / 0.5549 GB, free: 6.836 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001807/0.1313, allocations: 85.72 kB / 0.5549 GB, free: 6.746 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.408e-06/0.1313, allocations: 0 / 0.5549 GB, free: 6.746 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.232e-05/0.1313, allocations: 4 kB / 0.5549 GB, free: 6.742 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.935e-06/0.1313, allocations: 4 kB / 0.5549 GB, free: 6.738 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.203e-05/0.1314, allocations: 31.98 kB / 0.555 GB, free: 6.707 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006164/0.132, allocations: 360.7 kB / 0.5553 GB, free: 6.305 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000119/0.1321, allocations: 42.52 kB / 0.5554 GB, free: 6.254 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.723e-05/0.1321, allocations: 16.92 kB / 0.5554 GB, free: 6.234 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.446e-05/0.1322, allocations: 8 kB / 0.5554 GB, free: 6.227 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000143/0.1323, allocations: 63.39 kB / 0.5554 GB, free: 6.152 MB / 414.1 MB Notification: Performance of pre-optimization done (n=7): time 1.853e-06/0.1323, allocations: 0 / 0.5554 GB, free: 6.152 MB / 414.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002409/0.1325, allocations: 93.5 kB / 0.5555 GB, free: 6.055 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.478e-05/0.1326, allocations: 51.41 kB / 0.5556 GB, free: 5.992 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000134/0.1327, allocations: 143.7 kB / 0.5557 GB, free: 5.844 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.025e-05/0.1327, allocations: 25.7 kB / 0.5557 GB, free: 5.812 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.984e-05/0.1328, allocations: 100.1 kB / 0.5558 GB, free: 5.711 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.946e-05/0.1328, allocations: 19.89 kB / 0.5559 GB, free: 5.691 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.615e-05/0.1329, allocations: 21.72 kB / 0.5559 GB, free: 5.664 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001511/0.133, allocations: 322.8 kB / 0.5562 GB, free: 5.34 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.297e-05/0.1331, allocations: 16 kB / 0.5562 GB, free: 5.324 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.648e-05/0.1331, allocations: 34.56 kB / 0.5562 GB, free: 5.281 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.012e-05/0.1332, allocations: 62.5 kB / 0.5563 GB, free: 5.211 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.1332, allocations: 192 / 0.5563 GB, free: 5.211 MB / 414.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001504/0.1334, allocations: 97.45 kB / 0.5564 GB, free: 5.109 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.617e-05/0.1334, allocations: 7.938 kB / 0.5564 GB, free: 5.102 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.486e-06/0.1334, allocations: 3.938 kB / 0.5564 GB, free: 5.098 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.728e-05/0.1334, allocations: 4 kB / 0.5564 GB, free: 5.094 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.818e-05/0.1335, allocations: 4 kB / 0.5564 GB, free: 5.09 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.767e-06/0.1335, allocations: 4.062 kB / 0.5564 GB, free: 5.086 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.673e-05/0.1336, allocations: 19.92 kB / 0.5564 GB, free: 5.066 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.536e-06/0.1336, allocations: 7.938 kB / 0.5564 GB, free: 5.059 MB / 414.1 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,fallingEdge.not_u,$PRE.fallingEdge.not_u,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,integrator.reset,$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 0.0001031/0.1337, allocations: 118.1 kB / 0.5565 GB, free: 4.938 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.062e-05/0.1337, allocations: 7.953 kB / 0.5566 GB, free: 4.93 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.04e-05/0.1338, allocations: 16.64 kB / 0.5566 GB, free: 4.91 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.123e-06/0.1338, allocations: 7.984 kB / 0.5566 GB, free: 4.902 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.948e-06/0.1338, allocations: 0 / 0.5566 GB, free: 4.902 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.1338, allocations: 0 / 0.5566 GB, free: 4.902 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000393/0.1342, allocations: 350.4 kB / 0.5569 GB, free: 4.504 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.1342, allocations: 0 / 0.5569 GB, free: 4.504 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.796e-05/0.1342, allocations: 4 kB / 0.5569 GB, free: 4.5 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.37e-06/0.1342, allocations: 4 kB / 0.5569 GB, free: 4.496 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.012e-05/0.1342, allocations: 0 / 0.5569 GB, free: 4.496 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/0.1342, allocations: 0 / 0.5569 GB, free: 4.496 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.1342, allocations: 0 / 0.5569 GB, free: 4.496 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002436/0.1345, allocations: 203.9 kB / 0.5571 GB, free: 4.281 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.322e-05/0.1345, allocations: 81.06 kB / 0.5572 GB, free: 4.184 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.16e-05/0.1346, allocations: 4 kB / 0.5572 GB, free: 4.18 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.059e-05/0.1346, allocations: 8.016 kB / 0.5572 GB, free: 4.172 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.879e-05/0.1347, allocations: 11.92 kB / 0.5572 GB, free: 4.16 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.276e-06/0.1347, allocations: 4 kB / 0.5572 GB, free: 4.156 MB / 414.1 MB Notification: Performance of sorting global known variables: time 8.247e-05/0.1348, allocations: 109.5 kB / 0.5573 GB, free: 4.051 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1348, allocations: 0 / 0.5573 GB, free: 4.051 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002339/0.135, allocations: 12 kB / 0.5573 GB, free: 4.039 MB / 414.1 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 (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.0005296/0.1356, allocations: 0.7242 MB / 0.558 GB, free: 3.289 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001473/0.1357, allocations: 43.91 kB / 0.5581 GB, free: 3.246 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.1357, allocations: 0 / 0.5581 GB, free: 3.246 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.433e-05/0.1358, allocations: 27.88 kB / 0.5581 GB, free: 3.219 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000312/0.1361, allocations: 15.98 kB / 0.5581 GB, free: 3.203 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001678/0.1377, allocations: 1.523 MB / 0.5596 GB, free: 1.586 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003388/0.1381, allocations: 0.6963 MB / 0.5603 GB, free: 0.8633 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 3.731e-05/0.1381, allocations: 4.438 kB / 0.5603 GB, free: 0.8594 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.162e-05/0.1382, allocations: 39.36 kB / 0.5603 GB, free: 0.8203 MB / 414.1 MB Notification: Performance of SimCode: time 7.31e-07/0.1382, allocations: 0 / 0.5603 GB, free: 0.8203 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0252/0.1634, allocations: 2.221 MB / 0.5625 GB, free: 14.68 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.224/8.387, allocations: 5.828 kB / 0.5625 GB, free: 14.68 MB / 430.1 MB " [Timeout remaining time 652] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/ResetHoldIntegrator/ResetHoldIntegrator.csv","/var/lib/jenkins1/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] Reference file matches [Calling sys.exit(0), Time elapsed: 11.529733984731138]