Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator.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.001372/0.001372, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.001499/0.001499, allocations: 214.3 kB / 23.73 MB, free: 4.16 MB / 14.72 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 1.489/1.489, allocations: 230.6 MB / 257.5 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] 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.2305/0.2305, allocations: 46.97 MB / 360.9 MB, free: 4.031 MB / 286.1 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.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Blocks_SelfResettingIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Blocks_SelfResettingIntegrator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002127/0.002127, allocations: 63.91 kB / 0.4961 GB, free: 7.73 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3108/0.3129, allocations: 66.04 MB / 0.5606 GB, free: 4.215 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.002079/0.315, allocations: 0.8047 MB / 0.5614 GB, free: 3.41 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002108/0.3152, allocations: 43.83 kB / 0.5614 GB, free: 3.367 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.729e-05/0.3153, allocations: 3.938 kB / 0.5614 GB, free: 3.363 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001041/0.3154, allocations: 7.922 kB / 0.5614 GB, free: 3.355 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 1.744e-05/0.3154, allocations: 7.938 kB / 0.5614 GB, free: 3.348 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000107/0.3155, allocations: 19.98 kB / 0.5615 GB, free: 3.328 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000112/0.3156, allocations: 35.91 kB / 0.5615 GB, free: 3.293 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.899e-05/0.3157, allocations: 21.75 kB / 0.5615 GB, free: 3.273 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.791e-05/0.3157, allocations: 8 kB / 0.5615 GB, free: 3.266 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.294e-05/0.3158, allocations: 19.86 kB / 0.5615 GB, free: 3.246 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.748e-05/0.3158, allocations: 4 kB / 0.5615 GB, free: 3.242 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.107e-05/0.3158, allocations: 4 kB / 0.5615 GB, free: 3.238 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.621e-05/0.3158, allocations: 4 kB / 0.5615 GB, free: 3.234 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.191e-05/0.3159, allocations: 15.92 kB / 0.5616 GB, free: 3.219 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 9.991e-05/0.316, allocations: 39.77 kB / 0.5616 GB, free: 3.18 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.316, allocations: 0 / 0.5616 GB, free: 3.18 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.316, allocations: 0 / 0.5616 GB, free: 3.18 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.799e-06/0.316, allocations: 0 / 0.5616 GB, free: 3.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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.000419/0.3164, allocations: 283.1 kB / 0.5619 GB, free: 2.867 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.592e-05/0.3164, allocations: 8.031 kB / 0.5619 GB, free: 2.859 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.713e-05/0.3165, allocations: 42.67 kB / 0.5619 GB, free: 2.809 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.688e-05/0.3165, allocations: 8.891 kB / 0.5619 GB, free: 2.801 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002087/0.3167, allocations: 130.4 kB / 0.562 GB, free: 2.648 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.727e-06/0.3167, allocations: 384 / 0.562 GB, free: 2.648 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.338e-05/0.3167, allocations: 8.375 kB / 0.5621 GB, free: 2.641 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001183/0.3169, allocations: 46.25 kB / 0.5621 GB, free: 2.59 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.226e-05/0.3169, allocations: 3.938 kB / 0.5621 GB, free: 2.586 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.02e-05/0.3169, allocations: 4 kB / 0.5621 GB, free: 2.582 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.047e-06/0.3169, allocations: 0 / 0.5621 GB, free: 2.582 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.38e-05/0.3169, allocations: 19.94 kB / 0.5621 GB, free: 2.562 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000513/0.3174, allocations: 259.8 kB / 0.5624 GB, free: 2.266 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.53e-05/0.3175, allocations: 22.58 kB / 0.5624 GB, free: 2.234 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.948e-05/0.3175, allocations: 8.922 kB / 0.5624 GB, free: 2.223 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.049e-05/0.3175, allocations: 0 / 0.5624 GB, free: 2.223 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001006/0.3176, allocations: 59.3 kB / 0.5625 GB, free: 2.152 MB / 398.1 MB Notification: Performance of pre-optimization done (n=3): time 1.042e-06/0.3176, allocations: 0 / 0.5625 GB, free: 2.152 MB / 398.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001622/0.3178, allocations: 53.67 kB / 0.5625 GB, free: 2.094 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.777e-05/0.3178, allocations: 51.41 kB / 0.5626 GB, free: 2.031 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001195/0.318, allocations: 121.8 kB / 0.5627 GB, free: 1.902 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.953e-05/0.318, allocations: 29.69 kB / 0.5627 GB, free: 1.867 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.192e-05/0.318, allocations: 88.09 kB / 0.5628 GB, free: 1.777 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.289e-05/0.3181, allocations: 7.953 kB / 0.5628 GB, free: 1.77 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.51e-05/0.3181, allocations: 17.72 kB / 0.5628 GB, free: 1.746 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001662/0.3183, allocations: 318.8 kB / 0.5631 GB, free: 1.426 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.095e-05/0.3183, allocations: 11.94 kB / 0.5631 GB, free: 1.414 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.614e-05/0.3183, allocations: 13.72 kB / 0.5631 GB, free: 1.395 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.363e-05/0.3184, allocations: 33.7 kB / 0.5632 GB, free: 1.355 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.432e-06/0.3184, allocations: 0 / 0.5632 GB, free: 1.355 MB / 398.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.316e-05/0.3184, allocations: 53.64 kB / 0.5632 GB, free: 1.297 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.584e-05/0.3185, allocations: 4 kB / 0.5632 GB, free: 1.293 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.962e-06/0.3185, allocations: 3.984 kB / 0.5632 GB, free: 1.289 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.351e-05/0.3185, allocations: 0 / 0.5632 GB, free: 1.289 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.137e-05/0.3185, allocations: 4.375 kB / 0.5632 GB, free: 1.285 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.569e-06/0.3185, allocations: 0 / 0.5632 GB, free: 1.285 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.249e-05/0.3185, allocations: 11.89 kB / 0.5633 GB, free: 1.273 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.642e-06/0.3185, allocations: 4 kB / 0.5633 GB, free: 1.27 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 (greaterEqualThreshold.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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.0001376/0.3187, allocations: 117.8 kB / 0.5634 GB, free: 1.145 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.717e-06/0.3187, allocations: 0 / 0.5634 GB, free: 1.145 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.987e-05/0.3187, allocations: 20.02 kB / 0.5634 GB, free: 1.117 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.3187, allocations: 0 / 0.5634 GB, free: 1.117 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.297e-06/0.3187, allocations: 0 / 0.5634 GB, free: 1.117 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/0.3187, allocations: 3.938 kB / 0.5634 GB, free: 1.113 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003157/0.319, allocations: 273.7 kB / 0.5637 GB, free: 0.7969 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.319, allocations: 0 / 0.5637 GB, free: 0.7969 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.059e-05/0.3191, allocations: 7.938 kB / 0.5637 GB, free: 0.7891 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.543e-06/0.3191, allocations: 0 / 0.5637 GB, free: 0.7891 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.187e-05/0.3191, allocations: 3.938 kB / 0.5637 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.233e-06/0.3191, allocations: 0 / 0.5637 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.92e-07/0.3191, allocations: 0 / 0.5637 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001621/0.3193, allocations: 151.5 kB / 0.5638 GB, free: 0.6211 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.147e-05/0.3193, allocations: 7.984 kB / 0.5638 GB, free: 0.6133 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.66e-05/0.3193, allocations: 7.922 kB / 0.5638 GB, free: 0.6055 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.72e-05/0.3193, allocations: 4.422 kB / 0.5638 GB, free: 0.6016 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.496e-05/0.3194, allocations: 0 / 0.5638 GB, free: 0.6016 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.765e-06/0.3194, allocations: 4 kB / 0.5638 GB, free: 0.5977 MB / 398.1 MB Notification: Performance of sorting global known variables: time 6.437e-05/0.3194, allocations: 91.27 kB / 0.5639 GB, free: 0.5078 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3194, allocations: 0 / 0.5639 GB, free: 0.5078 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002179/0.3197, allocations: 11.94 kB / 0.5639 GB, free: 0.4961 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: 2 (greaterEqualThreshold.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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 Backend phase and start with SimCode phase: time 0.0005056/0.3202, allocations: 0.6852 MB / 0.5646 GB, free: 15.79 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 9.353e-05/0.3203, allocations: 19.94 kB / 0.5646 GB, free: 15.77 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.3203, allocations: 0 / 0.5646 GB, free: 15.77 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 2.272e-05/0.3203, allocations: 11.94 kB / 0.5646 GB, free: 15.75 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002537/0.3205, allocations: 10.52 kB / 0.5646 GB, free: 15.75 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001267/0.3218, allocations: 1.29 MB / 0.5659 GB, free: 14.38 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.588e-05/0.3219, allocations: 67.28 kB / 0.566 GB, free: 14.29 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 2.254e-05/0.3219, allocations: 4 kB / 0.566 GB, free: 14.29 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.384e-05/0.3219, allocations: 19.48 kB / 0.566 GB, free: 14.27 MB / 414.1 MB Notification: Performance of SimCode: time 4.1e-07/0.3219, allocations: 4 kB / 0.566 GB, free: 14.26 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03086/0.3528, allocations: 2.063 MB / 0.568 GB, free: 12.32 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.18/11.53, allocations: 6.219 kB / 0.568 GB, free: 12.32 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000998004 ModelicaTest_4_1_0_ModelicaTest_Blocks_SelfResettingIntegrator.fmu > ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/SelfResettingIntegrator/SelfResettingIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator.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.530499208718538]