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.001113/0.001113, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001593/0.002707, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 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.001126/0.001126, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001373/0.002499, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 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.04/1.04, allocations: 177.2 MB / 189.6 MB, free: 5.312 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08161/1.122, allocations: 53.65 MB / 243.3 MB, free: 15.59 MB / 250.7 MB " [Timeout remaining time 179] 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.258/0.258, allocations: 34.24 MB / 278.2 MB, free: 15.29 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.02503/0.283, allocations: 13.1 MB / 291.3 MB, free: 7.371 MB / 282.7 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: translateModel(ModelicaTest.Blocks.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5010,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator") translateModel(ModelicaTest.Blocks.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5010,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.512e-06/1.512e-06, allocations: 0 / 292.6 MB, free: 6.316 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.577e-05/1.728e-05, allocations: 5.719 kB / 292.6 MB, free: 6.312 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.001564/0.001582, allocations: 0.8825 MB / 293.5 MB, free: 5.434 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001019/0.001684, allocations: 43.83 kB / 293.5 MB, free: 5.391 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.663e-05/0.00174, allocations: 3.938 kB / 293.5 MB, free: 5.387 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 6.208e-05/0.001802, allocations: 11.92 kB / 293.6 MB, free: 5.375 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 1.404e-05/0.001816, allocations: 3.938 kB / 293.6 MB, free: 5.371 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 6.221e-05/0.001879, allocations: 23.97 kB / 293.6 MB, free: 5.348 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 9.31e-05/0.001972, allocations: 31.92 kB / 293.6 MB, free: 5.316 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.7e-05/0.002059, allocations: 20.42 kB / 293.6 MB, free: 5.297 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.6e-05/0.002115, allocations: 19.98 kB / 293.7 MB, free: 5.277 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.278e-05/0.002157, allocations: 15.91 kB / 293.7 MB, free: 5.262 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.008e-05/0.002178, allocations: 4 kB / 293.7 MB, free: 5.258 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.138e-05/0.002189, allocations: 4 kB / 293.7 MB, free: 5.254 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 1.488e-05/0.002204, allocations: 4 kB / 293.7 MB, free: 5.25 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 2.299e-05/0.002227, allocations: 11.94 kB / 293.7 MB, free: 5.238 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 9.799e-05/0.002325, allocations: 23.8 kB / 293.7 MB, free: 5.215 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.793e-05/0.002343, allocations: 0 / 293.7 MB, free: 5.215 MB / 282.7 MB Notification: Performance of FrontEnd: time 4.61e-07/0.002343, allocations: 4 kB / 293.7 MB, free: 5.211 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.319e-05/0.002366, allocations: 0 / 293.7 MB, free: 5.211 MB / 282.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.0004286/0.002795, allocations: 257.8 kB / 294 MB, free: 4.934 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.6e-05/0.002841, allocations: 12.03 kB / 294 MB, free: 4.922 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.099e-05/0.002882, allocations: 4.938 kB / 294 MB, free: 4.918 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001697/0.003052, allocations: 121.7 kB / 294.1 MB, free: 4.773 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.879e-06/0.003062, allocations: 8.359 kB / 294.1 MB, free: 4.766 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.813e-05/0.00308, allocations: 4.375 kB / 294.1 MB, free: 4.762 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.366e-05/0.003153, allocations: 42.25 kB / 294.2 MB, free: 4.715 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.604e-06/0.003161, allocations: 8.125 kB / 294.2 MB, free: 4.707 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.392e-06/0.003167, allocations: 4.375 kB / 294.2 MB, free: 4.703 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.53e-06/0.003173, allocations: 384 / 294.2 MB, free: 4.703 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.42e-05/0.003197, allocations: 11.92 kB / 294.2 MB, free: 4.691 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004016/0.003599, allocations: 172.2 kB / 294.4 MB, free: 4.508 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.523e-05/0.003644, allocations: 22.52 kB / 294.4 MB, free: 4.477 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.158e-05/0.003656, allocations: 4.859 kB / 294.4 MB, free: 4.469 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.017e-06/0.003665, allocations: 4.062 kB / 294.4 MB, free: 4.465 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.941e-05/0.003754, allocations: 51.34 kB / 294.4 MB, free: 4.402 MB / 282.7 MB Notification: Performance of pre-optimization done (n=3): time 1.673e-06/0.003756, allocations: 4 kB / 294.4 MB, free: 4.398 MB / 282.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001043/0.00386, allocations: 45.62 kB / 294.5 MB, free: 4.348 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.261e-05/0.003892, allocations: 51.41 kB / 294.5 MB, free: 4.285 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.91e-05/0.003952, allocations: 114.8 kB / 294.6 MB, free: 4.16 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.16e-05/0.003963, allocations: 25.7 kB / 294.7 MB, free: 4.129 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.457e-05/0.003998, allocations: 92.08 kB / 294.8 MB, free: 4.035 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.67e-05/0.004014, allocations: 11.94 kB / 294.8 MB, free: 4.023 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.666e-05/0.004041, allocations: 13.72 kB / 294.8 MB, free: 4.004 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 8.142e-05/0.004123, allocations: 318.8 kB / 295.1 MB, free: 3.684 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.851e-06/0.004128, allocations: 0 / 295.1 MB, free: 3.684 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.738e-05/0.004146, allocations: 17.7 kB / 295.1 MB, free: 3.66 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.01e-05/0.004176, allocations: 29.92 kB / 295.1 MB, free: 3.625 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.004178, allocations: 0 / 295.1 MB, free: 3.625 MB / 282.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 4.801e-05/0.004226, allocations: 49.62 kB / 295.2 MB, free: 3.57 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.144e-05/0.004237, allocations: 7.938 kB / 295.2 MB, free: 3.562 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.258e-06/0.004241, allocations: 0 / 295.2 MB, free: 3.562 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.437e-05/0.004256, allocations: 4 kB / 295.2 MB, free: 3.559 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.05e-05/0.004286, allocations: 11.92 kB / 295.2 MB, free: 3.547 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.705e-06/0.004289, allocations: 0 / 295.2 MB, free: 3.547 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.703e-05/0.004306, allocations: 4 kB / 295.2 MB, free: 3.543 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.316e-06/0.004309, allocations: 8.031 kB / 295.2 MB, free: 3.535 MB / 282.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.128e-05/0.004361, allocations: 109.8 kB / 295.3 MB, free: 3.418 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.097e-06/0.00437, allocations: 7.938 kB / 295.3 MB, free: 3.41 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.126e-05/0.004391, allocations: 11.98 kB / 295.4 MB, free: 3.398 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-06/0.004394, allocations: 0 / 295.4 MB, free: 3.398 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.324e-06/0.004396, allocations: 0 / 295.4 MB, free: 3.398 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.756e-06/0.004399, allocations: 0 / 295.4 MB, free: 3.398 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001882/0.004587, allocations: 202.7 kB / 295.5 MB, free: 3.176 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.225e-06/0.004589, allocations: 3.938 kB / 295.6 MB, free: 3.172 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.066e-05/0.00461, allocations: 4 kB / 295.6 MB, free: 3.168 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.161e-06/0.004616, allocations: 0 / 295.6 MB, free: 3.168 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.004618, allocations: 4 kB / 295.6 MB, free: 3.164 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.435e-05/0.004632, allocations: 8 kB / 295.6 MB, free: 3.156 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.004634, allocations: 0 / 295.6 MB, free: 3.156 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.004636, allocations: 0 / 295.6 MB, free: 3.156 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001094/0.004745, allocations: 139.5 kB / 295.7 MB, free: 3.004 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.119e-05/0.004756, allocations: 0 / 295.7 MB, free: 3.004 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.831e-05/0.004785, allocations: 4 kB / 295.7 MB, free: 3 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.049e-05/0.004815, allocations: 3.938 kB / 295.7 MB, free: 2.996 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.088e-06/0.004819, allocations: 3.984 kB / 295.7 MB, free: 2.992 MB / 282.7 MB Notification: Performance of sorting global known variables: time 1.591e-05/0.004835, allocations: 16.86 kB / 295.7 MB, free: 2.973 MB / 282.7 MB Notification: Performance of sort global known variables: time 8.12e-07/0.004836, allocations: 4.031 kB / 295.7 MB, free: 2.969 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001265/0.004963, allocations: 4 kB / 295.7 MB, free: 2.965 MB / 282.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 8.938e-05/0.005052, allocations: 76.42 kB / 295.8 MB, free: 2.883 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 8.022e-05/0.005132, allocations: 16.84 kB / 295.8 MB, free: 2.863 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.218e-06/0.005136, allocations: 0 / 295.8 MB, free: 2.863 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 1.939e-05/0.005156, allocations: 16.8 kB / 295.8 MB, free: 2.844 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001726/0.005328, allocations: 16.69 kB / 295.9 MB, free: 2.828 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004737/0.005802, allocations: 141.1 kB / 296 MB, free: 2.664 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.52e-05/0.005837, allocations: 59.34 kB / 296.1 MB, free: 2.586 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 1.871e-05/0.005856, allocations: 12 kB / 296.1 MB, free: 2.574 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.11e-05/0.005897, allocations: 51.38 kB / 296.1 MB, free: 2.523 MB / 282.7 MB Notification: Performance of SimCode: time 6.92e-07/0.005898, allocations: 0 / 296.1 MB, free: 2.523 MB / 282.7 MB Notification: Performance of Templates: time 0.002111/0.008009, allocations: 0.5518 MB / 296.7 MB, free: 1.98 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator.makefile [Timeout 660] (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 & ./ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/SelfResettingIntegrator/SelfResettingIntegrator.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.798699508421123]