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.001544/0.001544, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.001832/0.001832, allocations: 209.6 kB / 23.73 MB, free: 4.523 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.39/1.39, allocations: 230.6 MB / 257.5 MB, free: 7.793 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.2246/0.2246, allocations: 46.96 MB / 360.9 MB, free: 4.039 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.001915/0.001915, allocations: 67.89 kB / 0.4961 GB, free: 7.73 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.31/0.3119, allocations: 66.04 MB / 0.5606 GB, free: 4.242 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.003034/0.3149, allocations: 1.623 MB / 0.5622 GB, free: 2.609 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001025/0.316, allocations: 0.556 MB / 0.5627 GB, free: 2.051 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.947e-05/0.316, allocations: 0 / 0.5627 GB, free: 2.051 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000112/0.3162, allocations: 15.81 kB / 0.5627 GB, free: 2.035 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.474e-05/0.3162, allocations: 19.84 kB / 0.5627 GB, free: 2.016 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003148/0.3165, allocations: 83.45 kB / 0.5628 GB, free: 1.938 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001686/0.3167, allocations: 115.7 kB / 0.5629 GB, free: 1.824 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000104/0.3168, allocations: 31.97 kB / 0.563 GB, free: 1.793 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.707e-05/0.3169, allocations: 43.89 kB / 0.563 GB, free: 1.75 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.008e-05/0.3169, allocations: 39.78 kB / 0.563 GB, free: 1.711 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.163e-05/0.317, allocations: 8 kB / 0.5631 GB, free: 1.703 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.46e-05/0.317, allocations: 8 kB / 0.5631 GB, free: 1.695 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.48e-05/0.317, allocations: 19.92 kB / 0.5631 GB, free: 1.676 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 4.988e-05/0.3171, allocations: 39.73 kB / 0.5631 GB, free: 1.637 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001579/0.3172, allocations: 95.56 kB / 0.5632 GB, free: 1.543 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.3172, allocations: 0 / 0.5632 GB, free: 1.543 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.3172, allocations: 0 / 0.5632 GB, free: 1.543 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.05e-06/0.3172, allocations: 0 / 0.5632 GB, free: 1.543 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.0006241/0.3179, allocations: 354.8 kB / 0.5635 GB, free: 1.164 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.93e-05/0.3179, allocations: 8.031 kB / 0.5636 GB, free: 1.156 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.728e-05/0.3179, allocations: 38.75 kB / 0.5636 GB, free: 1.109 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.544e-05/0.318, allocations: 12.89 kB / 0.5636 GB, free: 1.098 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002397/0.3182, allocations: 150.3 kB / 0.5637 GB, free: 0.9258 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.026e-05/0.3182, allocations: 8.375 kB / 0.5638 GB, free: 0.918 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.158e-05/0.3183, allocations: 12.38 kB / 0.5638 GB, free: 0.9062 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002654/0.3185, allocations: 105.7 kB / 0.5639 GB, free: 0.7969 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.706e-06/0.3185, allocations: 0 / 0.5639 GB, free: 0.7969 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.809e-06/0.3185, allocations: 0 / 0.5639 GB, free: 0.7969 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.519e-06/0.3186, allocations: 0 / 0.5639 GB, free: 0.7969 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001639/0.3187, allocations: 51.97 kB / 0.5639 GB, free: 0.7461 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000636/0.3194, allocations: 347.6 kB / 0.5642 GB, free: 372 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000335/0.3197, allocations: 106.5 kB / 0.5644 GB, free: 256 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001086/0.3198, allocations: 32.88 kB / 0.5644 GB, free: 220 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.52e-05/0.3198, allocations: 3.984 kB / 0.5644 GB, free: 216 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002408/0.3201, allocations: 99.36 kB / 0.5645 GB, free: 104 kB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 3.396e-06/0.3201, allocations: 4 kB / 0.5645 GB, free: 100 kB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004539/0.3205, allocations: 141.5 kB / 0.5646 GB, free: 15.95 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.674e-05/0.3206, allocations: 51.41 kB / 0.5647 GB, free: 15.89 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001378/0.3207, allocations: 156.8 kB / 0.5648 GB, free: 15.73 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.072e-05/0.3207, allocations: 25.7 kB / 0.5648 GB, free: 15.7 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.366e-05/0.3208, allocations: 108.1 kB / 0.5649 GB, free: 15.59 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.702e-05/0.3208, allocations: 27.92 kB / 0.565 GB, free: 15.56 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.503e-05/0.3209, allocations: 21.72 kB / 0.565 GB, free: 15.54 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001393/0.321, allocations: 322.8 kB / 0.5653 GB, free: 15.21 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001407/0.3211, allocations: 35.97 kB / 0.5653 GB, free: 15.18 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001307/0.3213, allocations: 49.69 kB / 0.5654 GB, free: 15.12 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002081/0.3215, allocations: 77.62 kB / 0.5655 GB, free: 15.04 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.3215, allocations: 0 / 0.5655 GB, free: 15.04 MB / 414.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002815/0.3218, allocations: 129.7 kB / 0.5656 GB, free: 14.91 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.094e-05/0.3218, allocations: 7.938 kB / 0.5656 GB, free: 14.9 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.978e-06/0.3218, allocations: 0 / 0.5656 GB, free: 14.9 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.424e-05/0.3218, allocations: 4 kB / 0.5656 GB, free: 14.89 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.965e-05/0.3219, allocations: 15.98 kB / 0.5656 GB, free: 14.88 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.829e-06/0.3219, allocations: 0 / 0.5656 GB, free: 14.88 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.803e-05/0.322, allocations: 15.98 kB / 0.5656 GB, free: 14.86 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.885e-06/0.322, allocations: 4 kB / 0.5656 GB, free: 14.86 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 9.278e-05/0.3221, allocations: 121.8 kB / 0.5657 GB, free: 14.73 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.252e-05/0.3221, allocations: 15.84 kB / 0.5658 GB, free: 14.71 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.881e-05/0.3222, allocations: 12.72 kB / 0.5658 GB, free: 14.7 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-06/0.3222, allocations: 0 / 0.5658 GB, free: 14.7 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.18e-06/0.3222, allocations: 3.984 kB / 0.5658 GB, free: 14.69 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.699e-06/0.3222, allocations: 4 kB / 0.5658 GB, free: 14.69 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005161/0.3227, allocations: 357.5 kB / 0.5661 GB, free: 14.29 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.3227, allocations: 0 / 0.5661 GB, free: 14.29 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.926e-05/0.3228, allocations: 11.98 kB / 0.5661 GB, free: 14.28 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.3228, allocations: 0 / 0.5661 GB, free: 14.28 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.307e-06/0.3228, allocations: 0 / 0.5661 GB, free: 14.28 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.18e-06/0.3228, allocations: 4 kB / 0.5661 GB, free: 14.27 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.3228, allocations: 4 kB / 0.5661 GB, free: 14.27 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004487/0.3232, allocations: 243.4 kB / 0.5664 GB, free: 14.02 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.206e-05/0.3233, allocations: 19.88 kB / 0.5664 GB, free: 14 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.774e-05/0.3233, allocations: 0 / 0.5664 GB, free: 14 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001347/0.3234, allocations: 19.97 kB / 0.5664 GB, free: 13.98 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.846e-05/0.3235, allocations: 23.91 kB / 0.5664 GB, free: 13.95 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.81e-06/0.3235, allocations: 0 / 0.5664 GB, free: 13.95 MB / 414.1 MB Notification: Performance of sorting global known variables: time 8.103e-05/0.3236, allocations: 113 kB / 0.5665 GB, free: 13.84 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3236, allocations: 0 / 0.5665 GB, free: 13.84 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002265/0.3238, allocations: 19.94 kB / 0.5666 GB, free: 13.82 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.0007352/0.3245, allocations: 0.7794 MB / 0.5673 GB, free: 13.02 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002786/0.3248, allocations: 79.89 kB / 0.5674 GB, free: 12.94 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.3248, allocations: 0 / 0.5674 GB, free: 12.94 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001331/0.3249, allocations: 43.91 kB / 0.5674 GB, free: 12.9 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003052/0.3252, allocations: 35.22 kB / 0.5675 GB, free: 12.87 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002424/0.3277, allocations: 1.689 MB / 0.5691 GB, free: 11.09 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.394e-05/0.3277, allocations: 93.25 kB / 0.5692 GB, free: 10.98 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 3.906e-05/0.3278, allocations: 4.5 kB / 0.5692 GB, free: 10.98 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.663e-05/0.3278, allocations: 35.42 kB / 0.5692 GB, free: 10.94 MB / 414.1 MB Notification: Performance of SimCode: time 4.41e-07/0.3278, allocations: 0 / 0.5692 GB, free: 10.94 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02831/0.3562, allocations: 3.256 MB / 0.5724 GB, free: 7.812 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.77/11.12, allocations: 11.06 kB / 0.5724 GB, free: 7.805 MB / 414.1 MB " [Timeout remaining time 649] (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.068486784002744]