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.001158/0.001158, allocations: 76.36 kB / 20.67 MB, free: 3.895 MB / 18.57 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.001273/0.001273, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.9203/0.9203, allocations: 177 MB / 204.1 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] 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.2589/0.2589, allocations: 34.24 MB / 294.8 MB, free: 0.6875 MB / 266.7 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 1.523e-06/1.523e-06, allocations: 0 / 442.1 MB, free: 1.594 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.976e-05/2.128e-05, allocations: 2.281 kB / 442.1 MB, free: 1.59 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.001486/0.001507, allocations: 0.8209 MB / 443 MB, free: 0.7695 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001854/0.001692, allocations: 51.8 kB / 443 MB, free: 0.7188 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.957e-05/0.001752, allocations: 0 / 443 MB, free: 0.7188 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001008/0.001853, allocations: 3.938 kB / 443 MB, free: 0.7148 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 1.424e-05/0.001867, allocations: 0 / 443 MB, free: 0.7148 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001051/0.001972, allocations: 23.86 kB / 443 MB, free: 0.6914 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 9.206e-05/0.002064, allocations: 39.86 kB / 443.1 MB, free: 0.6523 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000105/0.002169, allocations: 11.98 kB / 443.1 MB, free: 0.6406 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.207e-05/0.002211, allocations: 23.97 kB / 443.1 MB, free: 0.6172 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.743e-05/0.002249, allocations: 3.984 kB / 443.1 MB, free: 0.6133 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 1.914e-05/0.002268, allocations: 11.94 kB / 443.1 MB, free: 0.6016 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.656e-06/0.002276, allocations: 4 kB / 443.1 MB, free: 0.5977 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 1.66e-05/0.002293, allocations: 4 kB / 443.1 MB, free: 0.5938 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 2.07e-05/0.002314, allocations: 4 kB / 443.1 MB, free: 0.5898 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 9.908e-05/0.002413, allocations: 43.88 kB / 443.2 MB, free: 0.5469 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.525e-06/0.002415, allocations: 0 / 443.2 MB, free: 0.5469 MB / 410.7 MB Notification: Performance of FrontEnd: time 8.02e-07/0.002416, allocations: 0 / 443.2 MB, free: 0.5469 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.997e-06/0.00242, allocations: 0 / 443.2 MB, free: 0.5469 MB / 410.7 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.0003437/0.002764, allocations: 279.1 kB / 443.5 MB, free: 244 kB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.499e-05/0.002799, allocations: 8.031 kB / 443.5 MB, free: 236 kB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.743e-05/0.002826, allocations: 38.75 kB / 443.5 MB, free: 188 kB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.545e-05/0.002852, allocations: 8.875 kB / 443.5 MB, free: 180 kB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001726/0.003024, allocations: 133.6 kB / 443.6 MB, free: 20 kB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.857e-06/0.003033, allocations: 4.375 kB / 443.6 MB, free: 16 kB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.723e-05/0.00305, allocations: 8.312 kB / 443.6 MB, free: 8 kB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1648/0.1678, allocations: 49.92 kB / 443.7 MB, free: 44.3 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.177e-05/0.1678, allocations: 192 / 443.7 MB, free: 44.3 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.091e-05/0.1678, allocations: 1.938 kB / 443.7 MB, free: 44.3 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.5e-06/0.1678, allocations: 5.094 kB / 443.7 MB, free: 44.3 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.636e-05/0.1679, allocations: 13.47 kB / 443.7 MB, free: 44.3 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004179/0.1683, allocations: 253.3 kB / 444 MB, free: 44.07 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.873e-05/0.1683, allocations: 25.44 kB / 444 MB, free: 44.05 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.428e-05/0.1684, allocations: 9.953 kB / 444 MB, free: 44.04 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.037e-06/0.1684, allocations: 0.5625 kB / 444 MB, free: 44.04 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.994e-05/0.1684, allocations: 53.03 kB / 444.1 MB, free: 43.99 MB / 410.7 MB Notification: Performance of pre-optimization done (n=3): time 1.233e-06/0.1684, allocations: 0 / 444.1 MB, free: 43.99 MB / 410.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001317/0.1686, allocations: 54.44 kB / 444.1 MB, free: 43.96 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.27e-05/0.1686, allocations: 58.22 kB / 444.2 MB, free: 43.89 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.326e-05/0.1686, allocations: 118.2 kB / 444.3 MB, free: 43.8 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 6.963e-06/0.1687, allocations: 26.2 kB / 444.3 MB, free: 43.77 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.799e-05/0.1687, allocations: 88.62 kB / 444.4 MB, free: 43.68 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.178e-05/0.1687, allocations: 12.77 kB / 444.4 MB, free: 43.68 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.591e-05/0.1687, allocations: 18.91 kB / 444.4 MB, free: 43.66 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.905e-05/0.1687, allocations: 318.7 kB / 444.7 MB, free: 43.35 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.338e-05/0.1688, allocations: 7.219 kB / 444.7 MB, free: 43.35 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.858e-05/0.1688, allocations: 19.19 kB / 444.8 MB, free: 43.34 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.061e-05/0.1688, allocations: 30.88 kB / 444.8 MB, free: 43.32 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.1688, allocations: 0 / 444.8 MB, free: 43.32 MB / 410.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 4.859e-05/0.1689, allocations: 57.64 kB / 444.8 MB, free: 43.29 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.279e-05/0.1689, allocations: 5.531 kB / 444.8 MB, free: 43.29 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.731e-06/0.1689, allocations: 2.906 kB / 444.9 MB, free: 43.29 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.256e-05/0.1689, allocations: 3.938 kB / 444.9 MB, free: 43.28 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.452e-05/0.1689, allocations: 5.406 kB / 444.9 MB, free: 43.28 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.031e-06/0.1689, allocations: 2.625 kB / 444.9 MB, free: 43.28 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.138e-05/0.169, allocations: 2.875 kB / 444.9 MB, free: 43.28 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.817e-06/0.169, allocations: 1.562 kB / 444.9 MB, free: 43.28 MB / 410.7 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 3.806e-05/0.169, allocations: 118.4 kB / 445 MB, free: 43.17 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.163e-06/0.169, allocations: 12.44 kB / 445 MB, free: 43.16 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.884e-05/0.169, allocations: 8.406 kB / 445 MB, free: 43.16 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.354e-06/0.169, allocations: 3.938 kB / 445 MB, free: 43.16 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.509e-06/0.169, allocations: 0.6562 kB / 445 MB, free: 43.16 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.016e-06/0.169, allocations: 0 / 445 MB, free: 43.16 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001694/0.1692, allocations: 269.8 kB / 445.3 MB, free: 42.89 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.893e-06/0.1692, allocations: 0 / 445.3 MB, free: 42.89 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.691e-05/0.1692, allocations: 10.38 kB / 445.3 MB, free: 42.89 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.1692, allocations: 0 / 445.3 MB, free: 42.89 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.563e-06/0.1692, allocations: 3.125 kB / 445.3 MB, free: 42.89 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.1692, allocations: 0 / 445.3 MB, free: 42.89 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.1692, allocations: 0 / 445.3 MB, free: 42.89 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.188e-05/0.1693, allocations: 160.4 kB / 445.4 MB, free: 42.75 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.235e-06/0.1693, allocations: 6.594 kB / 445.4 MB, free: 42.75 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.798e-06/0.1693, allocations: 0 / 445.4 MB, free: 42.75 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.123e-05/0.1694, allocations: 8.219 kB / 445.5 MB, free: 42.75 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.374e-05/0.1694, allocations: 3.094 kB / 445.5 MB, free: 42.75 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.368e-06/0.1694, allocations: 3.844 kB / 445.5 MB, free: 42.75 MB / 410.7 MB Notification: Performance of sorting global known variables: time 2.345e-05/0.1694, allocations: 94.22 kB / 445.6 MB, free: 42.68 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1694, allocations: 0 / 445.6 MB, free: 42.68 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001461/0.1696, allocations: 5.25 kB / 445.6 MB, free: 42.68 MB / 410.7 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.0001511/0.1697, allocations: 0.6864 MB / 446.2 MB, free: 42.01 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 6.523e-05/0.1698, allocations: 12.38 kB / 446.3 MB, free: 42.01 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.1698, allocations: 2.594 kB / 446.3 MB, free: 42.01 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.307e-05/0.1698, allocations: 12.95 kB / 446.3 MB, free: 42.01 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002055/0.17, allocations: 6.375 kB / 446.3 MB, free: 42.01 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006015/0.1706, allocations: 1.282 MB / 447.6 MB, free: 40.84 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.472e-05/0.1706, allocations: 76.28 kB / 447.6 MB, free: 40.77 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 1.96e-05/0.1707, allocations: 2.719 kB / 447.6 MB, free: 40.77 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.738e-05/0.1707, allocations: 16.31 kB / 447.7 MB, free: 40.77 MB / 410.7 MB Notification: Performance of SimCode: time 7.12e-07/0.1707, allocations: 3.688 kB / 447.7 MB, free: 40.77 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01652/0.1872, allocations: 2.228 MB / 449.9 MB, free: 39.88 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.984/7.171, allocations: 11 kB / 449.9 MB, free: 39.88 MB / 410.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/SelfResettingIntegrator/SelfResettingIntegrator.csv","/var/lib/jenkins/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] "" Variables in the reference:time,integrator.y Variables in the result:time,integrator.y [Calling sys.exit(0), Time elapsed: 9.344097690656781]