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.0009571/0.0009571, allocations: 80.48 kB / 19.92 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.0008614/0.0008614, allocations: 173.9 kB / 23.21 MB, free: 1.352 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.896/0.896, allocations: 158.6 MB / 185 MB, free: 3.023 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.142/0.142, allocations: 32.37 MB / 269.6 MB, free: 14.95 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 1.272e-06/1.272e-06, allocations: 0 / 406.8 MB, free: 2.254 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.688e-05/1.815e-05, allocations: 6.078 kB / 406.8 MB, free: 2.25 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.002118/0.002136, allocations: 1.589 MB / 408.4 MB, free: 0.6523 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007104/0.002846, allocations: 0.5074 MB / 408.9 MB, free: 140 kB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.799e-05/0.002924, allocations: 0 / 408.9 MB, free: 140 kB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001345/0.003059, allocations: 11.81 kB / 408.9 MB, free: 128 kB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 4.458e-05/0.003103, allocations: 15.92 kB / 409 MB, free: 112 kB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001833/0.003286, allocations: 43.77 kB / 409 MB, free: 68 kB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001335/0.00342, allocations: 75.84 kB / 409.1 MB, free: 15.99 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001207/0.003541, allocations: 24.17 kB / 409.1 MB, free: 15.96 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.96e-05/0.0036, allocations: 51.75 kB / 409.1 MB, free: 15.92 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.777e-05/0.003658, allocations: 23.91 kB / 409.2 MB, free: 15.89 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 2.143e-05/0.003679, allocations: 4 kB / 409.2 MB, free: 15.89 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.788e-06/0.003689, allocations: 8 kB / 409.2 MB, free: 15.88 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 2.48e-05/0.003714, allocations: 19.92 kB / 409.2 MB, free: 15.86 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 3.595e-05/0.00375, allocations: 23.92 kB / 409.2 MB, free: 15.84 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001263/0.003876, allocations: 79.69 kB / 409.3 MB, free: 15.76 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.623e-06/0.003878, allocations: 0 / 409.3 MB, free: 15.76 MB / 394.7 MB Notification: Performance of FrontEnd: time 9.52e-07/0.003879, allocations: 0 / 409.3 MB, free: 15.76 MB / 394.7 MB Notification: Performance of Transformations before backend: time 3.787e-06/0.003883, 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.000463/0.004346, allocations: 322.9 kB / 409.6 MB, free: 15.41 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.995e-05/0.004386, allocations: 8.031 kB / 409.6 MB, free: 15.41 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.269e-05/0.004418, allocations: 38.75 kB / 409.7 MB, free: 15.36 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.842e-05/0.004447, allocations: 12.84 kB / 409.7 MB, free: 15.35 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001823/0.004629, allocations: 145.5 kB / 409.8 MB, free: 15.18 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.389e-05/0.004643, allocations: 12.31 kB / 409.8 MB, free: 15.17 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.189e-05/0.004665, allocations: 8.375 kB / 409.8 MB, free: 15.16 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000118/0.004783, allocations: 70.23 kB / 409.9 MB, free: 15.09 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.524e-06/0.00479, allocations: 192 / 409.9 MB, free: 15.09 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.088e-05/0.004801, allocations: 12.12 kB / 409.9 MB, free: 15.07 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.252e-06/0.004807, allocations: 4 kB / 409.9 MB, free: 15.07 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.364e-05/0.004871, allocations: 35.91 kB / 410 MB, free: 15.04 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004092/0.00528, allocations: 311.8 kB / 410.3 MB, free: 14.69 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.982e-05/0.00537, allocations: 50.48 kB / 410.3 MB, free: 14.63 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.491e-05/0.005395, allocations: 12.89 kB / 410.3 MB, free: 14.61 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.201e-05/0.005407, allocations: 4 kB / 410.3 MB, free: 14.61 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001042/0.005511, allocations: 67.42 kB / 410.4 MB, free: 14.53 MB / 394.7 MB Notification: Performance of pre-optimization done (n=7): time 8.92e-07/0.005512, allocations: 0 / 410.4 MB, free: 14.53 MB / 394.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001889/0.005701, allocations: 93.56 kB / 410.5 MB, free: 14.43 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.822e-05/0.005739, allocations: 51.41 kB / 410.5 MB, free: 14.37 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.82e-05/0.005827, allocations: 141.8 kB / 410.7 MB, free: 14.22 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.422e-05/0.005842, allocations: 29.7 kB / 410.7 MB, free: 14.19 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.135e-05/0.005893, allocations: 100.1 kB / 410.8 MB, free: 14.09 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.095e-05/0.005914, allocations: 15.86 kB / 410.8 MB, free: 14.07 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.256e-05/0.005946, allocations: 29.7 kB / 410.8 MB, free: 14.04 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 8.726e-05/0.006034, allocations: 322.8 kB / 411.2 MB, free: 13.71 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.651e-05/0.00606, allocations: 12 kB / 411.2 MB, free: 13.7 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.707e-05/0.006097, allocations: 38.56 kB / 411.2 MB, free: 13.65 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.611e-05/0.006153, allocations: 58.81 kB / 411.3 MB, free: 13.59 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-06/0.006157, allocations: 4 kB / 411.3 MB, free: 13.58 MB / 394.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 9.075e-05/0.006248, allocations: 89.56 kB / 411.4 MB, free: 13.49 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.393e-05/0.006261, allocations: 7.984 kB / 411.4 MB, free: 13.48 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.218e-06/0.006266, allocations: 0 / 411.4 MB, free: 13.48 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.196e-05/0.006278, allocations: 0 / 411.4 MB, free: 13.48 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.198e-05/0.00633, allocations: 12 kB / 411.4 MB, free: 13.47 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.115e-06/0.006338, allocations: 7.875 kB / 411.4 MB, free: 13.46 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.55e-05/0.006373, allocations: 19.98 kB / 411.4 MB, free: 13.44 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.979e-06/0.006378, allocations: 0 / 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 6.867e-05/0.006447, allocations: 121.8 kB / 411.5 MB, free: 13.31 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.827e-06/0.006456, allocations: 7.953 kB / 411.5 MB, free: 13.3 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.246e-05/0.006478, allocations: 8.781 kB / 411.5 MB, free: 13.3 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.543e-06/0.00648, allocations: 192 / 411.5 MB, free: 13.3 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.98e-06/0.006485, allocations: 7.938 kB / 411.5 MB, free: 13.29 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.887e-06/0.006489, allocations: 3.938 kB / 411.6 MB, free: 13.29 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002299/0.006718, allocations: 309.6 kB / 411.9 MB, free: 12.94 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.00672, allocations: 0 / 411.9 MB, free: 12.94 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.251e-05/0.006752, allocations: 8 kB / 411.9 MB, free: 12.93 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.998e-06/0.006756, allocations: 7.938 kB / 411.9 MB, free: 12.92 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.534e-06/0.006764, allocations: 0 / 411.9 MB, free: 12.92 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.81e-07/0.006765, allocations: 0 / 411.9 MB, free: 12.92 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.91e-07/0.006765, allocations: 0 / 411.9 MB, free: 12.92 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001527/0.006918, allocations: 195.4 kB / 412.1 MB, free: 12.71 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.075e-05/0.006929, allocations: 7.984 kB / 412.1 MB, free: 12.71 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.389e-05/0.006943, allocations: 7.922 kB / 412.1 MB, free: 12.7 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.573e-05/0.006989, allocations: 8 kB / 412.1 MB, free: 12.69 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.662e-05/0.007025, allocations: 7.984 kB / 412.1 MB, free: 12.68 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.907e-06/0.007029, allocations: 0 / 412.1 MB, free: 12.68 MB / 394.7 MB Notification: Performance of sorting global known variables: time 4.714e-05/0.007076, allocations: 114.8 kB / 412.2 MB, free: 12.57 MB / 394.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007076, allocations: 0 / 412.2 MB, free: 12.57 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0001478/0.007224, allocations: 16 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.0003115/0.007536, allocations: 0.7163 MB / 412.9 MB, free: 11.81 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 9.964e-05/0.007635, allocations: 55.91 kB / 413 MB, free: 11.76 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.007637, allocations: 0 / 413 MB, free: 11.76 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 3.439e-05/0.007671, allocations: 19.94 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.0002215/0.007893, allocations: 16.61 kB / 413 MB, free: 11.72 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001103/0.008996, allocations: 1.527 MB / 414.6 MB, free: 10.1 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.7e-05/0.009053, allocations: 87.25 kB / 414.6 MB, free: 9.992 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 3.146e-05/0.009084, allocations: 12.47 kB / 414.6 MB, free: 9.98 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.633e-05/0.009131, allocations: 28.5 kB / 414.7 MB, free: 9.953 MB / 394.7 MB Notification: Performance of SimCode: time 4.31e-07/0.009131, allocations: 0 / 414.7 MB, free: 9.953 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02095/0.03008, allocations: 2.974 MB / 417.7 MB, free: 6.957 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.764/7.794, allocations: 0 / 417.7 MB, free: 6.957 MB / 394.7 MB " [Timeout remaining time 652] (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: 10.019255156628788]