Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator.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.001509/0.001509, 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.001687/0.001687, allocations: 208.9 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.412/1.412, allocations: 230.6 MB / 257.5 MB, free: 7.809 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.2183/0.2183, allocations: 46.96 MB / 360.9 MB, free: 4.062 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.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Blocks_SelfResettingIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Blocks_SelfResettingIntegrator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00201/0.00201, allocations: 67.91 kB / 0.4961 GB, free: 7.758 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3134/0.3154, allocations: 66.03 MB / 0.5606 GB, free: 4.254 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.002193/0.3176, allocations: 0.8192 MB / 0.5614 GB, free: 3.438 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002133/0.3178, allocations: 39.89 kB / 0.5614 GB, free: 3.398 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.83e-05/0.3179, allocations: 7.938 kB / 0.5614 GB, free: 3.391 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001129/0.318, allocations: 7.938 kB / 0.5614 GB, free: 3.383 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 1.781e-05/0.318, allocations: 3.938 kB / 0.5614 GB, free: 3.379 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001177/0.3181, allocations: 15.98 kB / 0.5614 GB, free: 3.363 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001107/0.3183, allocations: 43.91 kB / 0.5615 GB, free: 3.32 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001063/0.3184, allocations: 13.83 kB / 0.5615 GB, free: 3.309 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.16e-05/0.3184, allocations: 15.92 kB / 0.5615 GB, free: 3.293 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.194e-05/0.3184, allocations: 15.88 kB / 0.5615 GB, free: 3.277 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.654e-05/0.3185, allocations: 0 / 0.5615 GB, free: 3.277 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.319e-05/0.3185, allocations: 4 kB / 0.5615 GB, free: 3.273 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.032e-05/0.3185, allocations: 11.97 kB / 0.5615 GB, free: 3.262 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.622e-05/0.3185, allocations: 11.94 kB / 0.5616 GB, free: 3.25 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000104/0.3186, allocations: 35.78 kB / 0.5616 GB, free: 3.215 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.693e-06/0.3186, allocations: 3.984 kB / 0.5616 GB, free: 3.211 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.3186, allocations: 0 / 0.5616 GB, free: 3.211 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.411e-06/0.3186, allocations: 0 / 0.5616 GB, free: 3.211 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.0004511/0.3191, allocations: 291.1 kB / 0.5619 GB, free: 2.891 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.824e-05/0.3191, allocations: 8.031 kB / 0.5619 GB, free: 2.883 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.61e-05/0.3192, allocations: 34.75 kB / 0.5619 GB, free: 2.84 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.731e-05/0.3192, allocations: 4.891 kB / 0.5619 GB, free: 2.836 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002059/0.3194, allocations: 122.5 kB / 0.562 GB, free: 2.691 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.228e-05/0.3194, allocations: 4.375 kB / 0.562 GB, free: 2.688 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.878e-05/0.3194, allocations: 384 / 0.562 GB, free: 2.688 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001209/0.3195, allocations: 50.25 kB / 0.5621 GB, free: 2.633 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.042e-05/0.3195, allocations: 3.938 kB / 0.5621 GB, free: 2.629 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.249e-05/0.3196, allocations: 12 kB / 0.5621 GB, free: 2.617 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.399e-06/0.3196, allocations: 0 / 0.5621 GB, free: 2.617 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.162e-05/0.3196, allocations: 15.98 kB / 0.5621 GB, free: 2.602 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004775/0.3201, allocations: 251.8 kB / 0.5624 GB, free: 2.312 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.992e-05/0.3202, allocations: 22.58 kB / 0.5624 GB, free: 2.281 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.034e-05/0.3202, allocations: 20.78 kB / 0.5624 GB, free: 2.258 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.131e-06/0.3202, allocations: 0 / 0.5624 GB, free: 2.258 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.727e-05/0.3203, allocations: 59.3 kB / 0.5625 GB, free: 2.188 MB / 398.1 MB Notification: Performance of pre-optimization done (n=3): time 1.213e-06/0.3203, allocations: 0 / 0.5625 GB, free: 2.188 MB / 398.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001424/0.3204, allocations: 45.69 kB / 0.5625 GB, free: 2.137 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.904e-05/0.3205, allocations: 63.39 kB / 0.5626 GB, free: 2.062 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.969e-05/0.3206, allocations: 113.8 kB / 0.5627 GB, free: 1.941 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.663e-05/0.3206, allocations: 25.7 kB / 0.5627 GB, free: 1.91 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.8e-05/0.3206, allocations: 100.1 kB / 0.5628 GB, free: 1.809 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.486e-05/0.3206, allocations: 7.953 kB / 0.5628 GB, free: 1.801 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.673e-05/0.3207, allocations: 21.7 kB / 0.5628 GB, free: 1.773 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001364/0.3208, allocations: 318.8 kB / 0.5631 GB, free: 1.453 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.094e-05/0.3208, allocations: 8 kB / 0.5631 GB, free: 1.445 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.533e-05/0.3209, allocations: 17.7 kB / 0.5631 GB, free: 1.422 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.445e-05/0.3209, allocations: 29.72 kB / 0.5632 GB, free: 1.387 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.3209, allocations: 0 / 0.5632 GB, free: 1.387 MB / 398.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 9.283e-05/0.321, allocations: 53.62 kB / 0.5632 GB, free: 1.328 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.3e-05/0.321, allocations: 4 kB / 0.5632 GB, free: 1.324 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.998e-06/0.321, allocations: 0 / 0.5632 GB, free: 1.324 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.71e-05/0.321, allocations: 8 kB / 0.5632 GB, free: 1.316 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.97e-05/0.3211, allocations: 0 / 0.5632 GB, free: 1.316 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.31e-06/0.3211, allocations: 4 kB / 0.5632 GB, free: 1.312 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.052e-05/0.3211, allocations: 7.891 kB / 0.5632 GB, free: 1.305 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.57e-06/0.3211, allocations: 4 kB / 0.5633 GB, free: 1.301 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 8.692e-05/0.3212, allocations: 117.9 kB / 0.5634 GB, free: 1.176 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.1e-05/0.3212, allocations: 7.938 kB / 0.5634 GB, free: 1.168 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.483e-05/0.3212, allocations: 8 kB / 0.5634 GB, free: 1.152 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.543e-06/0.3212, allocations: 0 / 0.5634 GB, free: 1.152 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.621e-06/0.3212, allocations: 4 kB / 0.5634 GB, free: 1.148 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.601e-06/0.3212, allocations: 3.938 kB / 0.5634 GB, free: 1.145 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002844/0.3215, allocations: 261.7 kB / 0.5636 GB, free: 0.8398 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/0.3215, allocations: 0 / 0.5636 GB, free: 0.8398 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.764e-05/0.3216, allocations: 4.375 kB / 0.5636 GB, free: 0.8359 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.3216, allocations: 0 / 0.5636 GB, free: 0.8359 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.028e-05/0.3216, allocations: 3.938 kB / 0.5636 GB, free: 0.832 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.3216, allocations: 7.938 kB / 0.5637 GB, free: 0.8242 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.3216, allocations: 7.875 kB / 0.5637 GB, free: 0.8164 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001486/0.3217, allocations: 151.9 kB / 0.5638 GB, free: 0.6523 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.084e-05/0.3217, allocations: 3.953 kB / 0.5638 GB, free: 0.6484 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.594e-05/0.3218, allocations: 8.016 kB / 0.5638 GB, free: 0.6406 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.724e-05/0.3218, allocations: 3.984 kB / 0.5638 GB, free: 0.6367 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.151e-05/0.3218, allocations: 0 / 0.5638 GB, free: 0.6367 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.216e-06/0.3218, allocations: 7.984 kB / 0.5638 GB, free: 0.6289 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.481e-05/0.3219, allocations: 87.28 kB / 0.5639 GB, free: 0.543 MB / 398.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3219, allocations: 0 / 0.5639 GB, free: 0.543 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002281/0.3221, allocations: 16 kB / 0.5639 GB, free: 0.5273 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.0004459/0.3226, allocations: 0.6812 MB / 0.5646 GB, free: 15.82 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 9.072e-05/0.3227, allocations: 19.92 kB / 0.5646 GB, free: 15.8 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.3227, allocations: 0 / 0.5646 GB, free: 15.8 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 2.399e-05/0.3227, allocations: 15.94 kB / 0.5646 GB, free: 15.79 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002583/0.323, allocations: 7.938 kB / 0.5646 GB, free: 15.78 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001184/0.3241, allocations: 1.29 MB / 0.5659 GB, free: 14.41 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.103e-05/0.3242, allocations: 71.47 kB / 0.566 GB, free: 14.32 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 2.214e-05/0.3242, allocations: 3.984 kB / 0.566 GB, free: 14.31 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.11e-05/0.3243, allocations: 15.44 kB / 0.566 GB, free: 14.3 MB / 414.1 MB Notification: Performance of SimCode: time 3.71e-07/0.3243, allocations: 0 / 0.566 GB, free: 14.3 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02998/0.3543, allocations: 2.103 MB / 0.568 GB, free: 12.32 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.65/11, allocations: 5.984 kB / 0.568 GB, free: 12.32 MB / 414.1 MB " [Timeout remaining time 649] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0_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_4_1_0_ModelicaTest_Blocks_SelfResettingIntegrator.fmu > ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_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_4.1.0_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: 13.908448900008807]