Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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.0008473/0.0008473, allocations: 75.7 kB / 20.01 MB, free: 4.508 MB / 18.57 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.0009072/0.0009072, allocations: 169.9 kB / 23.32 MB, free: 1.207 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8053/0.8053, allocations: 158.6 MB / 185.1 MB, free: 2.984 MB / 170.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1286/0.1286, allocations: 32.37 MB / 269.7 MB, free: 14.91 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_ModelicaTest_Blocks_SelfResettingIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_SelfResettingIntegrator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.783e-06/1.783e-06, allocations: 0 / 407 MB, free: 2.145 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.473e-05/2.651e-05, allocations: 6.078 kB / 407 MB, free: 2.141 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.001681/0.001707, allocations: 0.8235 MB / 407.9 MB, free: 1.32 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002166/0.001924, allocations: 43.89 kB / 407.9 MB, free: 1.277 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.342e-05/0.001997, allocations: 7.938 kB / 407.9 MB, free: 1.27 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001302/0.002127, allocations: 11.92 kB / 407.9 MB, free: 1.258 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 2.759e-05/0.002155, allocations: 3.938 kB / 407.9 MB, free: 1.254 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001252/0.00228, allocations: 15.92 kB / 407.9 MB, free: 1.238 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001056/0.002386, allocations: 39.92 kB / 408 MB, free: 1.199 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001145/0.0025, allocations: 19.91 kB / 408 MB, free: 1.18 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.598e-05/0.002546, allocations: 19.92 kB / 408 MB, free: 1.16 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.639e-05/0.002593, allocations: 11.98 kB / 408 MB, free: 1.148 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.686e-05/0.00261, allocations: 0 / 408 MB, free: 1.148 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.005e-05/0.00262, allocations: 4 kB / 408 MB, free: 1.145 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003085/0.002928, allocations: 11.94 kB / 408 MB, free: 1.133 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.697e-05/0.002955, allocations: 7.984 kB / 408.1 MB, free: 1.125 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001175/0.003073, allocations: 35.89 kB / 408.1 MB, free: 1.09 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.044e-06/0.003075, allocations: 0 / 408.1 MB, free: 1.09 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.104e-06/0.003077, allocations: 0 / 408.1 MB, free: 1.09 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.078e-06/0.003081, allocations: 0 / 408.1 MB, free: 1.09 MB / 378.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.0003782/0.003459, allocations: 283.1 kB / 408.4 MB, free: 0.7773 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.479e-05/0.003504, allocations: 12.03 kB / 408.4 MB, free: 0.7656 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.792e-05/0.003532, allocations: 38.73 kB / 408.4 MB, free: 0.7188 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.537e-05/0.003557, allocations: 8.891 kB / 408.4 MB, free: 0.7109 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000174/0.003731, allocations: 129.7 kB / 408.6 MB, free: 0.5586 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.456e-06/0.00374, allocations: 384 / 408.6 MB, free: 0.5586 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.967e-05/0.003759, allocations: 4.375 kB / 408.6 MB, free: 0.5547 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001116/0.003871, allocations: 50.25 kB / 408.6 MB, free: 0.5 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.745e-06/0.003879, allocations: 192 / 408.6 MB, free: 0.5 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.057e-05/0.003889, allocations: 4.375 kB / 408.6 MB, free: 0.4961 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.973e-06/0.003896, allocations: 4.125 kB / 408.6 MB, free: 0.4922 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.833e-05/0.003934, allocations: 12 kB / 408.6 MB, free: 492 kB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004234/0.004358, allocations: 259.8 kB / 408.9 MB, free: 188 kB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.655e-05/0.004414, allocations: 26.58 kB / 408.9 MB, free: 152 kB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.606e-05/0.00443, allocations: 8.922 kB / 408.9 MB, free: 140 kB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.295e-06/0.004439, allocations: 7.922 kB / 408.9 MB, free: 132 kB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.157e-05/0.00451, allocations: 55.34 kB / 409 MB, free: 64 kB / 378.7 MB Notification: Performance of pre-optimization done (n=3): time 9.81e-07/0.004511, allocations: 0 / 409 MB, free: 64 kB / 378.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001273/0.004639, allocations: 45.69 kB / 409 MB, free: 12 kB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.739e-05/0.004676, allocations: 51.41 kB / 409.1 MB, free: 15.95 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.651e-05/0.004742, allocations: 121.8 kB / 409.2 MB, free: 15.82 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 9.327e-06/0.004752, allocations: 25.7 kB / 409.2 MB, free: 15.79 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.111e-05/0.004793, allocations: 96.16 kB / 409.3 MB, free: 15.69 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.221e-05/0.004805, allocations: 11.89 kB / 409.3 MB, free: 15.68 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.176e-05/0.004827, allocations: 17.72 kB / 409.3 MB, free: 15.66 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 7.208e-05/0.004899, allocations: 326.8 kB / 409.7 MB, free: 15.33 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.287e-05/0.004912, allocations: 3.938 kB / 409.7 MB, free: 15.32 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.062e-05/0.004932, allocations: 21.72 kB / 409.7 MB, free: 15.3 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.1e-05/0.004963, allocations: 25.7 kB / 409.7 MB, free: 15.27 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.784e-06/0.004965, allocations: 0 / 409.7 MB, free: 15.27 MB / 394.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 6.247e-05/0.005028, allocations: 53.64 kB / 409.8 MB, free: 15.21 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.359e-05/0.005041, allocations: 7.984 kB / 409.8 MB, free: 15.2 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.068e-06/0.005045, allocations: 0 / 409.8 MB, free: 15.2 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.334e-05/0.005059, allocations: 12.03 kB / 409.8 MB, free: 15.19 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.996e-05/0.005089, allocations: 0 / 409.8 MB, free: 15.19 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.4e-06/0.005094, allocations: 4 kB / 409.8 MB, free: 15.18 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.891e-05/0.005113, allocations: 3.953 kB / 409.8 MB, free: 15.18 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.437e-06/0.005116, allocations: 0 / 409.8 MB, free: 15.18 MB / 394.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 5.324e-05/0.00517, allocations: 117.8 kB / 409.9 MB, free: 15.05 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.123e-06/0.005177, allocations: 4 kB / 409.9 MB, free: 15.05 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.957e-05/0.005196, allocations: 7.984 kB / 409.9 MB, free: 15.04 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.684e-06/0.005198, allocations: 0 / 409.9 MB, free: 15.04 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.005202, allocations: 0 / 409.9 MB, free: 15.04 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.005205, allocations: 8 kB / 409.9 MB, free: 15.03 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002049/0.00541, allocations: 269.5 kB / 410.2 MB, free: 14.72 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.542e-06/0.005412, allocations: 0 / 410.2 MB, free: 14.72 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.759e-05/0.005429, allocations: 4 kB / 410.2 MB, free: 14.71 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/0.005431, allocations: 0 / 410.2 MB, free: 14.71 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.346e-06/0.00544, allocations: 4 kB / 410.2 MB, free: 14.71 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.005441, allocations: 0 / 410.2 MB, free: 14.71 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.005442, allocations: 3.938 kB / 410.2 MB, free: 14.71 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001063/0.005548, allocations: 151.8 kB / 410.3 MB, free: 14.54 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.261e-05/0.00556, allocations: 15.97 kB / 410.4 MB, free: 14.53 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.153e-05/0.005572, allocations: 4.031 kB / 410.4 MB, free: 14.52 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.881e-05/0.005601, allocations: 4.062 kB / 410.4 MB, free: 14.52 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.203e-05/0.005633, allocations: 3.938 kB / 410.4 MB, free: 14.52 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.709e-06/0.005638, allocations: 0 / 410.4 MB, free: 14.52 MB / 394.7 MB Notification: Performance of sorting global known variables: time 3.395e-05/0.005671, allocations: 95.27 kB / 410.5 MB, free: 14.42 MB / 394.7 MB Notification: Performance of sort global known variables: time 5e-08/0.005672, allocations: 0 / 410.5 MB, free: 14.42 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0001397/0.005811, allocations: 4 kB / 410.5 MB, free: 14.42 MB / 394.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.0002523/0.006064, allocations: 0.6851 MB / 411.2 MB, free: 13.71 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 6.659e-05/0.00613, allocations: 12 kB / 411.2 MB, free: 13.7 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.323e-06/0.006132, allocations: 0 / 411.2 MB, free: 13.7 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 1.477e-05/0.006146, allocations: 20.05 kB / 411.2 MB, free: 13.68 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001926/0.006339, allocations: 11.94 kB / 411.2 MB, free: 13.66 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008144/0.007153, allocations: 1.294 MB / 412.5 MB, free: 12.28 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.6e-05/0.007199, allocations: 71.34 kB / 412.6 MB, free: 12.19 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 2.212e-05/0.007221, allocations: 7.984 kB / 412.6 MB, free: 12.18 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.642e-05/0.007258, allocations: 12.5 kB / 412.6 MB, free: 12.17 MB / 394.7 MB Notification: Performance of SimCode: time 3.41e-07/0.007258, allocations: 0 / 412.6 MB, free: 12.17 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01648/0.02374, allocations: 2.26 MB / 414.8 MB, free: 9.895 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.868/6.892, allocations: 7.391 kB / 414.8 MB, free: 9.891 MB / 394.7 MB " [Timeout remaining time 653] (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_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_3_2_3_ModelicaTest_Blocks_SelfResettingIntegrator.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/SelfResettingIntegrator/SelfResettingIntegrator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_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: 8.857499161735177]