Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.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.001754/0.001754, allocations: 107.8 kB / 20.48 MB, free: 1.125 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.002169/0.002169, allocations: 212.9 kB / 23.78 MB, free: 4.328 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.478/1.478, allocations: 230.5 MB / 257.4 MB, free: 7.715 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.2423/0.2423, allocations: 46.95 MB / 360.9 MB, free: 3.895 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.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_SelfResettingIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_SelfResettingIntegrator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002315/0.002315, allocations: 79.88 kB / 0.4962 GB, free: 7.516 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3242/0.3265, allocations: 66.08 MB / 0.5607 GB, free: 4.039 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.002266/0.3288, allocations: 0.8086 MB / 0.5615 GB, free: 3.234 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002267/0.329, allocations: 47.81 kB / 0.5616 GB, free: 3.188 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.751e-05/0.3291, allocations: 0 / 0.5616 GB, free: 3.188 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001087/0.3292, allocations: 7.875 kB / 0.5616 GB, free: 3.18 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 1.637e-05/0.3292, allocations: 0 / 0.5616 GB, free: 3.18 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001252/0.3294, allocations: 23.92 kB / 0.5616 GB, free: 3.156 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001123/0.3295, allocations: 39.97 kB / 0.5616 GB, free: 3.117 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000108/0.3296, allocations: 21.69 kB / 0.5617 GB, free: 3.098 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.778e-05/0.3296, allocations: 8 kB / 0.5617 GB, free: 3.09 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.589e-05/0.3296, allocations: 15.86 kB / 0.5617 GB, free: 3.074 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.643e-05/0.3297, allocations: 4 kB / 0.5617 GB, free: 3.07 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.079e-05/0.3297, allocations: 4 kB / 0.5617 GB, free: 3.066 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.987e-05/0.3297, allocations: 4 kB / 0.5617 GB, free: 3.062 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.3e-05/0.3297, allocations: 15.92 kB / 0.5617 GB, free: 3.047 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001052/0.3298, allocations: 39.77 kB / 0.5618 GB, free: 3.008 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.3298, allocations: 0 / 0.5618 GB, free: 3.008 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.3298, allocations: 0 / 0.5618 GB, free: 3.008 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.231e-06/0.3298, allocations: 4 kB / 0.5618 GB, free: 3.004 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0005453/0.3304, allocations: 283.1 kB / 0.562 GB, free: 2.691 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.231e-05/0.3304, allocations: 8.031 kB / 0.562 GB, free: 2.684 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.751e-05/0.3305, allocations: 38.73 kB / 0.5621 GB, free: 2.637 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.199e-05/0.3305, allocations: 8.891 kB / 0.5621 GB, free: 2.629 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002048/0.3307, allocations: 126.5 kB / 0.5622 GB, free: 2.48 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.193e-05/0.3307, allocations: 4.359 kB / 0.5622 GB, free: 2.477 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.784e-05/0.3307, allocations: 4.375 kB / 0.5622 GB, free: 2.473 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001205/0.3309, allocations: 50.25 kB / 0.5623 GB, free: 2.418 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.928e-06/0.3309, allocations: 7.938 kB / 0.5623 GB, free: 2.41 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.574e-06/0.3309, allocations: 0 / 0.5623 GB, free: 2.41 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.547e-06/0.3309, allocations: 0 / 0.5623 GB, free: 2.41 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.589e-05/0.3309, allocations: 19.92 kB / 0.5623 GB, free: 2.391 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005576/0.3315, allocations: 259.8 kB / 0.5625 GB, free: 2.094 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.701e-05/0.3316, allocations: 18.58 kB / 0.5626 GB, free: 2.066 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.823e-05/0.3316, allocations: 8.859 kB / 0.5626 GB, free: 2.055 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.415e-05/0.3316, allocations: 4.062 kB / 0.5626 GB, free: 2.051 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.742e-05/0.3317, allocations: 55.3 kB / 0.5626 GB, free: 1.984 MB / 398.1 MB Notification: Performance of pre-optimization done (n=3): time 1.272e-06/0.3317, allocations: 8 kB / 0.5626 GB, free: 1.977 MB / 398.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001328/0.3318, allocations: 45.69 kB / 0.5627 GB, free: 1.926 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.913e-05/0.3319, allocations: 51.41 kB / 0.5627 GB, free: 1.863 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001004/0.332, allocations: 125.8 kB / 0.5628 GB, free: 1.73 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.6e-05/0.332, allocations: 25.7 kB / 0.5629 GB, free: 1.699 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.616e-05/0.332, allocations: 88.09 kB / 0.5629 GB, free: 1.609 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.528e-05/0.332, allocations: 11.95 kB / 0.563 GB, free: 1.598 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.314e-05/0.3321, allocations: 13.72 kB / 0.563 GB, free: 1.578 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001441/0.3322, allocations: 322.8 kB / 0.5633 GB, free: 1.254 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.845e-05/0.3322, allocations: 4 kB / 0.5633 GB, free: 1.25 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.068e-05/0.3323, allocations: 21.66 kB / 0.5633 GB, free: 1.223 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.508e-05/0.3323, allocations: 33.7 kB / 0.5633 GB, free: 1.184 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.3323, allocations: 0 / 0.5633 GB, free: 1.184 MB / 398.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.436e-05/0.3324, allocations: 53.62 kB / 0.5634 GB, free: 1.125 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.419e-05/0.3324, allocations: 8 kB / 0.5634 GB, free: 1.117 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.887e-06/0.3324, allocations: 0 / 0.5634 GB, free: 1.117 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.169e-05/0.3324, allocations: 0 / 0.5634 GB, free: 1.117 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.027e-05/0.3325, allocations: 4 kB / 0.5634 GB, free: 1.113 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.939e-06/0.3325, allocations: 0 / 0.5634 GB, free: 1.113 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.254e-05/0.3325, allocations: 11.89 kB / 0.5634 GB, free: 1.102 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.807e-06/0.3325, allocations: 4.031 kB / 0.5634 GB, free: 1.098 MB / 398.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: 2 (greaterEqualThreshold.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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.0001331/0.3326, allocations: 114.2 kB / 0.5635 GB, free: 0.9766 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.157e-06/0.3326, allocations: 0 / 0.5635 GB, free: 0.9766 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.143e-05/0.3327, allocations: 11.98 kB / 0.5635 GB, free: 0.957 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.667e-06/0.3327, allocations: 3.984 kB / 0.5635 GB, free: 0.9531 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.246e-06/0.3327, allocations: 0 / 0.5635 GB, free: 0.9531 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.661e-06/0.3327, allocations: 3.938 kB / 0.5635 GB, free: 0.9492 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003326/0.333, allocations: 273.7 kB / 0.5638 GB, free: 0.6328 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/0.333, allocations: 4 kB / 0.5638 GB, free: 0.6289 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.926e-05/0.3331, allocations: 3.938 kB / 0.5638 GB, free: 0.625 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.3331, allocations: 8 kB / 0.5638 GB, free: 0.6172 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.656e-06/0.3331, allocations: 3.938 kB / 0.5638 GB, free: 0.6133 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.083e-06/0.3331, allocations: 0 / 0.5638 GB, free: 0.6133 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.3331, allocations: 0 / 0.5638 GB, free: 0.6133 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001613/0.3332, allocations: 151.5 kB / 0.564 GB, free: 460 kB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.563e-05/0.3332, allocations: 12.34 kB / 0.564 GB, free: 448 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.359e-05/0.3333, allocations: 3.938 kB / 0.564 GB, free: 444 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.475e-05/0.3333, allocations: 0 / 0.564 GB, free: 444 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.859e-05/0.3333, allocations: 4 kB / 0.564 GB, free: 440 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.697e-06/0.3333, allocations: 3.938 kB / 0.564 GB, free: 436 kB / 398.1 MB Notification: Performance of sorting global known variables: time 8.841e-05/0.3334, allocations: 91.27 kB / 0.5641 GB, free: 344 kB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3334, allocations: 4.062 kB / 0.5641 GB, free: 340 kB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002213/0.3337, allocations: 11.94 kB / 0.5641 GB, free: 328 kB / 398.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: 2 (greaterEqualThreshold.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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 Backend phase and start with SimCode phase: time 0.0004734/0.3341, allocations: 0.6812 MB / 0.5648 GB, free: 15.61 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 8.995e-05/0.3342, allocations: 19.94 kB / 0.5648 GB, free: 15.59 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.804e-06/0.3342, allocations: 0 / 0.5648 GB, free: 15.59 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 2.142e-05/0.3342, allocations: 11.92 kB / 0.5648 GB, free: 15.58 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002567/0.3345, allocations: 8 kB / 0.5648 GB, free: 15.57 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001195/0.3357, allocations: 1.278 MB / 0.566 GB, free: 14.21 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.225e-05/0.3358, allocations: 71.47 kB / 0.5661 GB, free: 14.12 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 1.976e-05/0.3358, allocations: 4 kB / 0.5661 GB, free: 14.12 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.993e-05/0.3358, allocations: 19.42 kB / 0.5661 GB, free: 14.1 MB / 414.1 MB Notification: Performance of SimCode: time 3.41e-07/0.3358, allocations: 0 / 0.5661 GB, free: 14.1 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03001/0.3658, allocations: 2.175 MB / 0.5683 GB, free: 12.02 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.95/11.32, allocations: 2.656 kB / 0.5683 GB, free: 12.02 MB / 414.1 MB " [Timeout remaining time 649] (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000998004 ModelicaTest_trunk_ModelicaTest_Blocks_SelfResettingIntegrator.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/SelfResettingIntegrator/SelfResettingIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.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.320106393191963]