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.00131/0.00131, allocations: 117.6 kB / 20.32 MB, free: 1.57 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.001437/0.001437, allocations: 207.5 kB / 23.6 MB, free: 4.957 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.457/1.457, allocations: 230.4 MB / 257.1 MB, free: 8.062 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.2251/0.2251, allocations: 46.93 MB / 360.5 MB, free: 4.25 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.002529/0.002529, allocations: 83.86 kB / 0.4958 GB, free: 7.938 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3136/0.3161, allocations: 66.09 MB / 0.5603 GB, free: 4.359 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.002172/0.3183, allocations: 0.7969 MB / 0.5611 GB, free: 3.566 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002159/0.3185, allocations: 39.89 kB / 0.5612 GB, free: 3.527 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.155e-05/0.3185, allocations: 11.94 kB / 0.5612 GB, free: 3.516 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001255/0.3187, allocations: 3.938 kB / 0.5612 GB, free: 3.512 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 1.864e-05/0.3187, allocations: 3.938 kB / 0.5612 GB, free: 3.508 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001289/0.3188, allocations: 23.97 kB / 0.5612 GB, free: 3.484 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000117/0.3189, allocations: 43.84 kB / 0.5612 GB, free: 3.441 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001037/0.319, allocations: 9.828 kB / 0.5612 GB, free: 3.434 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.008e-05/0.3191, allocations: 15.92 kB / 0.5613 GB, free: 3.418 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.323e-05/0.3191, allocations: 11.94 kB / 0.5613 GB, free: 3.406 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.434e-05/0.3191, allocations: 0 / 0.5613 GB, free: 3.406 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.294e-05/0.3191, allocations: 4 kB / 0.5613 GB, free: 3.402 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.301e-05/0.3192, allocations: 11.98 kB / 0.5613 GB, free: 3.391 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.833e-05/0.3192, allocations: 15.88 kB / 0.5613 GB, free: 3.375 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001161/0.3193, allocations: 43.81 kB / 0.5613 GB, free: 3.332 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.3193, allocations: 0 / 0.5613 GB, free: 3.332 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.3193, allocations: 0 / 0.5613 GB, free: 3.332 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.12e-06/0.3193, allocations: 0 / 0.5613 GB, free: 3.332 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.000494/0.3198, allocations: 279.1 kB / 0.5616 GB, free: 3.023 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.597e-05/0.3199, allocations: 8.031 kB / 0.5616 GB, free: 3.016 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.909e-05/0.3199, allocations: 38.75 kB / 0.5617 GB, free: 2.969 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.798e-05/0.3199, allocations: 4.891 kB / 0.5617 GB, free: 2.965 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002201/0.3201, allocations: 134.4 kB / 0.5618 GB, free: 2.809 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.407e-05/0.3202, allocations: 8.359 kB / 0.5618 GB, free: 2.801 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.248e-05/0.3202, allocations: 4.375 kB / 0.5618 GB, free: 2.797 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001279/0.3203, allocations: 50.25 kB / 0.5619 GB, free: 2.742 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.214e-05/0.3203, allocations: 3.938 kB / 0.5619 GB, free: 2.738 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.148e-05/0.3203, allocations: 4 kB / 0.5619 GB, free: 2.734 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.359e-06/0.3203, allocations: 0 / 0.5619 GB, free: 2.734 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.339e-05/0.3204, allocations: 15.98 kB / 0.5619 GB, free: 2.719 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005166/0.3209, allocations: 251.8 kB / 0.5621 GB, free: 2.43 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.61e-05/0.321, allocations: 26.58 kB / 0.5621 GB, free: 2.395 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.512e-05/0.321, allocations: 12.91 kB / 0.5622 GB, free: 2.379 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.037e-05/0.321, allocations: 0 / 0.5622 GB, free: 2.379 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001103/0.3211, allocations: 59.3 kB / 0.5622 GB, free: 2.309 MB / 398.1 MB Notification: Performance of pre-optimization done (n=3): time 1.082e-06/0.3211, allocations: 0 / 0.5622 GB, free: 2.309 MB / 398.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001627/0.3213, allocations: 45.7 kB / 0.5623 GB, free: 2.258 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.13e-05/0.3213, allocations: 59.39 kB / 0.5623 GB, free: 2.188 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001116/0.3214, allocations: 117.8 kB / 0.5624 GB, free: 2.062 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.85e-05/0.3215, allocations: 25.7 kB / 0.5624 GB, free: 2.031 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.249e-05/0.3215, allocations: 92.09 kB / 0.5625 GB, free: 1.938 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.431e-05/0.3215, allocations: 3.953 kB / 0.5625 GB, free: 1.934 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.209e-05/0.3216, allocations: 25.7 kB / 0.5626 GB, free: 1.902 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000152/0.3217, allocations: 318.8 kB / 0.5629 GB, free: 1.582 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.026e-05/0.3218, allocations: 11.94 kB / 0.5629 GB, free: 1.57 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.044e-05/0.3218, allocations: 21.7 kB / 0.5629 GB, free: 1.543 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.27e-05/0.3218, allocations: 21.72 kB / 0.5629 GB, free: 1.516 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.3218, allocations: 0 / 0.5629 GB, free: 1.516 MB / 398.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.821e-05/0.3219, allocations: 53.62 kB / 0.563 GB, free: 1.457 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.644e-05/0.3219, allocations: 4 kB / 0.563 GB, free: 1.453 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.997e-06/0.3219, allocations: 0 / 0.563 GB, free: 1.453 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.779e-05/0.322, allocations: 8.031 kB / 0.563 GB, free: 1.445 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.248e-05/0.322, allocations: 0 / 0.563 GB, free: 1.445 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.946e-06/0.322, allocations: 7.984 kB / 0.563 GB, free: 1.438 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.1e-05/0.322, allocations: 7.891 kB / 0.563 GB, free: 1.43 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.458e-06/0.322, allocations: 8 kB / 0.563 GB, free: 1.422 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.0001047/0.3221, allocations: 110.9 kB / 0.5631 GB, free: 1.305 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.15e-05/0.3222, allocations: 8.266 kB / 0.5631 GB, free: 1.297 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.146e-05/0.3222, allocations: 8 kB / 0.5631 GB, free: 1.281 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.3222, allocations: 0 / 0.5631 GB, free: 1.281 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.101e-06/0.3222, allocations: 7.984 kB / 0.5631 GB, free: 1.273 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.629e-06/0.3222, allocations: 11.88 kB / 0.5631 GB, free: 1.262 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003431/0.3225, allocations: 265.7 kB / 0.5634 GB, free: 0.9531 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/0.3225, allocations: 0 / 0.5634 GB, free: 0.9531 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.019e-05/0.3226, allocations: 4 kB / 0.5634 GB, free: 0.9492 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.3226, allocations: 0 / 0.5634 GB, free: 0.9492 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.359e-05/0.3226, allocations: 7.938 kB / 0.5634 GB, free: 0.9414 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.382e-06/0.3226, allocations: 0 / 0.5634 GB, free: 0.9414 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/0.3226, allocations: 4 kB / 0.5634 GB, free: 0.9375 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001829/0.3228, allocations: 151.5 kB / 0.5636 GB, free: 0.7734 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.425e-05/0.3228, allocations: 3.953 kB / 0.5636 GB, free: 0.7695 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.975e-05/0.3228, allocations: 7.969 kB / 0.5636 GB, free: 0.7617 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.366e-05/0.3229, allocations: 4.062 kB / 0.5636 GB, free: 0.7578 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.995e-05/0.3229, allocations: 7.984 kB / 0.5636 GB, free: 0.75 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.614e-06/0.3229, allocations: 4.375 kB / 0.5636 GB, free: 0.7461 MB / 398.1 MB Notification: Performance of sorting global known variables: time 6.991e-05/0.323, allocations: 91.22 kB / 0.5637 GB, free: 0.6562 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.323, allocations: 0 / 0.5637 GB, free: 0.6562 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002318/0.3232, allocations: 7.938 kB / 0.5637 GB, free: 0.6484 MB / 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.0004883/0.3237, allocations: 0.6773 MB / 0.5643 GB, free: 15.95 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 9.751e-05/0.3238, allocations: 23.92 kB / 0.5644 GB, free: 15.92 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.3238, allocations: 0 / 0.5644 GB, free: 15.92 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 2.736e-05/0.3238, allocations: 20.06 kB / 0.5644 GB, free: 15.9 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000268/0.3241, allocations: 4 kB / 0.5644 GB, free: 15.9 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00123/0.3253, allocations: 1.282 MB / 0.5656 GB, free: 14.53 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.81e-05/0.3254, allocations: 67.34 kB / 0.5657 GB, free: 14.45 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 2.204e-05/0.3254, allocations: 3.984 kB / 0.5657 GB, free: 14.44 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.802e-05/0.3255, allocations: 15.44 kB / 0.5657 GB, free: 14.43 MB / 414.1 MB Notification: Performance of SimCode: time 3.01e-07/0.3255, allocations: 0 / 0.5657 GB, free: 14.43 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02877/0.3542, allocations: 1.659 MB / 0.5673 GB, free: 12.87 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.88/11.23, allocations: 10.41 kB / 0.5674 GB, free: 12.86 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.197562141984235]