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.0009963/0.0009963, allocations: 95.2 kB / 20.43 MB, free: 4.145 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.0009859/0.0009859, allocations: 165 kB / 23.8 MB, free: 0.7773 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.8468/0.8468, allocations: 158.6 MB / 185.7 MB, free: 2.934 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.1304/0.1304, allocations: 32.38 MB / 270.4 MB, free: 14.71 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.883e-06/1.883e-06, allocations: 0 / 347.6 MB, free: 9.461 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.552e-05/2.74e-05, allocations: 13.34 kB / 347.7 MB, free: 9.449 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.001551/0.001579, allocations: 0.8429 MB / 348.5 MB, free: 8.613 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002104/0.001789, allocations: 47.83 kB / 348.6 MB, free: 8.566 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.845e-05/0.001858, allocations: 0 / 348.6 MB, free: 8.566 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001335/0.001991, allocations: 7.938 kB / 348.6 MB, free: 8.559 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 2.304e-05/0.002014, allocations: 3.938 kB / 348.6 MB, free: 8.555 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001181/0.002132, allocations: 19.97 kB / 348.6 MB, free: 8.535 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 9.272e-05/0.002225, allocations: 43.84 kB / 348.6 MB, free: 8.492 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.892e-05/0.002324, allocations: 11.98 kB / 348.6 MB, free: 8.48 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.341e-05/0.002367, allocations: 19.98 kB / 348.7 MB, free: 8.461 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.905e-05/0.002406, allocations: 11.92 kB / 348.7 MB, free: 8.449 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.593e-05/0.002422, allocations: 0 / 348.7 MB, free: 8.449 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.738e-06/0.002432, allocations: 4 kB / 348.7 MB, free: 8.445 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 1.662e-05/0.002449, allocations: 7.984 kB / 348.7 MB, free: 8.438 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 2.335e-05/0.002472, allocations: 11.94 kB / 348.7 MB, free: 8.426 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 9.902e-05/0.002571, allocations: 27.91 kB / 348.7 MB, free: 8.398 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.963e-06/0.002573, allocations: 3.938 kB / 348.7 MB, free: 8.395 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.012e-06/0.002574, allocations: 0 / 348.7 MB, free: 8.395 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.719e-06/0.002579, allocations: 4 kB / 348.7 MB, free: 8.391 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.0003256/0.002904, allocations: 384.2 kB / 349.1 MB, free: 7.973 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.592e-05/0.00294, allocations: 8.031 kB / 349.1 MB, free: 7.965 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.778e-05/0.002978, allocations: 16.88 kB / 349.1 MB, free: 7.949 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001297/0.003108, allocations: 124.5 kB / 349.2 MB, free: 7.801 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.097e-05/0.003119, allocations: 8.375 kB / 349.3 MB, free: 7.793 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.48e-05/0.003144, allocations: 8.375 kB / 349.3 MB, free: 7.785 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.235e-05/0.003236, allocations: 42.25 kB / 349.3 MB, free: 7.738 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.335e-06/0.003244, allocations: 192 / 349.3 MB, free: 7.738 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.648e-06/0.003254, allocations: 384 / 349.3 MB, free: 7.738 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.295e-06/0.003262, allocations: 384 / 349.3 MB, free: 7.738 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.995e-05/0.003292, allocations: 23.86 kB / 349.3 MB, free: 7.715 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003578/0.00365, allocations: 279.7 kB / 349.6 MB, free: 7.406 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.978e-05/0.00369, allocations: 27.06 kB / 349.6 MB, free: 7.367 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.423e-05/0.003704, allocations: 19.62 kB / 349.6 MB, free: 7.344 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.124e-06/0.003711, allocations: 4 kB / 349.7 MB, free: 7.34 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.229e-05/0.003763, allocations: 53.06 kB / 349.7 MB, free: 7.273 MB / 282.7 MB Notification: Performance of pre-optimization done (n=3): time 9.12e-07/0.003764, allocations: 0 / 349.7 MB, free: 7.273 MB / 282.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001136/0.003878, allocations: 45.69 kB / 349.7 MB, free: 7.223 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.863e-05/0.003896, allocations: 59.34 kB / 349.8 MB, free: 7.152 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.174e-05/0.003948, allocations: 165.9 kB / 350 MB, free: 6.973 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 5.961e-06/0.003954, allocations: 25.7 kB / 350 MB, free: 6.941 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.012e-05/0.003984, allocations: 138.8 kB / 350.1 MB, free: 6.801 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.314e-05/0.003997, allocations: 7.938 kB / 350.1 MB, free: 6.793 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.303e-05/0.00402, allocations: 23.38 kB / 350.2 MB, free: 6.762 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 4.293e-05/0.004063, allocations: 492.1 kB / 350.6 MB, free: 6.27 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.243e-05/0.004076, allocations: 8 kB / 350.6 MB, free: 6.262 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.888e-05/0.004095, allocations: 27.36 kB / 350.7 MB, free: 6.227 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.692e-05/0.004122, allocations: 27.38 kB / 350.7 MB, free: 6.191 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.004123, allocations: 0 / 350.7 MB, free: 6.191 MB / 282.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 5.285e-05/0.004176, allocations: 61.83 kB / 350.8 MB, free: 6.125 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.287e-05/0.004189, allocations: 8 kB / 350.8 MB, free: 6.117 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.269e-06/0.004194, allocations: 0 / 350.8 MB, free: 6.117 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.632e-05/0.004211, allocations: 0 / 350.8 MB, free: 6.117 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.28e-05/0.004244, allocations: 7.938 kB / 350.8 MB, free: 6.109 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.42e-06/0.004249, allocations: 4.031 kB / 350.8 MB, free: 6.105 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.989e-05/0.004269, allocations: 4 kB / 350.8 MB, free: 6.102 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.687e-06/0.004273, allocations: 0 / 350.8 MB, free: 6.102 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 4.515e-05/0.004318, allocations: 164.4 kB / 350.9 MB, free: 5.93 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.043e-06/0.004325, allocations: 7.938 kB / 351 MB, free: 5.922 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.21e-05/0.004347, allocations: 8 kB / 351 MB, free: 5.914 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.775e-06/0.00435, allocations: 4 kB / 351 MB, free: 5.91 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.004353, allocations: 0 / 351 MB, free: 5.91 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.504e-06/0.004356, allocations: 0 / 351 MB, free: 5.91 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001739/0.00453, allocations: 297.4 kB / 351.3 MB, free: 5.578 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.004531, allocations: 8 kB / 351.3 MB, free: 5.57 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.758e-05/0.004549, allocations: 7.938 kB / 351.3 MB, free: 5.562 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.513e-06/0.00455, allocations: 0 / 351.3 MB, free: 5.562 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.247e-05/0.004563, allocations: 0 / 351.3 MB, free: 5.562 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.004565, allocations: 320 / 351.3 MB, free: 5.562 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.004565, allocations: 0 / 351.3 MB, free: 5.562 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.906e-05/0.004664, allocations: 199.9 kB / 351.5 MB, free: 5.348 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.836e-06/0.004673, allocations: 11.94 kB / 351.5 MB, free: 5.336 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.059e-05/0.004684, allocations: 0 / 351.5 MB, free: 5.336 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.89e-05/0.004713, allocations: 0 / 351.5 MB, free: 5.336 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.639e-05/0.004739, allocations: 0 / 351.5 MB, free: 5.336 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.518e-06/0.004744, allocations: 8.031 kB / 351.5 MB, free: 5.328 MB / 282.7 MB Notification: Performance of sorting global known variables: time 2.148e-05/0.004765, allocations: 135.2 kB / 351.6 MB, free: 5.195 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.004765, allocations: 0 / 351.6 MB, free: 5.195 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.000148/0.004913, allocations: 4 kB / 351.6 MB, free: 5.191 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.096e-05/0.004984, allocations: 95.19 kB / 351.7 MB, free: 5.09 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 7.246e-05/0.005057, allocations: 27.67 kB / 351.7 MB, free: 5.059 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.423e-06/0.005058, allocations: 0 / 351.7 MB, free: 5.059 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 1.43e-05/0.005072, allocations: 11.69 kB / 351.8 MB, free: 5.043 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001968/0.005269, allocations: 12 kB / 351.8 MB, free: 5.031 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002444/0.005514, allocations: 150.1 kB / 351.9 MB, free: 4.855 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.274e-05/0.005536, allocations: 59.34 kB / 352 MB, free: 4.777 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 1.712e-05/0.005553, allocations: 7.906 kB / 352 MB, free: 4.77 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.272e-05/0.005576, allocations: 8.5 kB / 352 MB, free: 4.762 MB / 282.7 MB Notification: Performance of SimCode: time 8.41e-07/0.005577, allocations: 0 / 352 MB, free: 4.762 MB / 282.7 MB Notification: Performance of Templates: time 0.002285/0.007862, allocations: 0.5401 MB / 352.5 MB, free: 4.234 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=240 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.1031260089948773]