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.00131/0.00131, allocations: 91.22 kB / 20.42 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.001593/0.001593, allocations: 165 kB / 23.79 MB, free: 0.7812 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.057/1.057, allocations: 158.6 MB / 185.7 MB, free: 2.891 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.1365/0.1365, allocations: 32.37 MB / 270.4 MB, free: 14.7 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.743e-06/1.743e-06, allocations: 0 / 347.6 MB, free: 9.469 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.163e-05/2.337e-05, allocations: 6.25 kB / 347.7 MB, free: 9.461 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.001353/0.001377, allocations: 0.8452 MB / 348.5 MB, free: 8.625 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002078/0.001585, allocations: 51.77 kB / 348.5 MB, free: 8.574 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.624e-05/0.001651, allocations: 0 / 348.5 MB, free: 8.574 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001309/0.001782, allocations: 3.938 kB / 348.6 MB, free: 8.57 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 2.428e-05/0.001806, allocations: 7.938 kB / 348.6 MB, free: 8.562 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001113/0.001917, allocations: 19.97 kB / 348.6 MB, free: 8.543 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 9.966e-05/0.002017, allocations: 43.84 kB / 348.6 MB, free: 8.5 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001147/0.002132, allocations: 11.98 kB / 348.6 MB, free: 8.488 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.593e-05/0.002178, allocations: 19.98 kB / 348.7 MB, free: 8.469 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.849e-05/0.002226, allocations: 7.938 kB / 348.7 MB, free: 8.461 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.344e-05/0.002249, allocations: 4 kB / 348.7 MB, free: 8.457 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.02e-05/0.00226, allocations: 0 / 348.7 MB, free: 8.457 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 2.135e-05/0.002281, allocations: 15.97 kB / 348.7 MB, free: 8.441 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 2.262e-05/0.002304, allocations: 11.94 kB / 348.7 MB, free: 8.43 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001014/0.002405, allocations: 23.91 kB / 348.7 MB, free: 8.406 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.364e-06/0.002407, allocations: 4 kB / 348.7 MB, free: 8.402 MB / 282.7 MB Notification: Performance of FrontEnd: time 7.81e-07/0.002408, allocations: 7.938 kB / 348.7 MB, free: 8.395 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.779e-06/0.002413, allocations: 0 / 348.7 MB, free: 8.395 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.0003789/0.002792, allocations: 384.2 kB / 349.1 MB, free: 7.977 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.928e-05/0.002841, allocations: 12.02 kB / 349.1 MB, free: 7.965 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.497e-05/0.002886, allocations: 8.891 kB / 349.1 MB, free: 7.957 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001466/0.003033, allocations: 132.5 kB / 349.3 MB, free: 7.801 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.066e-05/0.003043, allocations: 384 / 349.3 MB, free: 7.801 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.963e-05/0.003063, allocations: 4.375 kB / 349.3 MB, free: 7.797 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.386e-05/0.003157, allocations: 42.25 kB / 349.3 MB, free: 7.75 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.887e-06/0.003166, allocations: 4.188 kB / 349.3 MB, free: 7.746 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.083e-05/0.003177, allocations: 4.375 kB / 349.3 MB, free: 7.742 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.969e-06/0.003187, allocations: 4.375 kB / 349.3 MB, free: 7.738 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.869e-05/0.003215, allocations: 11.88 kB / 349.3 MB, free: 7.727 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000393/0.003608, allocations: 283.7 kB / 349.6 MB, free: 7.414 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.047e-05/0.003659, allocations: 31 kB / 349.6 MB, free: 7.371 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.573e-05/0.003674, allocations: 15.69 kB / 349.6 MB, free: 7.352 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.383e-06/0.003682, allocations: 4 kB / 349.6 MB, free: 7.348 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.713e-05/0.003739, allocations: 53.06 kB / 349.7 MB, free: 7.281 MB / 282.7 MB Notification: Performance of pre-optimization done (n=3): time 9.62e-07/0.00374, allocations: 4 kB / 349.7 MB, free: 7.277 MB / 282.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001234/0.003863, allocations: 45.69 kB / 349.7 MB, free: 7.227 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.35e-05/0.003887, allocations: 55.34 kB / 349.8 MB, free: 7.16 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.247e-05/0.003939, allocations: 165.9 kB / 350 MB, free: 6.98 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 5.831e-06/0.003945, allocations: 25.7 kB / 350 MB, free: 6.949 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.996e-05/0.003975, allocations: 138.8 kB / 350.1 MB, free: 6.809 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.361e-05/0.003989, allocations: 7.938 kB / 350.1 MB, free: 6.801 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.294e-05/0.004012, allocations: 23.38 kB / 350.2 MB, free: 6.77 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 5.017e-05/0.004062, allocations: 496.1 kB / 350.6 MB, free: 6.273 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.041e-05/0.004072, allocations: 4 kB / 350.6 MB, free: 6.27 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.702e-05/0.004089, allocations: 23.36 kB / 350.7 MB, free: 6.238 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.782e-05/0.004117, allocations: 31.66 kB / 350.7 MB, free: 6.199 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.004119, allocations: 0 / 350.7 MB, free: 6.199 MB / 282.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 4.752e-05/0.004166, allocations: 61.5 kB / 350.8 MB, free: 6.133 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.173e-05/0.004178, allocations: 8 kB / 350.8 MB, free: 6.125 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.568e-06/0.004183, allocations: 0 / 350.8 MB, free: 6.125 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.412e-05/0.004197, allocations: 0 / 350.8 MB, free: 6.125 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.815e-05/0.004225, allocations: 4 kB / 350.8 MB, free: 6.121 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.649e-06/0.00423, allocations: 3.938 kB / 350.8 MB, free: 6.117 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.958e-05/0.004249, allocations: 7.938 kB / 350.8 MB, free: 6.109 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.128e-06/0.004253, allocations: 4.031 kB / 350.8 MB, free: 6.105 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.066e-05/0.004304, allocations: 168.5 kB / 351 MB, free: 5.93 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.571e-06/0.00431, allocations: 3.938 kB / 351 MB, free: 5.926 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.748e-05/0.004327, allocations: 8 kB / 351 MB, free: 5.918 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.813e-06/0.004329, allocations: 0 / 351 MB, free: 5.918 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.004332, allocations: 0 / 351 MB, free: 5.918 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.886e-06/0.004335, allocations: 0 / 351 MB, free: 5.918 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001437/0.004479, allocations: 301.4 kB / 351.3 MB, free: 5.582 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.00448, allocations: 7.938 kB / 351.3 MB, free: 5.574 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.409e-05/0.004494, allocations: 4 kB / 351.3 MB, free: 5.57 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.923e-06/0.004496, allocations: 4 kB / 351.3 MB, free: 5.566 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.232e-05/0.004508, allocations: 0 / 351.3 MB, free: 5.566 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.31e-07/0.004509, allocations: 0 / 351.3 MB, free: 5.566 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.004509, allocations: 0 / 351.3 MB, free: 5.566 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.979e-05/0.004589, allocations: 195.9 kB / 351.5 MB, free: 5.355 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.235e-06/0.004598, allocations: 11.94 kB / 351.5 MB, free: 5.344 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.348e-06/0.004607, allocations: 0 / 351.5 MB, free: 5.344 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.568e-05/0.004633, allocations: 0 / 351.5 MB, free: 5.344 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.95e-05/0.004662, allocations: 4 kB / 351.5 MB, free: 5.34 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.367e-06/0.004665, allocations: 0 / 351.5 MB, free: 5.34 MB / 282.7 MB Notification: Performance of sorting global known variables: time 2.093e-05/0.004686, allocations: 135.5 kB / 351.6 MB, free: 5.207 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.004686, allocations: 4.031 kB / 351.6 MB, free: 5.203 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001316/0.004818, allocations: 11.94 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 5.128e-05/0.004869, allocations: 87.25 kB / 351.7 MB, free: 5.098 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 8.482e-05/0.004954, allocations: 27.67 kB / 351.7 MB, free: 5.066 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.004956, allocations: 0 / 351.7 MB, free: 5.066 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 1.828e-05/0.004975, allocations: 11.69 kB / 351.8 MB, free: 5.051 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002077/0.005182, allocations: 15.92 kB / 351.8 MB, free: 5.035 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002609/0.005443, allocations: 138 kB / 351.9 MB, free: 4.871 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.74e-05/0.005471, allocations: 63.41 kB / 352 MB, free: 4.789 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 1.854e-05/0.005489, allocations: 7.906 kB / 352 MB, free: 4.781 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.511e-05/0.005514, allocations: 8.5 kB / 352 MB, free: 4.773 MB / 282.7 MB Notification: Performance of SimCode: time 5.41e-07/0.005515, allocations: 0 / 352 MB, free: 4.773 MB / 282.7 MB Notification: Performance of Templates: time 0.002152/0.007667, allocations: 0.5455 MB / 352.5 MB, free: 4.238 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.148049829993397]