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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001678/0.001678, allocations: 117.7 kB / 18.45 MB, free: 4.598 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002024/0.002024, allocations: 190.9 kB / 21.39 MB, free: 1.664 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.488/1.488, allocations: 222.9 MB / 247.1 MB, free: 4.199 MB / 190.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.336/0.336, allocations: 44.24 MB / 343.5 MB, free: 7.594 MB / 270.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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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 0.001953/0.001953, allocations: 68.08 kB / 478.8 MB, free: 24.63 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1169/0.1188, allocations: 60.83 MB / 0.527 GB, free: 13.68 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.003104/0.122, allocations: 1.61 MB / 0.5286 GB, free: 12.05 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009097/0.1229, allocations: 486.7 kB / 0.529 GB, free: 11.57 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.431e-05/0.123, allocations: 4 kB / 0.529 GB, free: 11.57 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001324/0.1232, allocations: 15.86 kB / 0.529 GB, free: 11.55 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.174e-05/0.1232, allocations: 7.875 kB / 0.5291 GB, free: 11.54 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002227/0.1235, allocations: 35.91 kB / 0.5291 GB, free: 11.51 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001676/0.1237, allocations: 87.69 kB / 0.5292 GB, free: 11.42 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001396/0.1238, allocations: 28.44 kB / 0.5292 GB, free: 11.39 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.336e-05/0.1239, allocations: 31.8 kB / 0.5292 GB, free: 11.36 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.431e-05/0.124, allocations: 35.84 kB / 0.5293 GB, free: 11.33 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.352e-05/0.124, allocations: 8 kB / 0.5293 GB, free: 11.32 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.594e-05/0.124, allocations: 4 kB / 0.5293 GB, free: 11.32 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.533e-05/0.124, allocations: 19.92 kB / 0.5293 GB, free: 11.3 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 6.689e-05/0.1241, allocations: 35.8 kB / 0.5293 GB, free: 11.26 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001777/0.1243, allocations: 75.66 kB / 0.5294 GB, free: 11.19 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.04e-06/0.1243, allocations: 3.938 kB / 0.5294 GB, free: 11.18 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.966e-06/0.1243, allocations: 0 / 0.5294 GB, free: 11.18 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.853e-06/0.1243, allocations: 0 / 0.5294 GB, free: 11.18 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.0006648/0.125, allocations: 395.1 kB / 0.5298 GB, free: 10.75 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.277e-05/0.1251, allocations: 8.031 kB / 0.5298 GB, free: 10.74 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.655e-05/0.1251, allocations: 42.73 kB / 0.5298 GB, free: 10.69 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.551e-05/0.1252, allocations: 8.891 kB / 0.5298 GB, free: 10.68 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003042/0.1255, allocations: 192.2 kB / 0.53 GB, free: 10.46 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.451e-05/0.1255, allocations: 4.375 kB / 0.53 GB, free: 10.45 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.181e-05/0.1255, allocations: 12.38 kB / 0.53 GB, free: 10.44 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001544/0.1257, allocations: 81.61 kB / 0.5301 GB, free: 10.36 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.025e-05/0.1257, allocations: 4 kB / 0.5301 GB, free: 10.35 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.277e-05/0.1257, allocations: 4 kB / 0.5301 GB, free: 10.35 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.335e-06/0.1257, allocations: 4 kB / 0.5301 GB, free: 10.34 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.738e-05/0.1258, allocations: 31.98 kB / 0.5302 GB, free: 10.31 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006162/0.1265, allocations: 356.5 kB / 0.5305 GB, free: 9.914 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001219/0.1266, allocations: 50.56 kB / 0.5305 GB, free: 9.855 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.514e-05/0.1266, allocations: 12.89 kB / 0.5306 GB, free: 9.84 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.435e-05/0.1267, allocations: 4 kB / 0.5306 GB, free: 9.836 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001471/0.1268, allocations: 71.36 kB / 0.5306 GB, free: 9.754 MB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.342e-06/0.1268, allocations: 0 / 0.5306 GB, free: 9.754 MB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002339/0.1271, allocations: 93.56 kB / 0.5307 GB, free: 9.656 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.546e-05/0.1271, allocations: 51.41 kB / 0.5308 GB, free: 9.594 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001434/0.1273, allocations: 143.7 kB / 0.5309 GB, free: 9.445 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.172e-05/0.1273, allocations: 29.7 kB / 0.5309 GB, free: 9.41 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.579e-05/0.1274, allocations: 100.1 kB / 0.531 GB, free: 9.309 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.441e-05/0.1274, allocations: 15.89 kB / 0.531 GB, free: 9.293 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.282e-05/0.1275, allocations: 29.7 kB / 0.5311 GB, free: 9.258 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001517/0.1276, allocations: 322.8 kB / 0.5314 GB, free: 8.934 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.059e-05/0.1277, allocations: 15.94 kB / 0.5314 GB, free: 8.918 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.068e-05/0.1277, allocations: 46.5 kB / 0.5314 GB, free: 8.863 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.998e-05/0.1278, allocations: 46.52 kB / 0.5315 GB, free: 8.809 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.566e-06/0.1279, allocations: 4 kB / 0.5315 GB, free: 8.805 MB / 398.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001438/0.128, allocations: 85.58 kB / 0.5316 GB, free: 8.715 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.305e-05/0.128, allocations: 4 kB / 0.5316 GB, free: 8.711 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.446e-06/0.128, allocations: 7.938 kB / 0.5316 GB, free: 8.703 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.36e-05/0.1281, allocations: 0 / 0.5316 GB, free: 8.703 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.551e-05/0.1281, allocations: 16.05 kB / 0.5316 GB, free: 8.688 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.29e-06/0.1281, allocations: 4 kB / 0.5316 GB, free: 8.684 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.687e-05/0.1282, allocations: 12.03 kB / 0.5316 GB, free: 8.672 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.142e-05/0.1282, allocations: 4 kB / 0.5316 GB, free: 8.668 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,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.0001058/0.1283, allocations: 123.5 kB / 0.5317 GB, free: 8.539 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.066e-05/0.1284, allocations: 7.953 kB / 0.5317 GB, free: 8.531 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.488e-05/0.1284, allocations: 16.59 kB / 0.5318 GB, free: 8.512 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.911e-06/0.1284, allocations: 4 kB / 0.5318 GB, free: 8.508 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.547e-06/0.1284, allocations: 7.938 kB / 0.5318 GB, free: 8.5 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.075e-06/0.1284, allocations: 0 / 0.5318 GB, free: 8.5 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003956/0.1288, allocations: 342.9 kB / 0.5321 GB, free: 8.109 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.1288, allocations: 4 kB / 0.5321 GB, free: 8.105 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.777e-05/0.1289, allocations: 3.984 kB / 0.5321 GB, free: 8.102 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.753e-06/0.1289, allocations: 4 kB / 0.5321 GB, free: 8.098 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.091e-05/0.1289, allocations: 0 / 0.5321 GB, free: 8.098 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.382e-06/0.1289, allocations: 3.938 kB / 0.5321 GB, free: 8.094 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.1289, allocations: 80 / 0.5321 GB, free: 8.094 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002395/0.1292, allocations: 199.4 kB / 0.5323 GB, free: 7.883 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.099e-05/0.1292, allocations: 81.06 kB / 0.5324 GB, free: 7.785 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.941e-05/0.1293, allocations: 4.031 kB / 0.5324 GB, free: 7.781 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.382e-05/0.1294, allocations: 7.984 kB / 0.5324 GB, free: 7.773 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.428e-05/0.1294, allocations: 4 kB / 0.5324 GB, free: 7.77 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.039e-05/0.1294, allocations: 7.984 kB / 0.5324 GB, free: 7.762 MB / 398.1 MB Notification: Performance of sorting global known variables: time 7.898e-05/0.1295, allocations: 105.6 kB / 0.5325 GB, free: 7.66 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1295, allocations: 0 / 0.5325 GB, free: 7.66 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002454/0.1298, allocations: 24.02 kB / 0.5325 GB, free: 7.637 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,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.0005483/0.1303, allocations: 0.7202 MB / 0.5332 GB, free: 6.891 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001416/0.1305, allocations: 47.92 kB / 0.5333 GB, free: 6.844 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.1305, allocations: 0 / 0.5333 GB, free: 6.844 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.241e-05/0.1305, allocations: 23.98 kB / 0.5333 GB, free: 6.82 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003144/0.1309, allocations: 24.3 kB / 0.5333 GB, free: 6.797 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001724/0.1326, allocations: 1.534 MB / 0.5348 GB, free: 5.168 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003296/0.1329, allocations: 0.7002 MB / 0.5355 GB, free: 4.441 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 3.929e-05/0.133, allocations: 12.42 kB / 0.5355 GB, free: 4.43 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.995e-05/0.1331, allocations: 27.42 kB / 0.5355 GB, free: 4.402 MB / 398.1 MB Notification: Performance of SimCode: time 2.124e-06/0.1331, allocations: 112 / 0.5355 GB, free: 4.402 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02422/0.1573, allocations: 2.251 MB / 0.5377 GB, free: 2.23 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.848/8.006, allocations: 4.375 kB / 0.5377 GB, free: 2.23 MB / 398.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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/ResetHoldIntegrator/ResetHoldIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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.077493520104326]