Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001509/0.001509, allocations: 106.5 kB / 21.22 MB, free: 0.6797 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0014/0.0014, allocations: 209.8 kB / 24.54 MB, free: 4.055 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.431/1.431, allocations: 230.3 MB / 258 MB, free: 8.223 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2257/0.2257, allocations: 46.89 MB / 361.3 MB, free: 4.535 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.LimResetIntegrator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_LimResetIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.LimResetIntegrator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_LimResetIntegrator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002282/0.002282, allocations: 79.86 kB / 0.4966 GB, free: 8.109 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3279/0.3302, allocations: 66.03 MB / 0.5611 GB, free: 4.652 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.002937/0.3332, allocations: 1.644 MB / 0.5627 GB, free: 3.004 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001094/0.3342, allocations: 0.597 MB / 0.5632 GB, free: 2.402 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.742e-05/0.3343, allocations: 7.938 kB / 0.5632 GB, free: 2.395 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001254/0.3345, allocations: 7.875 kB / 0.5633 GB, free: 2.387 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.205e-05/0.3345, allocations: 7.875 kB / 0.5633 GB, free: 2.379 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003546/0.3349, allocations: 103 kB / 0.5634 GB, free: 2.281 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001807/0.335, allocations: 107.8 kB / 0.5635 GB, free: 2.176 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001263/0.3352, allocations: 31.95 kB / 0.5635 GB, free: 2.145 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.818e-05/0.3353, allocations: 51.78 kB / 0.5635 GB, free: 2.094 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.932e-05/0.3353, allocations: 35.84 kB / 0.5636 GB, free: 2.059 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.862e-05/0.3354, allocations: 8 kB / 0.5636 GB, free: 2.051 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.615e-05/0.3354, allocations: 8 kB / 0.5636 GB, free: 2.043 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.903e-05/0.3354, allocations: 19.91 kB / 0.5636 GB, free: 2.023 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.477e-05/0.3355, allocations: 47.73 kB / 0.5637 GB, free: 1.977 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001596/0.3356, allocations: 87.58 kB / 0.5637 GB, free: 1.891 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.3356, allocations: 7.938 kB / 0.5638 GB, free: 1.883 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.186e-06/0.3356, allocations: 3.984 kB / 0.5638 GB, free: 1.879 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.538e-06/0.3356, allocations: 0 / 0.5638 GB, free: 1.879 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.000673/0.3363, allocations: 427.8 kB / 0.5642 GB, free: 1.41 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.674e-05/0.3364, allocations: 8.031 kB / 0.5642 GB, free: 1.402 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.165e-05/0.3364, allocations: 38.75 kB / 0.5642 GB, free: 1.355 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.498e-05/0.3364, allocations: 12.89 kB / 0.5642 GB, free: 1.344 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002903/0.3367, allocations: 208.2 kB / 0.5644 GB, free: 1.102 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.682e-05/0.3367, allocations: 4.375 kB / 0.5644 GB, free: 1.098 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.582e-05/0.3368, allocations: 8.375 kB / 0.5644 GB, free: 1.09 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002752/0.337, allocations: 97.77 kB / 0.5645 GB, free: 0.9883 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.226e-06/0.337, allocations: 3.938 kB / 0.5645 GB, free: 0.9844 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.252e-05/0.3371, allocations: 12 kB / 0.5645 GB, free: 0.9727 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.947e-06/0.3371, allocations: 0 / 0.5645 GB, free: 0.9727 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001807/0.3372, allocations: 59.94 kB / 0.5646 GB, free: 0.9141 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006833/0.3379, allocations: 388.5 kB / 0.565 GB, free: 496 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003347/0.3383, allocations: 94.55 kB / 0.5651 GB, free: 392 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001152/0.3384, allocations: 44.88 kB / 0.5651 GB, free: 344 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.274e-05/0.3384, allocations: 0 / 0.5651 GB, free: 344 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002487/0.3386, allocations: 95.34 kB / 0.5652 GB, free: 236 kB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.172e-06/0.3386, allocations: 3.938 kB / 0.5652 GB, free: 232 kB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004549/0.3391, allocations: 149.5 kB / 0.5653 GB, free: 76 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.231e-05/0.3391, allocations: 51.41 kB / 0.5654 GB, free: 12 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001527/0.3393, allocations: 149.5 kB / 0.5655 GB, free: 15.86 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.989e-05/0.3393, allocations: 41.64 kB / 0.5656 GB, free: 15.81 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.821e-05/0.3394, allocations: 100.1 kB / 0.5657 GB, free: 15.71 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.685e-05/0.3394, allocations: 19.84 kB / 0.5657 GB, free: 15.69 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.682e-05/0.3395, allocations: 21.72 kB / 0.5657 GB, free: 15.66 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001562/0.3396, allocations: 322.8 kB / 0.566 GB, free: 15.34 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001258/0.3398, allocations: 35.97 kB / 0.566 GB, free: 15.3 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001329/0.3399, allocations: 57.62 kB / 0.5661 GB, free: 15.24 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002147/0.3401, allocations: 73.81 kB / 0.5662 GB, free: 15.16 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.3401, allocations: 0 / 0.5662 GB, free: 15.16 MB / 414.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003/0.3404, allocations: 125.5 kB / 0.5663 GB, free: 15.03 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.542e-05/0.3404, allocations: 7.938 kB / 0.5663 GB, free: 15.02 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.348e-06/0.3404, allocations: 4 kB / 0.5663 GB, free: 15.02 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.405e-05/0.3404, allocations: 0 / 0.5663 GB, free: 15.02 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001088/0.3405, allocations: 19.92 kB / 0.5663 GB, free: 15 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.251e-06/0.3406, allocations: 4.031 kB / 0.5663 GB, free: 15 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.08e-05/0.3406, allocations: 20.06 kB / 0.5663 GB, free: 14.98 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.543e-06/0.3407, allocations: 0 / 0.5663 GB, free: 14.98 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.0001119/0.3408, allocations: 121 kB / 0.5665 GB, free: 14.85 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.475e-05/0.3408, allocations: 19.84 kB / 0.5665 GB, free: 14.83 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.86e-05/0.3408, allocations: 8.719 kB / 0.5665 GB, free: 14.82 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.214e-06/0.3408, allocations: 0 / 0.5665 GB, free: 14.82 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.644e-06/0.3408, allocations: 11.98 kB / 0.5665 GB, free: 14.8 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.197e-06/0.3408, allocations: 0 / 0.5665 GB, free: 14.8 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000585/0.3414, allocations: 386.3 kB / 0.5669 GB, free: 14.38 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.3414, allocations: 4 kB / 0.5669 GB, free: 14.37 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.486e-05/0.3415, allocations: 11.98 kB / 0.5669 GB, free: 14.36 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.254e-06/0.3415, allocations: 4 kB / 0.5669 GB, free: 14.36 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.374e-05/0.3415, allocations: 4 kB / 0.5669 GB, free: 14.35 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.3415, allocations: 0 / 0.5669 GB, free: 14.35 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.91e-07/0.3415, allocations: 0 / 0.5669 GB, free: 14.35 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004738/0.342, allocations: 255.3 kB / 0.5671 GB, free: 14.09 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.004e-05/0.3421, allocations: 93.03 kB / 0.5672 GB, free: 13.98 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.878e-05/0.3421, allocations: 3.938 kB / 0.5672 GB, free: 13.97 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001486/0.3422, allocations: 15.98 kB / 0.5672 GB, free: 13.96 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.132e-05/0.3423, allocations: 19.97 kB / 0.5673 GB, free: 13.94 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.017e-06/0.3423, allocations: 4 kB / 0.5673 GB, free: 13.93 MB / 414.1 MB Notification: Performance of sorting global known variables: time 9.033e-05/0.3424, allocations: 115.3 kB / 0.5674 GB, free: 13.82 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3424, allocations: 0 / 0.5674 GB, free: 13.82 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002299/0.3426, allocations: 19.94 kB / 0.5674 GB, free: 13.8 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.0007847/0.3434, allocations: 0.7788 MB / 0.5682 GB, free: 13 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002989/0.3437, allocations: 75.94 kB / 0.5682 GB, free: 12.92 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.3437, allocations: 0 / 0.5682 GB, free: 12.92 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001353/0.3438, allocations: 44.05 kB / 0.5683 GB, free: 12.88 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003026/0.3441, allocations: 22.72 kB / 0.5683 GB, free: 12.86 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002552/0.3467, allocations: 1.694 MB / 0.5699 GB, free: 11.08 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003643/0.3471, allocations: 0.7002 MB / 0.5706 GB, free: 10.35 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.172e-05/0.3471, allocations: 16.47 kB / 0.5706 GB, free: 10.34 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.566e-05/0.3472, allocations: 27.44 kB / 0.5707 GB, free: 10.31 MB / 414.1 MB Notification: Performance of SimCode: time 3.9e-07/0.3472, allocations: 0 / 0.5707 GB, free: 10.31 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02483/0.372, allocations: 2.658 MB / 0.5733 GB, free: 7.715 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.945/8.317, allocations: 7.25 kB / 0.5733 GB, free: 7.711 MB / 414.1 MB " [Timeout remaining time 652] (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_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_trunk_ModelicaTest_Blocks_LimResetIntegrator.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/LimResetIntegrator/LimResetIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_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: 11.2520512919873]