Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator.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.001392/0.001392, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.001506/0.001506, allocations: 212.6 kB / 23.73 MB, free: 4.387 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.472/1.472, allocations: 230.6 MB / 257.5 MB, free: 7.801 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.254/0.254, allocations: 46.97 MB / 360.9 MB, free: 4.035 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.LimResetIntegrator,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Blocks_LimResetIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.LimResetIntegrator,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Blocks_LimResetIntegrator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002044/0.002044, allocations: 67.89 kB / 0.4961 GB, free: 7.723 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3556/0.3576, allocations: 66.03 MB / 0.5606 GB, free: 4.121 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.003442/0.3611, allocations: 1.628 MB / 0.5622 GB, free: 2.48 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001168/0.3622, allocations: 0.556 MB / 0.5627 GB, free: 1.922 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.829e-05/0.3623, allocations: 3.938 kB / 0.5627 GB, free: 1.918 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001299/0.3625, allocations: 11.88 kB / 0.5627 GB, free: 1.906 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001588/0.3626, allocations: 15.86 kB / 0.5627 GB, free: 1.891 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003645/0.363, allocations: 91.77 kB / 0.5628 GB, free: 1.801 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001835/0.3632, allocations: 111.8 kB / 0.5629 GB, free: 1.691 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001598/0.3633, allocations: 27.95 kB / 0.563 GB, free: 1.664 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.787e-05/0.3634, allocations: 43.84 kB / 0.563 GB, free: 1.621 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.249e-05/0.3635, allocations: 35.78 kB / 0.563 GB, free: 1.586 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.463e-05/0.3635, allocations: 8 kB / 0.563 GB, free: 1.578 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.883e-05/0.3635, allocations: 8 kB / 0.5631 GB, free: 1.57 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.428e-05/0.3636, allocations: 23.91 kB / 0.5631 GB, free: 1.547 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.448e-05/0.3636, allocations: 35.8 kB / 0.5631 GB, free: 1.512 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003225/0.3639, allocations: 91.56 kB / 0.5632 GB, free: 1.422 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.3639, allocations: 4 kB / 0.5632 GB, free: 1.418 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.3639, allocations: 4 kB / 0.5632 GB, free: 1.414 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.225e-05/0.364, allocations: 0 / 0.5632 GB, free: 1.414 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0007109/0.3647, allocations: 346.8 kB / 0.5635 GB, free: 1.043 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.018e-05/0.3647, allocations: 8.031 kB / 0.5635 GB, free: 1.035 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.653e-05/0.3648, allocations: 38.69 kB / 0.5636 GB, free: 0.9883 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.85e-05/0.3648, allocations: 16.88 kB / 0.5636 GB, free: 0.9727 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002754/0.3651, allocations: 153.2 kB / 0.5637 GB, free: 0.8008 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.504e-05/0.3651, allocations: 4.375 kB / 0.5637 GB, free: 0.7969 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.885e-05/0.3651, allocations: 8.375 kB / 0.5638 GB, free: 0.7891 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002947/0.3654, allocations: 97.77 kB / 0.5638 GB, free: 0.6875 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.387e-06/0.3654, allocations: 4 kB / 0.5639 GB, free: 0.6836 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.38e-05/0.3655, allocations: 4 kB / 0.5639 GB, free: 0.6797 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.539e-06/0.3655, allocations: 0 / 0.5639 GB, free: 0.6797 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001716/0.3656, allocations: 63.84 kB / 0.5639 GB, free: 0.6172 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007367/0.3664, allocations: 335.6 kB / 0.5642 GB, free: 252 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003521/0.3667, allocations: 102.5 kB / 0.5643 GB, free: 140 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001156/0.3668, allocations: 36.92 kB / 0.5644 GB, free: 100 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.39e-05/0.3668, allocations: 0 / 0.5644 GB, free: 100 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002845/0.3671, allocations: 99.34 kB / 0.5645 GB, free: 15.99 MB / 414.1 MB Notification: Performance of pre-optimization done (n=7): time 1.272e-06/0.3671, allocations: 0 / 0.5645 GB, free: 15.99 MB / 414.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004764/0.3676, allocations: 145.5 kB / 0.5646 GB, free: 15.84 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.045e-05/0.3677, allocations: 55.41 kB / 0.5647 GB, free: 15.77 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001698/0.3678, allocations: 155.7 kB / 0.5648 GB, free: 15.61 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000107/0.3679, allocations: 29.64 kB / 0.5648 GB, free: 15.58 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.379e-05/0.368, allocations: 104.1 kB / 0.5649 GB, free: 15.47 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.086e-05/0.3681, allocations: 23.92 kB / 0.565 GB, free: 15.45 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.436e-05/0.3681, allocations: 29.7 kB / 0.565 GB, free: 15.41 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002614/0.3684, allocations: 314.8 kB / 0.5653 GB, free: 15.1 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000126/0.3685, allocations: 39.97 kB / 0.5653 GB, free: 15.06 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001513/0.3687, allocations: 57.62 kB / 0.5654 GB, free: 15 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002209/0.3689, allocations: 69.69 kB / 0.5654 GB, free: 14.92 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.3689, allocations: 0 / 0.5654 GB, free: 14.92 MB / 414.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000307/0.3692, allocations: 125.5 kB / 0.5656 GB, free: 14.79 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.658e-05/0.3692, allocations: 8.219 kB / 0.5656 GB, free: 14.79 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.012e-06/0.3692, allocations: 0 / 0.5656 GB, free: 14.79 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.778e-05/0.3692, allocations: 3.984 kB / 0.5656 GB, free: 14.78 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001149/0.3693, allocations: 23.86 kB / 0.5656 GB, free: 14.76 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.877e-06/0.3693, allocations: 4 kB / 0.5656 GB, free: 14.75 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.39e-05/0.3694, allocations: 16.02 kB / 0.5656 GB, free: 14.74 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.558e-06/0.3695, allocations: 4 kB / 0.5656 GB, free: 14.73 MB / 414.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: 7 ($whenCondition1,integrator.reset,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,change.u,$PRE.change.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 0.000111/0.3696, allocations: 117.8 kB / 0.5657 GB, free: 14.61 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.619e-05/0.3696, allocations: 15.84 kB / 0.5657 GB, free: 14.59 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.816e-05/0.3696, allocations: 16.7 kB / 0.5658 GB, free: 14.57 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.415e-06/0.3696, allocations: 0 / 0.5658 GB, free: 14.57 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.87e-06/0.3696, allocations: 0 / 0.5658 GB, free: 14.57 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.576e-06/0.3696, allocations: 0 / 0.5658 GB, free: 14.57 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005914/0.3702, allocations: 357.8 kB / 0.5661 GB, free: 14.17 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.507e-06/0.3702, allocations: 4 kB / 0.5661 GB, free: 14.17 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.861e-05/0.3703, allocations: 15.98 kB / 0.5661 GB, free: 14.15 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.823e-06/0.3703, allocations: 0 / 0.5661 GB, free: 14.15 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.176e-05/0.3703, allocations: 0 / 0.5661 GB, free: 14.15 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.3703, allocations: 0 / 0.5661 GB, free: 14.15 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.3703, allocations: 0 / 0.5661 GB, free: 14.15 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004968/0.3708, allocations: 255.3 kB / 0.5664 GB, free: 13.89 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.323e-05/0.3709, allocations: 11.94 kB / 0.5664 GB, free: 13.88 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.406e-05/0.3709, allocations: 7.922 kB / 0.5664 GB, free: 13.87 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001416/0.371, allocations: 24.05 kB / 0.5664 GB, free: 13.84 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.055e-05/0.3711, allocations: 11.97 kB / 0.5664 GB, free: 13.83 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.236e-05/0.3711, allocations: 8 kB / 0.5664 GB, free: 13.82 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001006/0.3712, allocations: 109.3 kB / 0.5665 GB, free: 13.72 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3712, allocations: 0 / 0.5665 GB, free: 13.72 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002513/0.3715, allocations: 23.92 kB / 0.5666 GB, free: 13.7 MB / 414.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: 5 (integrator.reset,$whenCondition2,$whenCondition1,change.u,booleanPulse.pulseStart) * Number of discrete states: 1 (change.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.0009603/0.3724, allocations: 0.7709 MB / 0.5673 GB, free: 12.9 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0003089/0.3727, allocations: 79.94 kB / 0.5674 GB, free: 12.82 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.3727, allocations: 0 / 0.5674 GB, free: 12.82 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001437/0.3729, allocations: 48.03 kB / 0.5674 GB, free: 12.77 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004268/0.3733, allocations: 22.64 kB / 0.5675 GB, free: 12.75 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003075/0.3764, allocations: 1.701 MB / 0.5691 GB, free: 10.96 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001132/0.3765, allocations: 89.25 kB / 0.5692 GB, free: 10.86 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.414e-05/0.3765, allocations: 8.484 kB / 0.5692 GB, free: 10.85 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.881e-05/0.3766, allocations: 31.44 kB / 0.5692 GB, free: 10.82 MB / 414.1 MB Notification: Performance of SimCode: time 5.71e-07/0.3766, allocations: 0 / 0.5692 GB, free: 10.82 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03397/0.4106, allocations: 3.227 MB / 0.5724 GB, free: 7.723 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.15/11.56, allocations: 7.172 kB / 0.5724 GB, free: 7.719 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000995025 ModelicaTest_4_1_0_ModelicaTest_Blocks_LimResetIntegrator.fmu > ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/LimResetIntegrator/LimResetIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator.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.621669183019549]