Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.0008874/0.0008874, allocations: 79.69 kB / 20.67 MB, free: 3.891 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.0008952/0.0008952, allocations: 170 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.8849/0.8849, allocations: 177.1 MB / 204.3 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2348/0.2348, allocations: 34.25 MB / 294.9 MB, free: 0.7383 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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_1_0_ModelicaTest_Blocks_ResetHoldIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.ResetHoldIntegrator,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Blocks_ResetHoldIntegrator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.683e-06/1.683e-06, allocations: 0 / 442.1 MB, free: 1.695 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.229e-05/2.397e-05, allocations: 8.188 kB / 442.2 MB, free: 1.688 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.00232/0.002344, allocations: 1.61 MB / 443.8 MB, free: 68 kB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.1782/0.1805, allocations: 496.2 kB / 444.3 MB, free: 43.23 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001086/0.1806, allocations: 0 / 444.3 MB, free: 43.23 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001249/0.1808, allocations: 14.73 kB / 444.3 MB, free: 43.23 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 4.536e-05/0.1808, allocations: 9.75 kB / 444.3 MB, free: 43.22 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001927/0.181, allocations: 44.03 kB / 444.3 MB, free: 43.22 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001118/0.1811, allocations: 78.78 kB / 444.4 MB, free: 43.21 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001197/0.1812, allocations: 25.73 kB / 444.4 MB, free: 43.21 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.314e-05/0.1813, allocations: 41.92 kB / 444.5 MB, free: 43.21 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.617e-05/0.1813, allocations: 21.84 kB / 444.5 MB, free: 43.2 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 2.259e-05/0.1814, allocations: 8.781 kB / 444.5 MB, free: 43.2 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.819e-06/0.1814, allocations: 5.844 kB / 444.5 MB, free: 43.2 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 2.109e-05/0.1814, allocations: 19.09 kB / 444.5 MB, free: 43.2 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 3.426e-05/0.1814, allocations: 25.17 kB / 444.5 MB, free: 43.2 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001216/0.1816, allocations: 77.94 kB / 444.6 MB, free: 43.18 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.447e-06/0.1816, allocations: 0.5625 kB / 444.6 MB, free: 43.18 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1816, allocations: 2.75 kB / 444.6 MB, free: 43.18 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.568e-06/0.1816, allocations: 0 / 444.6 MB, free: 43.18 MB / 410.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.0004207/0.182, allocations: 327.9 kB / 444.9 MB, free: 42.9 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.851e-05/0.182, allocations: 11.84 kB / 445 MB, free: 42.9 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.546e-05/0.182, allocations: 34.06 kB / 445 MB, free: 42.86 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.821e-05/0.1821, allocations: 10.73 kB / 445 MB, free: 42.86 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001882/0.1823, allocations: 141.6 kB / 445.1 MB, free: 42.72 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.113e-05/0.1823, allocations: 7.188 kB / 445.1 MB, free: 42.72 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.146e-05/0.1823, allocations: 14.73 kB / 445.2 MB, free: 42.72 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000112/0.1824, allocations: 72.58 kB / 445.2 MB, free: 42.68 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.935e-06/0.1824, allocations: 192 / 445.2 MB, free: 42.68 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.165e-05/0.1824, allocations: 7.438 kB / 445.2 MB, free: 42.68 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.581e-06/0.1824, allocations: 2.938 kB / 445.2 MB, free: 42.68 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.35e-05/0.1825, allocations: 39.7 kB / 445.3 MB, free: 42.68 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000398/0.1829, allocations: 307.7 kB / 445.6 MB, free: 42.43 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.738e-05/0.183, allocations: 49.62 kB / 445.6 MB, free: 42.4 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.395e-05/0.183, allocations: 27.22 kB / 445.7 MB, free: 42.39 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.117e-05/0.183, allocations: 0 / 445.7 MB, free: 42.39 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001023/0.1831, allocations: 64.56 kB / 445.7 MB, free: 42.35 MB / 410.7 MB Notification: Performance of pre-optimization done (n=7): time 1.473e-06/0.1831, allocations: 3.531 kB / 445.7 MB, free: 42.35 MB / 410.7 MB Notification: Performance of matching and sorting (n=7): time 0.000183/0.1833, allocations: 90.88 kB / 445.8 MB, free: 42.31 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.749e-05/0.1833, allocations: 55.28 kB / 445.9 MB, free: 42.25 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.454e-05/0.1834, allocations: 139.7 kB / 446 MB, free: 42.14 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 8.255e-06/0.1834, allocations: 29.58 kB / 446 MB, free: 42.11 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.164e-05/0.1834, allocations: 101 kB / 446.1 MB, free: 42.03 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.7e-05/0.1835, allocations: 13.47 kB / 446.1 MB, free: 42.02 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.199e-05/0.1835, allocations: 26.88 kB / 446.2 MB, free: 42 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.546e-05/0.1835, allocations: 321 kB / 446.5 MB, free: 41.69 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.646e-05/0.1835, allocations: 12.72 kB / 446.5 MB, free: 41.69 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.269e-05/0.1836, allocations: 43.47 kB / 446.5 MB, free: 41.67 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.204e-05/0.1836, allocations: 52.72 kB / 446.6 MB, free: 41.64 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.1836, allocations: 0 / 446.6 MB, free: 41.64 MB / 410.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 8.285e-05/0.1837, allocations: 86.19 kB / 446.7 MB, free: 41.6 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.336e-05/0.1837, allocations: 6 kB / 446.7 MB, free: 41.6 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.511e-06/0.1837, allocations: 0 / 446.7 MB, free: 41.6 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.243e-05/0.1838, allocations: 6.969 kB / 446.7 MB, free: 41.6 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.821e-05/0.1838, allocations: 9.312 kB / 446.7 MB, free: 41.6 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.212e-06/0.1838, allocations: 3.938 kB / 446.7 MB, free: 41.59 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.007e-05/0.1839, allocations: 18.19 kB / 446.7 MB, free: 41.59 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.661e-06/0.1839, allocations: 2.938 kB / 446.7 MB, free: 41.59 MB / 410.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 5.181e-05/0.1839, allocations: 124.2 kB / 446.8 MB, free: 41.47 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.508e-06/0.1839, allocations: 13.77 kB / 446.8 MB, free: 41.46 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.425e-05/0.1839, allocations: 8.719 kB / 446.9 MB, free: 41.46 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.314e-06/0.1839, allocations: 2.781 kB / 446.9 MB, free: 41.46 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.184, allocations: 3.938 kB / 446.9 MB, free: 41.45 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.027e-06/0.184, allocations: 7.281 kB / 446.9 MB, free: 41.45 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002138/0.1842, allocations: 313.9 kB / 447.2 MB, free: 41.18 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.1842, allocations: 0 / 447.2 MB, free: 41.18 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.187e-05/0.1842, allocations: 6.906 kB / 447.2 MB, free: 41.18 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.1842, allocations: 3.938 kB / 447.2 MB, free: 41.18 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.864e-06/0.1842, allocations: 0 / 447.2 MB, free: 41.18 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.863e-06/0.1842, allocations: 0 / 447.2 MB, free: 41.18 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.1842, allocations: 0 / 447.2 MB, free: 41.18 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001379/0.1844, allocations: 193.7 kB / 447.4 MB, free: 41.05 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.328e-05/0.1844, allocations: 7.016 kB / 447.4 MB, free: 41.04 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.453e-05/0.1844, allocations: 5.312 kB / 447.4 MB, free: 41.04 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.178e-05/0.1844, allocations: 10.28 kB / 447.4 MB, free: 41.04 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.663e-05/0.1845, allocations: 12.83 kB / 447.4 MB, free: 41.04 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.51e-06/0.1845, allocations: 3.938 kB / 447.4 MB, free: 41.03 MB / 410.7 MB Notification: Performance of sorting global known variables: time 3.544e-05/0.1845, allocations: 108.4 kB / 447.5 MB, free: 40.96 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1845, allocations: 0 / 447.5 MB, free: 40.96 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001575/0.1847, allocations: 16.97 kB / 447.5 MB, free: 40.96 MB / 410.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.0002184/0.1849, allocations: 0.7214 MB / 448.3 MB, free: 40.3 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 9.928e-05/0.185, allocations: 41.86 kB / 448.3 MB, free: 40.29 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.185, allocations: 3 kB / 448.3 MB, free: 40.29 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 3.756e-05/0.185, allocations: 31.27 kB / 448.3 MB, free: 40.29 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002357/0.1853, allocations: 23.89 kB / 448.4 MB, free: 40.29 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008779/0.1862, allocations: 1.506 MB / 449.9 MB, free: 39.07 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.145e-05/0.1862, allocations: 80.22 kB / 449.9 MB, free: 39 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 3.254e-05/0.1862, allocations: 16.89 kB / 450 MB, free: 38.99 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.626e-05/0.1863, allocations: 28.25 kB / 450 MB, free: 38.98 MB / 410.7 MB Notification: Performance of SimCode: time 6.92e-07/0.1863, allocations: 3.938 kB / 450 MB, free: 38.97 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01916/0.2054, allocations: 2.948 MB / 452.9 MB, free: 38.02 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.906/7.112, allocations: 5.438 kB / 452.9 MB, free: 38.02 MB / 410.7 MB " [Timeout remaining time 653] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.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_1_0_ModelicaTest_Blocks_ResetHoldIntegrator.fmu > ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/ResetHoldIntegrator/ResetHoldIntegrator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_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.163589173927903]