Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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.001382/0.001382, allocations: 108.3 kB / 19.7 MB, free: 1.918 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.001525/0.001525, allocations: 218.1 kB / 22.99 MB, free: 4.977 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.467/1.467, allocations: 207.7 MB / 233.8 MB, free: 9.801 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.244/0.244, allocations: 44.27 MB / 330.3 MB, free: 9.312 MB / 270.1 MB " [Timeout remaining time 179] 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 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 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_3_2_3_ModelicaTest_Blocks_ResetHoldIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.ResetHoldIntegrator,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_ResetHoldIntegrator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 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.002602/0.002602, allocations: 71.89 kB / 467.5 MB, free: 4.355 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1328/0.1354, allocations: 61.05 MB / 0.5162 GB, free: 7.18 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.00406/0.1394, allocations: 1.593 MB / 0.5177 GB, free: 5.578 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001282/0.1407, allocations: 0.4957 MB / 0.5182 GB, free: 5.074 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000121/0.1408, allocations: 4 kB / 0.5182 GB, free: 5.07 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001544/0.141, allocations: 11.86 kB / 0.5182 GB, free: 5.059 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.042e-05/0.141, allocations: 15.86 kB / 0.5182 GB, free: 5.043 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000234/0.1413, allocations: 35.91 kB / 0.5183 GB, free: 5.008 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001906/0.1415, allocations: 79.77 kB / 0.5183 GB, free: 4.93 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000139/0.1416, allocations: 32.19 kB / 0.5184 GB, free: 4.898 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.299e-05/0.1417, allocations: 39.8 kB / 0.5184 GB, free: 4.859 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.497e-05/0.1418, allocations: 23.86 kB / 0.5184 GB, free: 4.836 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.47e-05/0.1418, allocations: 8 kB / 0.5184 GB, free: 4.828 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.824e-05/0.1418, allocations: 8 kB / 0.5184 GB, free: 4.82 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.786e-05/0.1418, allocations: 11.92 kB / 0.5184 GB, free: 4.809 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 4.896e-05/0.1419, allocations: 31.8 kB / 0.5185 GB, free: 4.777 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001859/0.1421, allocations: 83.58 kB / 0.5186 GB, free: 4.695 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.1421, allocations: 0 / 0.5186 GB, free: 4.695 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.953e-06/0.1421, allocations: 0 / 0.5186 GB, free: 4.695 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.49e-06/0.1421, allocations: 0 / 0.5186 GB, free: 4.695 MB / 398.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.0006305/0.1427, allocations: 330.9 kB / 0.5189 GB, free: 4.34 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.211e-05/0.1427, allocations: 8.031 kB / 0.5189 GB, free: 4.332 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.981e-05/0.1428, allocations: 46.73 kB / 0.5189 GB, free: 4.277 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.973e-05/0.1428, allocations: 12.84 kB / 0.5189 GB, free: 4.266 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002776/0.1431, allocations: 130.4 kB / 0.5191 GB, free: 4.113 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.589e-05/0.1431, allocations: 8.375 kB / 0.5191 GB, free: 4.105 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.27e-05/0.1432, allocations: 12.36 kB / 0.5191 GB, free: 4.094 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001731/0.1433, allocations: 73.73 kB / 0.5192 GB, free: 4.016 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.417e-06/0.1434, allocations: 0 / 0.5192 GB, free: 4.016 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.511e-05/0.1434, allocations: 11.94 kB / 0.5192 GB, free: 4.004 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.444e-05/0.1434, allocations: 4 kB / 0.5192 GB, free: 4 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.625e-05/0.1435, allocations: 31.98 kB / 0.5192 GB, free: 3.969 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005854/0.1441, allocations: 311.6 kB / 0.5195 GB, free: 3.621 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001161/0.1442, allocations: 42.56 kB / 0.5195 GB, free: 3.57 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.685e-05/0.1442, allocations: 16.89 kB / 0.5196 GB, free: 3.551 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.658e-06/0.1442, allocations: 0 / 0.5196 GB, free: 3.551 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001469/0.1444, allocations: 71.38 kB / 0.5196 GB, free: 3.469 MB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.452e-06/0.1444, allocations: 0 / 0.5196 GB, free: 3.469 MB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002576/0.1446, allocations: 97.55 kB / 0.5197 GB, free: 3.367 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.297e-05/0.1447, allocations: 59.39 kB / 0.5198 GB, free: 3.297 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001364/0.1448, allocations: 138.7 kB / 0.5199 GB, free: 3.152 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.804e-05/0.1449, allocations: 29.7 kB / 0.5199 GB, free: 3.117 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.494e-05/0.1449, allocations: 104.1 kB / 0.52 GB, free: 3.012 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.686e-05/0.145, allocations: 15.86 kB / 0.52 GB, free: 2.996 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.149e-05/0.145, allocations: 25.72 kB / 0.5201 GB, free: 2.965 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001641/0.1452, allocations: 326.8 kB / 0.5204 GB, free: 2.637 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.403e-05/0.1452, allocations: 15.98 kB / 0.5204 GB, free: 2.621 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.327e-05/0.1453, allocations: 34.58 kB / 0.5204 GB, free: 2.578 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.865e-05/0.1454, allocations: 58.5 kB / 0.5205 GB, free: 2.512 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.1454, allocations: 0 / 0.5205 GB, free: 2.512 MB / 398.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001623/0.1455, allocations: 85.58 kB / 0.5206 GB, free: 2.422 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.888e-05/0.1455, allocations: 4.188 kB / 0.5206 GB, free: 2.418 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.854e-06/0.1456, allocations: 7.938 kB / 0.5206 GB, free: 2.41 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.634e-05/0.1456, allocations: 3.938 kB / 0.5206 GB, free: 2.406 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.457e-05/0.1456, allocations: 8 kB / 0.5206 GB, free: 2.398 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.44e-06/0.1457, allocations: 0 / 0.5206 GB, free: 2.398 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.274e-05/0.1457, allocations: 16.12 kB / 0.5206 GB, free: 2.383 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.588e-06/0.1457, allocations: 4 kB / 0.5206 GB, free: 2.379 MB / 398.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,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 0.0001153/0.1458, allocations: 117.8 kB / 0.5207 GB, free: 2.254 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.939e-05/0.1459, allocations: 15.84 kB / 0.5207 GB, free: 2.238 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.38e-05/0.1459, allocations: 20.64 kB / 0.5208 GB, free: 2.215 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.304e-06/0.1459, allocations: 0 / 0.5208 GB, free: 2.215 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.639e-06/0.1459, allocations: 0 / 0.5208 GB, free: 2.215 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.396e-06/0.1459, allocations: 3.938 kB / 0.5208 GB, free: 2.211 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004049/0.1463, allocations: 305.6 kB / 0.5211 GB, free: 1.863 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.1463, allocations: 0 / 0.5211 GB, free: 1.863 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.262e-05/0.1464, allocations: 7.984 kB / 0.5211 GB, free: 1.855 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.295e-06/0.1464, allocations: 4 kB / 0.5211 GB, free: 1.852 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.118e-05/0.1464, allocations: 7.938 kB / 0.5211 GB, free: 1.844 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.993e-06/0.1464, allocations: 0 / 0.5211 GB, free: 1.844 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.1464, allocations: 4 kB / 0.5211 GB, free: 1.84 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002461/0.1466, allocations: 191.4 kB / 0.5213 GB, free: 1.637 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.54e-05/0.1467, allocations: 11.98 kB / 0.5213 GB, free: 1.625 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.777e-05/0.1467, allocations: 0 / 0.5213 GB, free: 1.625 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.894e-05/0.1468, allocations: 7.984 kB / 0.5213 GB, free: 1.617 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.673e-05/0.1468, allocations: 7.984 kB / 0.5213 GB, free: 1.609 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.768e-06/0.1468, allocations: 8 kB / 0.5213 GB, free: 1.602 MB / 398.1 MB Notification: Performance of sorting global known variables: time 7.647e-05/0.1469, allocations: 105.2 kB / 0.5214 GB, free: 1.5 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1469, allocations: 4 kB / 0.5214 GB, free: 1.496 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002438/0.1472, allocations: 15.94 kB / 0.5214 GB, free: 1.48 MB / 398.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,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.0005418/0.1477, allocations: 0.7246 MB / 0.5221 GB, free: 0.7305 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001319/0.1478, allocations: 43.98 kB / 0.5222 GB, free: 0.6875 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.1478, allocations: 0 / 0.5222 GB, free: 0.6875 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.535e-05/0.1479, allocations: 23.98 kB / 0.5222 GB, free: 0.6641 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003151/0.1482, allocations: 18.48 kB / 0.5222 GB, free: 0.6484 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001733/0.1499, allocations: 1.537 MB / 0.5237 GB, free: 15.02 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.168e-05/0.15, allocations: 79.27 kB / 0.5238 GB, free: 14.92 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.069e-05/0.1501, allocations: 8.422 kB / 0.5238 GB, free: 14.91 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.307e-05/0.1501, allocations: 27.44 kB / 0.5238 GB, free: 14.89 MB / 414.1 MB Notification: Performance of SimCode: time 4.31e-07/0.1501, allocations: 0 / 0.5238 GB, free: 14.89 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03152/0.1816, allocations: 2.836 MB / 0.5266 GB, free: 12.05 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.2/11.38, allocations: 15.75 kB / 0.5266 GB, free: 12.03 MB / 414.1 MB " [Timeout remaining time 649] (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_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_3_2_3_ModelicaTest_Blocks_ResetHoldIntegrator.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/ResetHoldIntegrator/ResetHoldIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_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: 14.898009334690869]