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.001998/0.001998, allocations: 119.1 kB / 20.45 MB, free: 1.176 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.00245/0.00245, allocations: 204.5 kB / 23.72 MB, free: 4.391 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.466/1.466, allocations: 230.5 MB / 257.4 MB, free: 7.742 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.2348/0.2348, allocations: 46.94 MB / 360.8 MB, free: 3.93 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.002354/0.002354, allocations: 83.88 kB / 0.4961 GB, free: 7.562 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3538/0.3562, allocations: 66.09 MB / 0.5607 GB, free: 4.059 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.00295/0.3591, allocations: 1.613 MB / 0.5623 GB, free: 2.438 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001146/0.3603, allocations: 0.5638 MB / 0.5628 GB, free: 1.871 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.576e-05/0.3604, allocations: 3.938 kB / 0.5628 GB, free: 1.867 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001231/0.3605, allocations: 11.86 kB / 0.5628 GB, free: 1.855 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.131e-05/0.3605, allocations: 11.88 kB / 0.5628 GB, free: 1.844 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003568/0.3609, allocations: 87.81 kB / 0.5629 GB, free: 1.758 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001733/0.3611, allocations: 111.7 kB / 0.563 GB, free: 1.648 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001165/0.3612, allocations: 27.95 kB / 0.5631 GB, free: 1.621 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.005e-05/0.3613, allocations: 47.91 kB / 0.5631 GB, free: 1.574 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7e-05/0.3613, allocations: 35.78 kB / 0.5631 GB, free: 1.539 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.204e-05/0.3614, allocations: 8 kB / 0.5631 GB, free: 1.531 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.815e-05/0.3614, allocations: 11.94 kB / 0.5632 GB, free: 1.52 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.376e-05/0.3614, allocations: 27.91 kB / 0.5632 GB, free: 1.492 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 4.687e-05/0.3615, allocations: 31.8 kB / 0.5632 GB, free: 1.461 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001589/0.3616, allocations: 87.58 kB / 0.5633 GB, free: 1.375 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.3616, allocations: 0 / 0.5633 GB, free: 1.375 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.3616, allocations: 0 / 0.5633 GB, free: 1.375 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.51e-06/0.3616, allocations: 0 / 0.5633 GB, free: 1.375 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.0006542/0.3623, allocations: 358.8 kB / 0.5636 GB, free: 0.9922 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.939e-05/0.3623, allocations: 8.031 kB / 0.5636 GB, free: 0.9844 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.729e-05/0.3624, allocations: 34.75 kB / 0.5637 GB, free: 0.9414 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.345e-05/0.3624, allocations: 12.89 kB / 0.5637 GB, free: 0.9297 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000277/0.3627, allocations: 157.1 kB / 0.5638 GB, free: 0.7539 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.671e-05/0.3627, allocations: 4.375 kB / 0.5638 GB, free: 0.75 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.571e-05/0.3627, allocations: 12.38 kB / 0.5639 GB, free: 0.7383 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002785/0.363, allocations: 105.8 kB / 0.564 GB, free: 0.6289 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.865e-06/0.363, allocations: 0 / 0.564 GB, free: 0.6289 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.352e-05/0.363, allocations: 4 kB / 0.564 GB, free: 0.625 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.369e-06/0.363, allocations: 0 / 0.564 GB, free: 0.625 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001676/0.3632, allocations: 51.91 kB / 0.564 GB, free: 0.5742 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006962/0.3639, allocations: 343.7 kB / 0.5643 GB, free: 200 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003377/0.3642, allocations: 102.5 kB / 0.5644 GB, free: 88 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001185/0.3644, allocations: 36.91 kB / 0.5645 GB, free: 48 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.204e-05/0.3644, allocations: 0 / 0.5645 GB, free: 48 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000272/0.3646, allocations: 103.3 kB / 0.5646 GB, free: 15.93 MB / 414.1 MB Notification: Performance of pre-optimization done (n=7): time 1.222e-06/0.3646, allocations: 0 / 0.5646 GB, free: 15.93 MB / 414.1 MB Notification: Performance of matching and sorting (n=7): time 0.00046/0.3651, allocations: 149.5 kB / 0.5647 GB, free: 15.78 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.794e-05/0.3651, allocations: 51.41 kB / 0.5648 GB, free: 15.72 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000135/0.3653, allocations: 141.8 kB / 0.5649 GB, free: 15.57 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.552e-05/0.3653, allocations: 33.69 kB / 0.5649 GB, free: 15.53 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.942e-05/0.3654, allocations: 100.1 kB / 0.565 GB, free: 15.43 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.083e-05/0.3654, allocations: 35.86 kB / 0.5651 GB, free: 15.39 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.618e-05/0.3655, allocations: 25.66 kB / 0.5651 GB, free: 15.36 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001408/0.3656, allocations: 318.8 kB / 0.5654 GB, free: 15.04 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001228/0.3657, allocations: 39.97 kB / 0.5654 GB, free: 15 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001241/0.3658, allocations: 45.7 kB / 0.5655 GB, free: 14.95 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000218/0.3661, allocations: 77.61 kB / 0.5655 GB, free: 14.87 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.458e-06/0.3661, allocations: 4 kB / 0.5655 GB, free: 14.87 MB / 414.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002854/0.3663, allocations: 113.5 kB / 0.5657 GB, free: 14.75 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.778e-05/0.3664, allocations: 15.97 kB / 0.5657 GB, free: 14.73 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.583e-06/0.3664, allocations: 0 / 0.5657 GB, free: 14.73 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.385e-05/0.3664, allocations: 0 / 0.5657 GB, free: 14.73 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001075/0.3665, allocations: 15.98 kB / 0.5657 GB, free: 14.72 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.157e-06/0.3665, allocations: 3.938 kB / 0.5657 GB, free: 14.71 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.619e-05/0.3666, allocations: 19.98 kB / 0.5657 GB, free: 14.7 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.251e-06/0.3666, allocations: 0 / 0.5657 GB, free: 14.7 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.0001053/0.3667, allocations: 121.8 kB / 0.5658 GB, free: 14.57 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.302e-05/0.3667, allocations: 19.84 kB / 0.5658 GB, free: 14.55 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.422e-05/0.3668, allocations: 12.72 kB / 0.5659 GB, free: 14.53 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.3668, allocations: 0 / 0.5659 GB, free: 14.53 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.3668, allocations: 0 / 0.5659 GB, free: 14.53 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.3668, allocations: 0 / 0.5659 GB, free: 14.53 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005736/0.3674, allocations: 357.8 kB / 0.5662 GB, free: 14.13 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.988e-06/0.3674, allocations: 4 kB / 0.5662 GB, free: 14.12 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.34e-05/0.3674, allocations: 12 kB / 0.5662 GB, free: 14.11 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.408e-06/0.3675, allocations: 7.938 kB / 0.5662 GB, free: 14.11 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.124e-05/0.3675, allocations: 0 / 0.5662 GB, free: 14.11 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.108e-06/0.3675, allocations: 3.984 kB / 0.5662 GB, free: 14.1 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.3675, allocations: 0 / 0.5662 GB, free: 14.1 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004606/0.3679, allocations: 251.4 kB / 0.5665 GB, free: 13.84 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.315e-05/0.368, allocations: 15.94 kB / 0.5665 GB, free: 13.82 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.833e-05/0.368, allocations: 3.938 kB / 0.5665 GB, free: 13.82 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001367/0.3681, allocations: 19.97 kB / 0.5665 GB, free: 13.8 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.332e-05/0.3682, allocations: 19.91 kB / 0.5665 GB, free: 13.78 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.566e-06/0.3682, allocations: 4 kB / 0.5665 GB, free: 13.78 MB / 414.1 MB Notification: Performance of sorting global known variables: time 8.375e-05/0.3683, allocations: 110.6 kB / 0.5666 GB, free: 13.67 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3683, allocations: 4.062 kB / 0.5666 GB, free: 13.67 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002337/0.3685, allocations: 23.94 kB / 0.5667 GB, free: 13.64 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.0007402/0.3692, allocations: 0.771 MB / 0.5674 GB, free: 12.85 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002831/0.3695, allocations: 83.94 kB / 0.5675 GB, free: 12.77 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.3695, allocations: 4 kB / 0.5675 GB, free: 12.76 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001304/0.3696, allocations: 40.45 kB / 0.5675 GB, free: 12.72 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003027/0.3699, allocations: 21.86 kB / 0.5676 GB, free: 12.7 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002469/0.3724, allocations: 1.693 MB / 0.5692 GB, free: 10.92 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.226e-05/0.3725, allocations: 85.27 kB / 0.5693 GB, free: 10.82 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.123e-05/0.3725, allocations: 12.48 kB / 0.5693 GB, free: 10.8 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.883e-05/0.3726, allocations: 31.42 kB / 0.5693 GB, free: 10.77 MB / 414.1 MB Notification: Performance of SimCode: time 4.21e-07/0.3726, allocations: 0 / 0.5693 GB, free: 10.77 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0299/0.4025, allocations: 3.228 MB / 0.5725 GB, free: 7.645 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.47/11.88, allocations: 19.02 kB / 0.5725 GB, free: 7.629 MB / 414.1 MB " [Timeout remaining time 648] (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.1.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: 14.982876112218946]