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.001349/0.001349, allocations: 116.7 kB / 20.43 MB, free: 1.457 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.001533/0.001533, allocations: 214.6 kB / 23.74 MB, free: 4.672 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.436/1.436, allocations: 230.5 MB / 257.4 MB, free: 7.996 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.2252/0.2252, allocations: 46.93 MB / 360.8 MB, free: 4.148 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.002321/0.002321, allocations: 80.06 kB / 0.4962 GB, free: 7.75 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3377/0.3401, allocations: 66.09 MB / 0.5607 GB, free: 4.262 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.003422/0.3435, allocations: 1.644 MB / 0.5623 GB, free: 2.609 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001268/0.3447, allocations: 0.6066 MB / 0.5629 GB, free: 2 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.126e-05/0.3448, allocations: 0 / 0.5629 GB, free: 2 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000129/0.345, allocations: 11.86 kB / 0.5629 GB, free: 1.988 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.387e-05/0.345, allocations: 11.88 kB / 0.5629 GB, free: 1.977 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004032/0.3454, allocations: 107 kB / 0.563 GB, free: 1.875 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002195/0.3456, allocations: 107.8 kB / 0.5632 GB, free: 1.77 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001491/0.3458, allocations: 31.95 kB / 0.5632 GB, free: 1.738 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.531e-05/0.3459, allocations: 47.8 kB / 0.5632 GB, free: 1.691 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.143e-05/0.346, allocations: 39.83 kB / 0.5633 GB, free: 1.652 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.681e-05/0.346, allocations: 8 kB / 0.5633 GB, free: 1.645 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.632e-05/0.346, allocations: 8 kB / 0.5633 GB, free: 1.637 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.244e-05/0.3461, allocations: 23.91 kB / 0.5633 GB, free: 1.613 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 6.351e-05/0.3461, allocations: 43.73 kB / 0.5633 GB, free: 1.57 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001949/0.3463, allocations: 91.52 kB / 0.5634 GB, free: 1.48 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.081e-06/0.3463, allocations: 0 / 0.5634 GB, free: 1.48 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.482e-06/0.3463, allocations: 4 kB / 0.5634 GB, free: 1.477 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.199e-05/0.3463, allocations: 0 / 0.5634 GB, free: 1.477 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.0007383/0.3471, allocations: 346.8 kB / 0.5638 GB, free: 1.105 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.705e-05/0.3471, allocations: 12.03 kB / 0.5638 GB, free: 1.094 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.921e-05/0.3472, allocations: 42.73 kB / 0.5638 GB, free: 1.043 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.45e-05/0.3472, allocations: 12.89 kB / 0.5638 GB, free: 1.031 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003178/0.3475, allocations: 148.3 kB / 0.564 GB, free: 0.8633 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.256e-05/0.3475, allocations: 8.375 kB / 0.564 GB, free: 0.8555 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.266e-05/0.3476, allocations: 12.31 kB / 0.564 GB, free: 0.8438 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002842/0.3479, allocations: 101.8 kB / 0.5641 GB, free: 0.7383 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.738e-06/0.3479, allocations: 0 / 0.5641 GB, free: 0.7383 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.38e-05/0.3479, allocations: 3.984 kB / 0.5641 GB, free: 0.7344 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.633e-05/0.3479, allocations: 8 kB / 0.5641 GB, free: 0.7266 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001677/0.3481, allocations: 47.97 kB / 0.5641 GB, free: 0.6797 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007107/0.3488, allocations: 355.6 kB / 0.5645 GB, free: 296 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003422/0.3491, allocations: 102.5 kB / 0.5646 GB, free: 184 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001138/0.3492, allocations: 32.92 kB / 0.5646 GB, free: 148 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.483e-05/0.3493, allocations: 0 / 0.5646 GB, free: 148 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002652/0.3495, allocations: 107.3 kB / 0.5647 GB, free: 28 kB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.242e-06/0.3495, allocations: 0 / 0.5647 GB, free: 28 kB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004801/0.35, allocations: 141.6 kB / 0.5649 GB, free: 15.88 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.015e-05/0.3501, allocations: 55.39 kB / 0.5649 GB, free: 15.81 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001453/0.3502, allocations: 145.8 kB / 0.565 GB, free: 15.66 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.102e-05/0.3502, allocations: 25.7 kB / 0.5651 GB, free: 15.63 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.528e-05/0.3503, allocations: 108.1 kB / 0.5652 GB, free: 15.52 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.761e-05/0.3503, allocations: 31.78 kB / 0.5652 GB, free: 15.49 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.132e-05/0.3504, allocations: 25.7 kB / 0.5652 GB, free: 15.46 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000141/0.3505, allocations: 322.8 kB / 0.5655 GB, free: 15.14 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001222/0.3506, allocations: 39.92 kB / 0.5656 GB, free: 15.1 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001322/0.3508, allocations: 53.69 kB / 0.5656 GB, free: 15.04 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002085/0.351, allocations: 69.67 kB / 0.5657 GB, free: 14.96 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.351, allocations: 3.938 kB / 0.5657 GB, free: 14.96 MB / 414.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002979/0.3513, allocations: 121.5 kB / 0.5658 GB, free: 14.84 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.122e-05/0.3513, allocations: 11.94 kB / 0.5658 GB, free: 14.82 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.202e-06/0.3513, allocations: 0 / 0.5658 GB, free: 14.82 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.052e-05/0.3513, allocations: 0 / 0.5658 GB, free: 14.82 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001232/0.3514, allocations: 15.98 kB / 0.5658 GB, free: 14.81 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.121e-06/0.3515, allocations: 0 / 0.5658 GB, free: 14.81 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.274e-05/0.3515, allocations: 20.02 kB / 0.5659 GB, free: 14.79 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.717e-06/0.3516, allocations: 4 kB / 0.5659 GB, free: 14.79 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.0001096/0.3517, allocations: 119.2 kB / 0.566 GB, free: 14.66 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.566e-05/0.3517, allocations: 19.83 kB / 0.566 GB, free: 14.64 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.561e-05/0.3517, allocations: 8.719 kB / 0.566 GB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.819e-06/0.3517, allocations: 7.938 kB / 0.566 GB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.3517, allocations: 0 / 0.566 GB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.038e-06/0.3517, allocations: 0 / 0.566 GB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005803/0.3523, allocations: 357.5 kB / 0.5663 GB, free: 14.22 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.3523, allocations: 0 / 0.5663 GB, free: 14.22 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.162e-05/0.3524, allocations: 16.27 kB / 0.5664 GB, free: 14.2 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.3524, allocations: 0 / 0.5664 GB, free: 14.2 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.418e-05/0.3524, allocations: 8 kB / 0.5664 GB, free: 14.2 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.075e-06/0.3524, allocations: 11.88 kB / 0.5664 GB, free: 14.18 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.41e-07/0.3524, allocations: 0 / 0.5664 GB, free: 14.18 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004722/0.3529, allocations: 255.7 kB / 0.5666 GB, free: 13.92 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.167e-05/0.3529, allocations: 15.92 kB / 0.5666 GB, free: 13.9 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.259e-05/0.353, allocations: 4 kB / 0.5666 GB, free: 13.9 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001336/0.3531, allocations: 19.97 kB / 0.5667 GB, free: 13.88 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.439e-05/0.3531, allocations: 15.92 kB / 0.5667 GB, free: 13.86 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.711e-06/0.3532, allocations: 0 / 0.5667 GB, free: 13.86 MB / 414.1 MB Notification: Performance of sorting global known variables: time 9.709e-05/0.3533, allocations: 118.2 kB / 0.5668 GB, free: 13.75 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3533, allocations: 0 / 0.5668 GB, free: 13.75 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000234/0.3535, allocations: 20 kB / 0.5668 GB, free: 13.73 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.0007541/0.3542, allocations: 0.7787 MB / 0.5676 GB, free: 12.93 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000297/0.3545, allocations: 83.88 kB / 0.5677 GB, free: 12.84 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.3545, allocations: 0 / 0.5677 GB, free: 12.84 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001376/0.3547, allocations: 44.09 kB / 0.5677 GB, free: 12.8 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003196/0.355, allocations: 18.17 kB / 0.5677 GB, free: 12.79 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002632/0.3576, allocations: 1.699 MB / 0.5694 GB, free: 11 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000339/0.358, allocations: 0.6924 MB / 0.57 GB, free: 10.28 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.411e-05/0.358, allocations: 12.48 kB / 0.5701 GB, free: 10.27 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.584e-05/0.3581, allocations: 35.42 kB / 0.5701 GB, free: 10.23 MB / 414.1 MB Notification: Performance of SimCode: time 7.52e-07/0.3581, allocations: 0 / 0.5701 GB, free: 10.23 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03117/0.3893, allocations: 2.756 MB / 0.5728 GB, free: 7.57 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.97/11.36, allocations: 12 kB / 0.5728 GB, free: 7.559 MB / 414.1 MB " [Timeout remaining time 649] (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.364018161999411]