Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.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.002009/0.002009, 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.002511/0.002511, 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.506/1.506, allocations: 230.5 MB / 257.4 MB, free: 7.738 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.2464/0.2464, allocations: 46.94 MB / 360.8 MB, free: 3.938 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.ResetHoldIntegrator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_ResetHoldIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.ResetHoldIntegrator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_ResetHoldIntegrator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002704/0.002704, allocations: 75.88 kB / 0.4961 GB, free: 7.57 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3596/0.3623, allocations: 66.08 MB / 0.5607 GB, free: 4.043 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.003194/0.3655, allocations: 1.611 MB / 0.5623 GB, free: 2.426 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001022/0.3666, allocations: 495.8 kB / 0.5627 GB, free: 1.938 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.362e-05/0.3666, allocations: 0 / 0.5627 GB, free: 1.938 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001362/0.3668, allocations: 11.86 kB / 0.5627 GB, free: 1.926 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.125e-05/0.3668, allocations: 11.88 kB / 0.5627 GB, free: 1.914 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002032/0.367, allocations: 35.91 kB / 0.5628 GB, free: 1.879 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001551/0.3672, allocations: 79.81 kB / 0.5629 GB, free: 1.801 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000136/0.3673, allocations: 25.98 kB / 0.5629 GB, free: 1.773 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.645e-05/0.3674, allocations: 31.86 kB / 0.5629 GB, free: 1.742 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.249e-05/0.3674, allocations: 23.84 kB / 0.5629 GB, free: 1.719 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.262e-05/0.3675, allocations: 8 kB / 0.5629 GB, free: 1.711 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.92e-05/0.3675, allocations: 11.94 kB / 0.563 GB, free: 1.699 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.937e-05/0.3675, allocations: 11.98 kB / 0.563 GB, free: 1.688 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 4.784e-05/0.3676, allocations: 31.8 kB / 0.563 GB, free: 1.656 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001529/0.3677, allocations: 83.59 kB / 0.5631 GB, free: 1.574 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.127e-06/0.3677, allocations: 0 / 0.5631 GB, free: 1.574 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.3677, allocations: 0 / 0.5631 GB, free: 1.574 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.031e-06/0.3677, allocations: 0 / 0.5631 GB, free: 1.574 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0006049/0.3683, allocations: 326.8 kB / 0.5634 GB, free: 1.223 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.724e-05/0.3684, allocations: 12.03 kB / 0.5634 GB, free: 1.211 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.828e-05/0.3684, allocations: 38.73 kB / 0.5634 GB, free: 1.164 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.92e-05/0.3685, allocations: 12.89 kB / 0.5635 GB, free: 1.152 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002783/0.3687, allocations: 134.3 kB / 0.5636 GB, free: 0.9961 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.748e-05/0.3688, allocations: 12.36 kB / 0.5636 GB, free: 0.9844 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.255e-05/0.3688, allocations: 20.3 kB / 0.5636 GB, free: 0.9648 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001738/0.369, allocations: 73.8 kB / 0.5637 GB, free: 0.8867 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.032e-05/0.369, allocations: 0 / 0.5637 GB, free: 0.8867 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.124e-05/0.369, allocations: 0 / 0.5637 GB, free: 0.8867 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.741e-06/0.369, allocations: 4 kB / 0.5637 GB, free: 0.8828 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.746e-05/0.3691, allocations: 35.98 kB / 0.5637 GB, free: 0.8477 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006265/0.3697, allocations: 311.6 kB / 0.564 GB, free: 0.5 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001198/0.3698, allocations: 50.56 kB / 0.5641 GB, free: 452 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.868e-05/0.3699, allocations: 16.89 kB / 0.5641 GB, free: 432 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.177e-06/0.3699, allocations: 0 / 0.5641 GB, free: 432 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001419/0.37, allocations: 71.38 kB / 0.5641 GB, free: 348 kB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.203e-06/0.37, allocations: 3.938 kB / 0.5642 GB, free: 344 kB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002403/0.3703, allocations: 85.56 kB / 0.5642 GB, free: 252 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.281e-05/0.3703, allocations: 59.39 kB / 0.5643 GB, free: 180 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001307/0.3704, allocations: 137.8 kB / 0.5644 GB, free: 32 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.219e-05/0.3705, allocations: 25.7 kB / 0.5644 GB, free: 0 / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.473e-05/0.3706, allocations: 96.09 kB / 0.5645 GB, free: 15.9 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.172e-05/0.3706, allocations: 27.97 kB / 0.5646 GB, free: 15.88 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.321e-05/0.3706, allocations: 29.59 kB / 0.5646 GB, free: 15.84 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001539/0.3708, allocations: 322.8 kB / 0.5649 GB, free: 15.52 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.468e-05/0.3708, allocations: 23.98 kB / 0.5649 GB, free: 15.49 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.246e-05/0.3709, allocations: 30.58 kB / 0.565 GB, free: 15.45 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.399e-05/0.371, allocations: 50.5 kB / 0.565 GB, free: 15.39 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.371, allocations: 0 / 0.565 GB, free: 15.39 MB / 414.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001478/0.3711, allocations: 97.52 kB / 0.5651 GB, free: 15.29 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.414e-05/0.3711, allocations: 4.062 kB / 0.5651 GB, free: 15.29 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.143e-06/0.3711, allocations: 7.938 kB / 0.5651 GB, free: 15.28 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.664e-05/0.3712, allocations: 4 kB / 0.5651 GB, free: 15.28 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.297e-05/0.3712, allocations: 4 kB / 0.5651 GB, free: 15.27 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.544e-06/0.3712, allocations: 4 kB / 0.5651 GB, free: 15.27 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.428e-05/0.3713, allocations: 7.984 kB / 0.5651 GB, free: 15.26 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.045e-05/0.3713, allocations: 8 kB / 0.5651 GB, free: 15.25 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,integrator.reset,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,fallingEdge.not_u,$PRE.fallingEdge.not_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.0001/0.3714, allocations: 117.8 kB / 0.5652 GB, free: 15.13 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.88e-05/0.3714, allocations: 7.953 kB / 0.5653 GB, free: 15.12 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.886e-05/0.3715, allocations: 16.64 kB / 0.5653 GB, free: 15.1 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.967e-06/0.3715, allocations: 8 kB / 0.5653 GB, free: 15.09 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.3715, allocations: 0 / 0.5653 GB, free: 15.09 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-06/0.3715, allocations: 0 / 0.5653 GB, free: 15.09 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003499/0.3718, allocations: 313.9 kB / 0.5656 GB, free: 14.73 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.3718, allocations: 0 / 0.5656 GB, free: 14.73 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.366e-05/0.3719, allocations: 15.92 kB / 0.5656 GB, free: 14.72 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.754e-06/0.3719, allocations: 0 / 0.5656 GB, free: 14.72 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.217e-06/0.3719, allocations: 0 / 0.5656 GB, free: 14.72 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.3719, allocations: 0 / 0.5656 GB, free: 14.72 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.3719, allocations: 0 / 0.5656 GB, free: 14.72 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002317/0.3721, allocations: 195.4 kB / 0.5658 GB, free: 14.51 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.99e-05/0.3721, allocations: 16.05 kB / 0.5658 GB, free: 14.5 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.766e-05/0.3722, allocations: 192 / 0.5658 GB, free: 14.5 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.307e-05/0.3722, allocations: 15.97 kB / 0.5658 GB, free: 14.48 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.217e-05/0.3723, allocations: 15.92 kB / 0.5658 GB, free: 14.46 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.869e-06/0.3723, allocations: 0 / 0.5658 GB, free: 14.46 MB / 414.1 MB Notification: Performance of sorting global known variables: time 7.832e-05/0.3724, allocations: 109.1 kB / 0.5659 GB, free: 14.36 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3724, allocations: 0 / 0.5659 GB, free: 14.36 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002338/0.3726, allocations: 16 kB / 0.5659 GB, free: 14.34 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,fallingEdge.not_u,booleanPulse.pulseStart) * Number of discrete states: 1 (fallingEdge.not_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.0005308/0.3731, allocations: 0.7163 MB / 0.5666 GB, free: 13.6 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001547/0.3733, allocations: 56.03 kB / 0.5667 GB, free: 13.55 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.3733, allocations: 0 / 0.5667 GB, free: 13.55 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.09e-05/0.3734, allocations: 19.98 kB / 0.5667 GB, free: 13.53 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002969/0.3737, allocations: 20.92 kB / 0.5667 GB, free: 13.51 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001715/0.3754, allocations: 1.51 MB / 0.5682 GB, free: 11.91 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.581e-05/0.3755, allocations: 87.17 kB / 0.5683 GB, free: 11.8 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 3.912e-05/0.3755, allocations: 8.5 kB / 0.5683 GB, free: 11.8 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.27e-05/0.3756, allocations: 27.42 kB / 0.5683 GB, free: 11.77 MB / 414.1 MB Notification: Performance of SimCode: time 2.9e-07/0.3756, allocations: 0 / 0.5683 GB, free: 11.77 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03134/0.4069, allocations: 2.803 MB / 0.5711 GB, free: 9.062 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.19/11.6, allocations: 23.78 kB / 0.5711 GB, free: 9.039 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000997805 ModelicaTest_trunk_ModelicaTest_Blocks_ResetHoldIntegrator.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/ResetHoldIntegrator/ResetHoldIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.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.700455996207893]