Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.001994/0.001994, allocations: 92.31 kB / 20.96 MB, free: 3.465 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.001681/0.001681, allocations: 157.7 kB / 24.27 MB, free: 164 kB / 18.57 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.499/1.499, allocations: 177.1 MB / 204.6 MB, free: 5.594 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3496/0.3496, allocations: 32.79 MB / 293.9 MB, free: 1.191 MB / 266.7 MB " [Timeout remaining time 179] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.0.0_ModelicaTest.Blocks.SelfResettingIntegrator") translateModel(ModelicaTest.Blocks.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5010,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 6.733e-06/6.733e-06, allocations: 3.984 kB / 375.2 MB, free: 4.984 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.791e-05/3.465e-05, allocations: 5.266 kB / 375.2 MB, free: 4.98 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.002439/0.002474, allocations: 0.811 MB / 376.1 MB, free: 4.172 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002712/0.002745, allocations: 47.81 kB / 376.1 MB, free: 4.125 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.634e-05/0.002832, allocations: 8 kB / 376.1 MB, free: 4.117 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000166/0.002998, allocations: 7.875 kB / 376.1 MB, free: 4.109 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 2.141e-05/0.003019, allocations: 3.938 kB / 376.1 MB, free: 4.105 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001574/0.003176, allocations: 15.98 kB / 376.1 MB, free: 4.09 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001284/0.003305, allocations: 35.92 kB / 376.2 MB, free: 4.055 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001055/0.00341, allocations: 15.97 kB / 376.2 MB, free: 4.039 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.252e-05/0.003463, allocations: 15.92 kB / 376.2 MB, free: 4.023 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.036e-05/0.003513, allocations: 7.984 kB / 376.2 MB, free: 4.016 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 2.042e-05/0.003534, allocations: 4 kB / 376.2 MB, free: 4.012 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.239e-05/0.003546, allocations: 4 kB / 376.2 MB, free: 4.008 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 2.269e-05/0.003569, allocations: 7.938 kB / 376.2 MB, free: 4 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 3.696e-05/0.003606, allocations: 15.98 kB / 376.2 MB, free: 3.984 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000133/0.003739, allocations: 35.83 kB / 376.3 MB, free: 3.949 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.144e-06/0.003741, allocations: 0 / 376.3 MB, free: 3.949 MB / 346.7 MB Notification: Performance of FrontEnd: time 5.82e-07/0.003741, allocations: 0 / 376.3 MB, free: 3.949 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.007e-06/0.003745, allocations: 0 / 376.3 MB, free: 3.949 MB / 346.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.0005727/0.004318, allocations: 279.1 kB / 376.5 MB, free: 3.641 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.97e-05/0.004368, allocations: 12.03 kB / 376.6 MB, free: 3.629 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.196e-05/0.00443, allocations: 12.89 kB / 376.6 MB, free: 3.617 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002691/0.004699, allocations: 121.7 kB / 376.7 MB, free: 3.473 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.485e-05/0.004724, allocations: 16.36 kB / 376.7 MB, free: 3.457 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.519e-05/0.004769, allocations: 8.359 kB / 376.7 MB, free: 3.449 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000137/0.004906, allocations: 50.25 kB / 376.8 MB, free: 3.395 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.147e-06/0.004915, allocations: 192 / 376.8 MB, free: 3.395 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.049e-05/0.004925, allocations: 384 / 376.8 MB, free: 3.395 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.585e-06/0.004933, allocations: 4.375 kB / 376.8 MB, free: 3.391 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.087e-05/0.004984, allocations: 15.94 kB / 376.8 MB, free: 3.375 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005531/0.005537, allocations: 228.4 kB / 377 MB, free: 3.121 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.567e-05/0.005613, allocations: 22.58 kB / 377 MB, free: 3.09 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.709e-05/0.00564, allocations: 12.78 kB / 377 MB, free: 3.074 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.488e-05/0.005655, allocations: 8.062 kB / 377 MB, free: 3.066 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001124/0.005767, allocations: 55.34 kB / 377.1 MB, free: 3 MB / 346.7 MB Notification: Performance of pre-optimization done (n=3): time 1.412e-06/0.005769, allocations: 0 / 377.1 MB, free: 3 MB / 346.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001687/0.005937, allocations: 41.7 kB / 377.1 MB, free: 2.953 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.205e-05/0.005989, allocations: 55.39 kB / 377.2 MB, free: 2.887 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001135/0.006103, allocations: 105.9 kB / 377.3 MB, free: 2.773 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.643e-05/0.006129, allocations: 37.62 kB / 377.3 MB, free: 2.73 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.412e-05/0.006203, allocations: 92.16 kB / 377.4 MB, free: 2.637 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.828e-05/0.006222, allocations: 7.953 kB / 377.4 MB, free: 2.629 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.255e-05/0.006264, allocations: 21.66 kB / 377.5 MB, free: 2.602 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000186/0.00645, allocations: 318.8 kB / 377.8 MB, free: 2.281 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.361e-05/0.006474, allocations: 8 kB / 377.8 MB, free: 2.273 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.101e-05/0.006505, allocations: 13.72 kB / 377.8 MB, free: 2.254 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.157e-05/0.006556, allocations: 29.7 kB / 377.8 MB, free: 2.219 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.006558, allocations: 0 / 377.8 MB, free: 2.219 MB / 346.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001159/0.006674, allocations: 57.53 kB / 377.9 MB, free: 2.156 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.663e-05/0.00669, allocations: 8 kB / 377.9 MB, free: 2.148 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.863e-06/0.006697, allocations: 3.984 kB / 377.9 MB, free: 2.145 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.793e-05/0.006715, allocations: 0 / 377.9 MB, free: 2.145 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.344e-05/0.006749, allocations: 8.031 kB / 377.9 MB, free: 2.137 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.16e-06/0.006754, allocations: 0 / 377.9 MB, free: 2.137 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.053e-05/0.006784, allocations: 4 kB / 377.9 MB, free: 2.133 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.867e-06/0.006788, allocations: 0 / 377.9 MB, free: 2.133 MB / 346.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 9.784e-05/0.006886, allocations: 113.8 kB / 378 MB, free: 2.012 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.558e-05/0.006902, allocations: 8.203 kB / 378 MB, free: 2.004 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.999e-05/0.006932, allocations: 15.98 kB / 378 MB, free: 1.988 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.773e-06/0.006933, allocations: 0 / 378 MB, free: 1.988 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/0.006939, allocations: 3.984 kB / 378 MB, free: 1.984 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.605e-06/0.006942, allocations: 0 / 378 MB, free: 1.984 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003253/0.007267, allocations: 246.2 kB / 378.3 MB, free: 1.707 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.007268, allocations: 4 kB / 378.3 MB, free: 1.703 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.488e-05/0.007303, allocations: 3.984 kB / 378.3 MB, free: 1.699 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.665e-06/0.007306, allocations: 0 / 378.3 MB, free: 1.699 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.015e-06/0.007314, allocations: 0 / 378.3 MB, free: 1.699 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.361e-06/0.00732, allocations: 7.938 kB / 378.3 MB, free: 1.691 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.007321, allocations: 0 / 378.3 MB, free: 1.691 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001843/0.007506, allocations: 151.5 kB / 378.4 MB, free: 1.527 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.668e-05/0.007532, allocations: 11.98 kB / 378.5 MB, free: 1.516 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.379e-05/0.007546, allocations: 0 / 378.5 MB, free: 1.516 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.691e-05/0.007603, allocations: 0 / 378.5 MB, free: 1.516 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.331e-05/0.007636, allocations: 8.047 kB / 378.5 MB, free: 1.508 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.452e-06/0.007643, allocations: 4 kB / 378.5 MB, free: 1.504 MB / 346.7 MB Notification: Performance of sorting global known variables: time 6.645e-05/0.007709, allocations: 91.52 kB / 378.6 MB, free: 1.414 MB / 346.7 MB Notification: Performance of sort global known variables: time 6e-08/0.007709, allocations: 0 / 378.6 MB, free: 1.414 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.00023/0.007939, allocations: 7.938 kB / 378.6 MB, free: 1.406 MB / 346.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.0001198/0.008059, allocations: 99.17 kB / 378.7 MB, free: 1.297 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 8.947e-05/0.008149, allocations: 19.94 kB / 378.7 MB, free: 1.277 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.493e-06/0.00815, allocations: 0 / 378.7 MB, free: 1.277 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 2.288e-05/0.008173, allocations: 11.98 kB / 378.7 MB, free: 1.266 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000298/0.008471, allocations: 18.03 kB / 378.7 MB, free: 1.25 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003731/0.008844, allocations: 136.4 kB / 378.8 MB, free: 1.09 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.819e-05/0.008922, allocations: 63.34 kB / 378.9 MB, free: 1.008 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 2.49e-05/0.008947, allocations: 7.906 kB / 378.9 MB, free: 1 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.858e-05/0.008976, allocations: 12.44 kB / 378.9 MB, free: 0.9844 MB / 346.7 MB Notification: Performance of SimCode: time 5.81e-07/0.008976, allocations: 0 / 378.9 MB, free: 0.9844 MB / 346.7 MB Notification: Performance of Templates: time 0.003292/0.01227, allocations: 0.5012 MB / 379.4 MB, free: 496 kB / 346.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/SelfResettingIntegrator/SelfResettingIntegrator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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: 4.711565803969279]