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.001792/0.001792, allocations: 88.23 kB / 20.2 MB, free: 4.23 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.001622/0.001622, allocations: 161.7 kB / 23.52 MB, free: 0.9219 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 1.524/1.524, allocations: 158.6 MB / 185.3 MB, free: 2.922 MB / 170.7 MB " [Timeout remaining time 178] 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.2226/0.2226, allocations: 32.37 MB / 270 MB, free: 14.79 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: translateModel(ModelicaTest.Blocks.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5010,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator") translateModel(ModelicaTest.Blocks.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5010,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.483e-06/1.483e-06, allocations: 0 / 346.9 MB, free: 9.828 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.608e-05/2.756e-05, allocations: 6.312 kB / 346.9 MB, free: 9.82 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.001722/0.00175, allocations: 0.8235 MB / 347.7 MB, free: 9.004 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.000217/0.001967, allocations: 43.89 kB / 347.8 MB, free: 8.961 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.388e-05/0.00203, allocations: 3.938 kB / 347.8 MB, free: 8.957 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001211/0.002152, allocations: 11.88 kB / 347.8 MB, free: 8.945 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 2.09e-05/0.002173, allocations: 3.984 kB / 347.8 MB, free: 8.941 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001037/0.002276, allocations: 23.91 kB / 347.8 MB, free: 8.918 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 9.309e-05/0.002369, allocations: 39.86 kB / 347.9 MB, free: 8.879 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.398e-05/0.002453, allocations: 11.98 kB / 347.9 MB, free: 8.867 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.404e-05/0.002497, allocations: 19.98 kB / 347.9 MB, free: 8.848 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.003e-05/0.002537, allocations: 11.92 kB / 347.9 MB, free: 8.836 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.501e-05/0.002552, allocations: 0 / 347.9 MB, free: 8.836 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.033e-05/0.002563, allocations: 4 kB / 347.9 MB, free: 8.832 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 1.744e-05/0.00258, allocations: 11.98 kB / 347.9 MB, free: 8.82 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 2.881e-05/0.002609, allocations: 11.94 kB / 347.9 MB, free: 8.809 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 9.27e-05/0.002702, allocations: 39.88 kB / 348 MB, free: 8.77 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.874e-06/0.002704, allocations: 0 / 348 MB, free: 8.77 MB / 282.7 MB Notification: Performance of FrontEnd: time 5.71e-07/0.002704, allocations: 0 / 348 MB, free: 8.77 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.055e-06/0.002707, allocations: 0 / 348 MB, free: 8.77 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.0003586/0.003066, allocations: 275.1 kB / 348.2 MB, free: 8.465 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.135e-05/0.003097, allocations: 12.03 kB / 348.3 MB, free: 8.453 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.434e-05/0.003141, allocations: 12.89 kB / 348.3 MB, free: 8.441 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001531/0.003295, allocations: 125.7 kB / 348.4 MB, free: 8.293 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.066e-05/0.003305, allocations: 4.312 kB / 348.4 MB, free: 8.289 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.164e-05/0.003327, allocations: 12.38 kB / 348.4 MB, free: 8.277 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001005/0.003427, allocations: 50.23 kB / 348.5 MB, free: 8.223 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.566e-06/0.003436, allocations: 192 / 348.5 MB, free: 8.223 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.568e-06/0.003445, allocations: 4.375 kB / 348.5 MB, free: 8.219 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.49e-06/0.003451, allocations: 4.375 kB / 348.5 MB, free: 8.215 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.685e-05/0.003488, allocations: 19.92 kB / 348.5 MB, free: 8.195 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00039/0.003878, allocations: 224.4 kB / 348.7 MB, free: 7.945 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.965e-05/0.003927, allocations: 22.58 kB / 348.7 MB, free: 7.914 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.529e-05/0.003943, allocations: 12.8 kB / 348.7 MB, free: 7.898 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.212e-05/0.003955, allocations: 8.062 kB / 348.7 MB, free: 7.891 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.903e-05/0.004014, allocations: 51.34 kB / 348.8 MB, free: 7.828 MB / 282.7 MB Notification: Performance of pre-optimization done (n=3): time 9.41e-07/0.004015, allocations: 0 / 348.8 MB, free: 7.828 MB / 282.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001375/0.004152, allocations: 49.69 kB / 348.8 MB, free: 7.773 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.202e-05/0.004174, allocations: 51.41 kB / 348.9 MB, free: 7.711 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.832e-05/0.004233, allocations: 105.8 kB / 349 MB, free: 7.598 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 8.957e-06/0.004242, allocations: 29.7 kB / 349 MB, free: 7.562 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.214e-05/0.004274, allocations: 92.08 kB / 349.1 MB, free: 7.469 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.402e-05/0.004288, allocations: 11.95 kB / 349.1 MB, free: 7.457 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.543e-05/0.004313, allocations: 13.72 kB / 349.1 MB, free: 7.438 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 5.653e-05/0.00437, allocations: 318.8 kB / 349.5 MB, free: 7.117 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.699e-05/0.004387, allocations: 8 kB / 349.5 MB, free: 7.109 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.331e-05/0.00441, allocations: 21.66 kB / 349.5 MB, free: 7.082 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.422e-05/0.004444, allocations: 22 kB / 349.5 MB, free: 7.055 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.322e-06/0.004446, allocations: 0 / 349.5 MB, free: 7.055 MB / 282.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.031e-05/0.004516, allocations: 69.5 kB / 349.6 MB, free: 6.98 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.382e-05/0.00453, allocations: 8 kB / 349.6 MB, free: 6.973 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.86e-06/0.004535, allocations: 0 / 349.6 MB, free: 6.973 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.255e-05/0.004557, allocations: 0 / 349.6 MB, free: 6.973 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.059e-05/0.004588, allocations: 7.984 kB / 349.6 MB, free: 6.965 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.262e-06/0.004594, allocations: 4.031 kB / 349.6 MB, free: 6.961 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.767e-05/0.004622, allocations: 4 kB / 349.6 MB, free: 6.957 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.627e-06/0.004625, allocations: 0 / 349.6 MB, free: 6.957 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 6.058e-05/0.004686, allocations: 113.8 kB / 349.7 MB, free: 6.836 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.04e-05/0.004696, allocations: 3.938 kB / 349.7 MB, free: 6.832 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.866e-05/0.004715, allocations: 12 kB / 349.7 MB, free: 6.82 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-06/0.004716, allocations: 3.938 kB / 349.7 MB, free: 6.816 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.547e-06/0.00472, allocations: 0 / 349.7 MB, free: 6.816 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.615e-06/0.004723, allocations: 0 / 349.7 MB, free: 6.816 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001825/0.004905, allocations: 250.2 kB / 350 MB, free: 6.535 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.004906, allocations: 8 kB / 350 MB, free: 6.527 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.944e-05/0.004936, allocations: 0 / 350 MB, free: 6.527 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.493e-06/0.004937, allocations: 0 / 350 MB, free: 6.527 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.855e-06/0.004945, allocations: 0 / 350 MB, free: 6.527 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.176e-06/0.004948, allocations: 8 kB / 350 MB, free: 6.52 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.00495, allocations: 3.984 kB / 350 MB, free: 6.516 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001062/0.005056, allocations: 151.4 kB / 350.1 MB, free: 6.352 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.104e-05/0.005067, allocations: 11.92 kB / 350.1 MB, free: 6.34 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.26e-05/0.00508, allocations: 4 kB / 350.2 MB, free: 6.336 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.529e-05/0.005135, allocations: 0 / 350.2 MB, free: 6.336 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.911e-05/0.005174, allocations: 3.984 kB / 350.2 MB, free: 6.332 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.689e-06/0.005179, allocations: 8.062 kB / 350.2 MB, free: 6.324 MB / 282.7 MB Notification: Performance of sorting global known variables: time 2.928e-05/0.005208, allocations: 87.58 kB / 350.2 MB, free: 6.238 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.005208, allocations: 0 / 350.2 MB, free: 6.238 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002176/0.005426, allocations: 8 kB / 350.3 MB, free: 6.23 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 7.692e-05/0.005503, allocations: 91.23 kB / 350.3 MB, free: 6.133 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 8.84e-05/0.005591, allocations: 19.94 kB / 350.4 MB, free: 6.113 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.005593, allocations: 0 / 350.4 MB, free: 6.113 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 1.514e-05/0.005608, allocations: 8 kB / 350.4 MB, free: 6.105 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002829/0.005891, allocations: 15.92 kB / 350.4 MB, free: 6.09 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002653/0.006156, allocations: 136.5 kB / 350.5 MB, free: 5.93 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.105e-05/0.006197, allocations: 71.23 kB / 350.6 MB, free: 5.84 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 1.55e-05/0.006212, allocations: 4 kB / 350.6 MB, free: 5.836 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.045e-05/0.006233, allocations: 12.5 kB / 350.6 MB, free: 5.824 MB / 282.7 MB Notification: Performance of SimCode: time 4.11e-07/0.006233, allocations: 0 / 350.6 MB, free: 5.824 MB / 282.7 MB Notification: Performance of Templates: time 0.002799/0.009032, allocations: 0.5435 MB / 351.2 MB, free: 5.293 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.makefile [Timeout 660] (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 & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat","/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] Reference file matches [Calling sys.exit(0), Time elapsed: 4.770409465068951]