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.0008793/0.0008793, allocations: 80.53 kB / 19.93 MB, free: 4.633 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.0008355/0.0008355, allocations: 169.9 kB / 23.21 MB, free: 1.355 MB / 18.57 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 0.8851/0.8851, allocations: 158.6 MB / 185 MB, free: 3.039 MB / 170.7 MB " [Timeout remaining time 179] 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.1419/0.1419, allocations: 32.37 MB / 269.6 MB, free: 14.96 MB / 266.7 MB " [Timeout remaining time 180] 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: Performance of FrontEnd - loaded program: time 2.014e-06/2.014e-06, allocations: 0 / 406.8 MB, free: 2.266 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.608e-05/2.809e-05, allocations: 5.938 kB / 406.8 MB, free: 2.262 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.002958/0.002986, allocations: 1.604 MB / 408.4 MB, free: 0.6484 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009549/0.003941, allocations: 0.5074 MB / 408.9 MB, free: 136 kB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.048e-05/0.004032, allocations: 0 / 408.9 MB, free: 136 kB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001371/0.004169, allocations: 11.88 kB / 408.9 MB, free: 124 kB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 6.014e-05/0.004229, allocations: 15.86 kB / 409 MB, free: 108 kB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002144/0.004443, allocations: 39.83 kB / 409 MB, free: 68 kB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001802/0.004623, allocations: 83.7 kB / 409.1 MB, free: 15.98 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001492/0.004773, allocations: 28.16 kB / 409.1 MB, free: 15.96 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.676e-05/0.004849, allocations: 39.84 kB / 409.1 MB, free: 15.92 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.039e-05/0.00491, allocations: 27.89 kB / 409.2 MB, free: 15.89 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 2.331e-05/0.004933, allocations: 8 kB / 409.2 MB, free: 15.88 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.059e-05/0.004944, allocations: 8 kB / 409.2 MB, free: 15.88 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 2.365e-05/0.004967, allocations: 15.94 kB / 409.2 MB, free: 15.86 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 3.293e-05/0.005, allocations: 23.92 kB / 409.2 MB, free: 15.84 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001218/0.005122, allocations: 79.69 kB / 409.3 MB, free: 15.76 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.605e-06/0.005125, allocations: 0 / 409.3 MB, free: 15.76 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.483e-06/0.005126, allocations: 0 / 409.3 MB, free: 15.76 MB / 394.7 MB Notification: Performance of Transformations before backend: time 4.188e-06/0.00513, allocations: 0 / 409.3 MB, free: 15.76 MB / 394.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.0004389/0.005569, allocations: 318.9 kB / 409.6 MB, free: 15.41 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.671e-05/0.005616, allocations: 12.03 kB / 409.6 MB, free: 15.4 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.967e-05/0.005656, allocations: 38.75 kB / 409.7 MB, free: 15.36 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.64e-05/0.005692, allocations: 16.84 kB / 409.7 MB, free: 15.34 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000225/0.005917, allocations: 133.6 kB / 409.8 MB, free: 15.18 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.869e-05/0.005936, allocations: 12.31 kB / 409.8 MB, free: 15.17 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.455e-05/0.00596, allocations: 8.375 kB / 409.8 MB, free: 15.16 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001582/0.006118, allocations: 70.23 kB / 409.9 MB, free: 15.09 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.033e-05/0.006129, allocations: 192 / 409.9 MB, free: 15.09 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.525e-05/0.006144, allocations: 8.125 kB / 409.9 MB, free: 15.08 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.454e-06/0.006151, allocations: 4 kB / 409.9 MB, free: 15.08 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.883e-05/0.00624, allocations: 39.91 kB / 410 MB, free: 15.04 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000567/0.006807, allocations: 319.7 kB / 410.3 MB, free: 14.68 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001241/0.006931, allocations: 46.5 kB / 410.3 MB, free: 14.63 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.291e-05/0.006964, allocations: 16.94 kB / 410.3 MB, free: 14.61 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.624e-05/0.006981, allocations: 3.984 kB / 410.3 MB, free: 14.61 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001553/0.007136, allocations: 67.39 kB / 410.4 MB, free: 14.53 MB / 394.7 MB Notification: Performance of pre-optimization done (n=7): time 2.174e-06/0.007138, allocations: 0 / 410.4 MB, free: 14.53 MB / 394.7 MB Notification: Performance of matching and sorting (n=7): time 0.000253/0.007391, allocations: 85.56 kB / 410.5 MB, free: 14.44 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.429e-05/0.007445, allocations: 55.41 kB / 410.5 MB, free: 14.37 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00012/0.007565, allocations: 145.8 kB / 410.7 MB, free: 14.22 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.81e-05/0.007583, allocations: 25.7 kB / 410.7 MB, free: 14.19 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.035e-05/0.007644, allocations: 100.1 kB / 410.8 MB, free: 14.09 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.726e-05/0.007671, allocations: 19.86 kB / 410.8 MB, free: 14.07 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.908e-05/0.00772, allocations: 29.7 kB / 410.8 MB, free: 14.03 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001105/0.007831, allocations: 318.8 kB / 411.2 MB, free: 13.71 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.855e-05/0.007869, allocations: 16 kB / 411.2 MB, free: 13.7 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.152e-05/0.007921, allocations: 38.56 kB / 411.2 MB, free: 13.65 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.55e-05/0.008006, allocations: 50.81 kB / 411.3 MB, free: 13.59 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.677e-06/0.00801, allocations: 8 kB / 411.3 MB, free: 13.58 MB / 394.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001349/0.008145, allocations: 93.55 kB / 411.4 MB, free: 13.48 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.509e-05/0.00816, allocations: 4 kB / 411.4 MB, free: 13.48 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.612e-06/0.008166, allocations: 0 / 411.4 MB, free: 13.48 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.338e-05/0.00818, allocations: 4 kB / 411.4 MB, free: 13.48 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.18e-05/0.008242, allocations: 4 kB / 411.4 MB, free: 13.47 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.979e-06/0.008252, allocations: 11.88 kB / 411.4 MB, free: 13.46 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.724e-05/0.008299, allocations: 15.92 kB / 411.4 MB, free: 13.45 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.071e-06/0.008305, allocations: 4 kB / 411.4 MB, free: 13.44 MB / 394.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 7.847e-05/0.008383, allocations: 117.9 kB / 411.5 MB, free: 13.32 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.071e-05/0.008394, allocations: 7.953 kB / 411.5 MB, free: 13.31 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.44e-05/0.008419, allocations: 8.781 kB / 411.5 MB, free: 13.3 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.098e-06/0.008423, allocations: 4.188 kB / 411.5 MB, free: 13.3 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.252e-06/0.008429, allocations: 3.938 kB / 411.5 MB, free: 13.3 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.008433, allocations: 3.938 kB / 411.5 MB, free: 13.29 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002613/0.008694, allocations: 317.5 kB / 411.9 MB, free: 12.93 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.008696, allocations: 3.938 kB / 411.9 MB, free: 12.93 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.985e-05/0.008735, allocations: 4 kB / 411.9 MB, free: 12.93 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.266e-06/0.008739, allocations: 3.938 kB / 411.9 MB, free: 12.92 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.464e-06/0.008746, allocations: 0 / 411.9 MB, free: 12.92 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.008748, allocations: 4 kB / 411.9 MB, free: 12.92 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.008748, allocations: 0 / 411.9 MB, free: 12.92 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001579/0.008906, allocations: 191.4 kB / 412.1 MB, free: 12.71 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.232e-05/0.008919, allocations: 11.97 kB / 412.1 MB, free: 12.7 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.357e-05/0.008932, allocations: 3.938 kB / 412.1 MB, free: 12.7 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.74e-05/0.00898, allocations: 4 kB / 412.1 MB, free: 12.7 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.915e-05/0.009019, allocations: 11.98 kB / 412.1 MB, free: 12.68 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.819e-06/0.009024, allocations: 0 / 412.1 MB, free: 12.68 MB / 394.7 MB Notification: Performance of sorting global known variables: time 4.853e-05/0.009072, allocations: 110.4 kB / 412.2 MB, free: 12.58 MB / 394.7 MB Notification: Performance of sort global known variables: time 5e-08/0.009072, allocations: 0 / 412.2 MB, free: 12.58 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0001625/0.009235, allocations: 20.06 kB / 412.2 MB, free: 12.56 MB / 394.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.0003988/0.009633, allocations: 0.7163 MB / 412.9 MB, free: 11.81 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001232/0.009757, allocations: 51.91 kB / 413 MB, free: 11.76 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.215e-06/0.009759, allocations: 0 / 413 MB, free: 11.76 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 3.806e-05/0.009797, allocations: 23.92 kB / 413 MB, free: 11.74 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002758/0.01007, allocations: 16.62 kB / 413 MB, free: 11.72 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001412/0.01149, allocations: 1.539 MB / 414.6 MB, free: 10.09 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.064e-05/0.01156, allocations: 75.33 kB / 414.6 MB, free: 9.992 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 3.897e-05/0.01159, allocations: 8.484 kB / 414.6 MB, free: 9.984 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.658e-05/0.01165, allocations: 28.5 kB / 414.7 MB, free: 9.957 MB / 394.7 MB Notification: Performance of SimCode: time 1.022e-06/0.01165, allocations: 0 / 414.7 MB, free: 9.957 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0159/0.02755, allocations: 2.985 MB / 417.7 MB, free: 6.961 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.084/7.112, allocations: 64 / 417.7 MB, free: 6.961 MB / 394.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/ResetHoldIntegrator/ResetHoldIntegrator.csv","/var/lib/jenkins/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] "" Variables in the reference:time,integrator.y Variables in the result:time,integrator.y [Calling sys.exit(0), Time elapsed: 9.240525064989924]