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.001902/0.001902, allocations: 115.8 kB / 20.43 MB, free: 1.457 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.00217/0.00217, allocations: 213.3 kB / 23.75 MB, free: 4.668 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.539/1.539, allocations: 230.6 MB / 257.5 MB, free: 7.996 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.3278/0.3278, allocations: 46.93 MB / 360.9 MB, free: 4.262 MB / 286.1 MB " [Timeout remaining time 179] 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.001934/0.001934, allocations: 75.88 kB / 0.4962 GB, free: 7.902 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3564/0.3583, allocations: 66.03 MB / 0.5606 GB, free: 4.453 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.00247/0.3608, allocations: 0.8232 MB / 0.5614 GB, free: 3.633 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002823/0.3611, allocations: 47.81 kB / 0.5615 GB, free: 3.586 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.221e-05/0.3612, allocations: 3.938 kB / 0.5615 GB, free: 3.582 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001366/0.3613, allocations: 11.92 kB / 0.5615 GB, free: 3.57 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 1.997e-05/0.3613, allocations: 3.938 kB / 0.5615 GB, free: 3.566 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001634/0.3615, allocations: 19.98 kB / 0.5615 GB, free: 3.547 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001491/0.3616, allocations: 35.86 kB / 0.5616 GB, free: 3.512 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001435/0.3618, allocations: 21.81 kB / 0.5616 GB, free: 3.492 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.183e-05/0.3618, allocations: 11.88 kB / 0.5616 GB, free: 3.48 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.068e-05/0.3619, allocations: 11.92 kB / 0.5616 GB, free: 3.469 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.852e-05/0.3619, allocations: 8 kB / 0.5616 GB, free: 3.461 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.309e-05/0.3619, allocations: 4 kB / 0.5616 GB, free: 3.457 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.542e-05/0.3619, allocations: 7.984 kB / 0.5616 GB, free: 3.449 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 4.789e-05/0.362, allocations: 23.86 kB / 0.5616 GB, free: 3.426 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001345/0.3621, allocations: 35.78 kB / 0.5617 GB, free: 3.391 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.64e-06/0.3621, allocations: 0 / 0.5617 GB, free: 3.391 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.3621, allocations: 0 / 0.5617 GB, free: 3.391 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.024e-06/0.3621, allocations: 0 / 0.5617 GB, free: 3.391 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.0005437/0.3627, allocations: 287.1 kB / 0.562 GB, free: 3.074 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.006e-05/0.3627, allocations: 12.03 kB / 0.562 GB, free: 3.062 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.314e-05/0.3628, allocations: 30.75 kB / 0.562 GB, free: 3.023 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.082e-05/0.3628, allocations: 12.88 kB / 0.562 GB, free: 3.012 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002581/0.3631, allocations: 122.5 kB / 0.5621 GB, free: 2.867 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.218e-05/0.3631, allocations: 384 / 0.5621 GB, free: 2.867 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.969e-05/0.3631, allocations: 8.375 kB / 0.5621 GB, free: 2.859 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001437/0.3633, allocations: 46.25 kB / 0.5622 GB, free: 2.809 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.296e-05/0.3633, allocations: 3.938 kB / 0.5622 GB, free: 2.805 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.832e-05/0.3633, allocations: 4 kB / 0.5622 GB, free: 2.801 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.773e-06/0.3633, allocations: 4 kB / 0.5622 GB, free: 2.797 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.295e-05/0.3634, allocations: 12 kB / 0.5622 GB, free: 2.785 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006219/0.364, allocations: 263.7 kB / 0.5625 GB, free: 2.484 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.816e-05/0.3641, allocations: 22.58 kB / 0.5625 GB, free: 2.453 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.223e-05/0.3641, allocations: 8.859 kB / 0.5625 GB, free: 2.441 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.289e-05/0.3641, allocations: 0 / 0.5625 GB, free: 2.441 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00012/0.3642, allocations: 63.36 kB / 0.5625 GB, free: 2.367 MB / 398.1 MB Notification: Performance of pre-optimization done (n=3): time 1.032e-06/0.3642, allocations: 0 / 0.5625 GB, free: 2.367 MB / 398.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001898/0.3644, allocations: 49.69 kB / 0.5626 GB, free: 2.312 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.739e-05/0.3645, allocations: 51.41 kB / 0.5626 GB, free: 2.25 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001246/0.3646, allocations: 113.8 kB / 0.5627 GB, free: 2.129 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.38e-05/0.3646, allocations: 29.69 kB / 0.5628 GB, free: 2.094 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.522e-05/0.3647, allocations: 96.53 kB / 0.5629 GB, free: 1.996 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.649e-05/0.3647, allocations: 7.953 kB / 0.5629 GB, free: 1.988 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.947e-05/0.3648, allocations: 17.72 kB / 0.5629 GB, free: 1.965 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001935/0.365, allocations: 326.8 kB / 0.5632 GB, free: 1.637 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.101e-05/0.365, allocations: 11.81 kB / 0.5632 GB, free: 1.625 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.522e-05/0.365, allocations: 25.89 kB / 0.5632 GB, free: 1.594 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.306e-05/0.3651, allocations: 25.7 kB / 0.5633 GB, free: 1.562 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.694e-06/0.3651, allocations: 0 / 0.5633 GB, free: 1.562 MB / 398.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.844e-05/0.3652, allocations: 53.64 kB / 0.5633 GB, free: 1.504 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.761e-05/0.3652, allocations: 4 kB / 0.5633 GB, free: 1.5 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.247e-06/0.3652, allocations: 3.984 kB / 0.5633 GB, free: 1.496 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.821e-05/0.3652, allocations: 0 / 0.5633 GB, free: 1.496 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.56e-05/0.3653, allocations: 8 kB / 0.5633 GB, free: 1.488 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.274e-06/0.3653, allocations: 0 / 0.5633 GB, free: 1.488 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.453e-05/0.3653, allocations: 11.89 kB / 0.5633 GB, free: 1.477 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.038e-06/0.3653, allocations: 0 / 0.5633 GB, free: 1.477 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.0001136/0.3654, allocations: 121.8 kB / 0.5635 GB, free: 1.348 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.987e-06/0.3654, allocations: 0 / 0.5635 GB, free: 1.348 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.038e-05/0.3655, allocations: 15.98 kB / 0.5635 GB, free: 1.324 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.333e-06/0.3655, allocations: 0 / 0.5635 GB, free: 1.324 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.795e-06/0.3655, allocations: 0 / 0.5635 GB, free: 1.324 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.468e-06/0.3655, allocations: 3.938 kB / 0.5635 GB, free: 1.32 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003298/0.3658, allocations: 269.6 kB / 0.5637 GB, free: 1.008 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.3658, allocations: 0 / 0.5637 GB, free: 1.008 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.67e-05/0.3658, allocations: 0 / 0.5637 GB, free: 1.008 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.44e-06/0.3658, allocations: 4 kB / 0.5637 GB, free: 1.004 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.407e-05/0.3659, allocations: 11.92 kB / 0.5637 GB, free: 0.9922 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.3659, allocations: 0 / 0.5637 GB, free: 0.9922 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.92e-07/0.3659, allocations: 0 / 0.5637 GB, free: 0.9922 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001663/0.366, allocations: 147.5 kB / 0.5639 GB, free: 0.832 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.722e-05/0.366, allocations: 11.98 kB / 0.5639 GB, free: 0.8203 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.551e-05/0.3661, allocations: 3.938 kB / 0.5639 GB, free: 0.8164 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.46e-05/0.3661, allocations: 0 / 0.5639 GB, free: 0.8164 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.338e-05/0.3661, allocations: 3.984 kB / 0.5639 GB, free: 0.8125 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.061e-06/0.3661, allocations: 8.062 kB / 0.5639 GB, free: 0.8047 MB / 398.1 MB Notification: Performance of sorting global known variables: time 6.143e-05/0.3662, allocations: 91.27 kB / 0.564 GB, free: 0.7148 MB / 398.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3662, allocations: 0 / 0.564 GB, free: 0.7148 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002318/0.3664, allocations: 8.219 kB / 0.564 GB, free: 0.707 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.0004539/0.3669, allocations: 0.6814 MB / 0.5647 GB, free: 0 / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001161/0.367, allocations: 32.02 kB / 0.5647 GB, free: 15.97 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.367, allocations: 3.938 kB / 0.5647 GB, free: 15.96 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 2.01e-05/0.367, allocations: 7.938 kB / 0.5647 GB, free: 15.96 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002681/0.3673, allocations: 15.98 kB / 0.5647 GB, free: 15.94 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001354/0.3687, allocations: 1.274 MB / 0.566 GB, free: 14.58 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003728/0.369, allocations: 0.6846 MB / 0.5666 GB, free: 13.87 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 2.499e-05/0.3691, allocations: 4 kB / 0.5666 GB, free: 13.87 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.043e-05/0.3691, allocations: 19.44 kB / 0.5667 GB, free: 13.85 MB / 414.1 MB Notification: Performance of SimCode: time 3e-07/0.3691, allocations: 0 / 0.5667 GB, free: 13.85 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03126/0.4004, allocations: 1.667 MB / 0.5683 GB, free: 12.31 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.24/11.64, allocations: 10.27 kB / 0.5683 GB, free: 12.3 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.88309285500145]