Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001124/0.001124, allocations: 76.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001807/0.002931, allocations: 457.8 kB / 10.45 MB, free: 244 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001102/0.001102, allocations: 162 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001472/0.002574, allocations: 475.6 kB / 11.82 MB, free: 2.348 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9419/0.9419, allocations: 177.5 MB / 190 MB, free: 4.777 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08788/1.03, allocations: 53.87 MB / 243.9 MB, free: 14.84 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2846/0.2846, allocations: 34.88 MB / 279.6 MB, free: 14.91 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.02397/0.3086, allocations: 13.24 MB / 292.8 MB, free: 6.383 MB / 282.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Blocks.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5010,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator") translateModel(ModelicaTest.Blocks.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5010,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.413e-06/1.413e-06, allocations: 0 / 294.1 MB, free: 5.102 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 6.963e-06/8.376e-06, allocations: 2.312 kB / 294.1 MB, free: 5.098 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.001171/0.00118, allocations: 0.8897 MB / 295 MB, free: 4.211 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 9.119e-05/0.001271, allocations: 51.77 kB / 295 MB, free: 4.16 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.999e-05/0.001311, allocations: 0 / 295 MB, free: 4.16 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 4.157e-05/0.001352, allocations: 11.86 kB / 295 MB, free: 4.148 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 1.115e-05/0.001363, allocations: 3.938 kB / 295 MB, free: 4.145 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 4.847e-05/0.001412, allocations: 19.97 kB / 295.1 MB, free: 4.125 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 6.686e-05/0.001479, allocations: 35.92 kB / 295.1 MB, free: 4.09 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.931e-05/0.001538, allocations: 15.98 kB / 295.1 MB, free: 4.074 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.014e-05/0.001578, allocations: 19.92 kB / 295.1 MB, free: 4.055 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.877e-05/0.001607, allocations: 11.98 kB / 295.1 MB, free: 4.043 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.445e-05/0.001621, allocations: 11.94 kB / 295.2 MB, free: 4.031 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.965e-06/0.001629, allocations: 4 kB / 295.2 MB, free: 4.027 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 1.621e-05/0.001646, allocations: 7.984 kB / 295.2 MB, free: 4.02 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 1.5e-05/0.001661, allocations: 7.938 kB / 295.2 MB, free: 4.012 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 6.726e-05/0.001728, allocations: 19.92 kB / 295.2 MB, free: 3.992 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.474e-06/0.001735, allocations: 3.938 kB / 295.2 MB, free: 3.988 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.7e-07/0.001736, allocations: 0 / 295.2 MB, free: 3.988 MB / 282.7 MB Notification: Performance of Transformations before backend: time 7.704e-06/0.001743, allocations: 0 / 295.2 MB, free: 3.988 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.000244/0.001987, allocations: 261.7 kB / 295.4 MB, free: 3.707 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.306e-05/0.002011, allocations: 8.922 kB / 295.5 MB, free: 3.699 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.878e-05/0.002029, allocations: 4.938 kB / 295.5 MB, free: 3.695 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001061/0.002135, allocations: 129.7 kB / 295.6 MB, free: 3.543 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.931e-06/0.002141, allocations: 4.359 kB / 295.6 MB, free: 3.539 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.707e-05/0.002158, allocations: 8.375 kB / 295.6 MB, free: 3.531 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.613e-05/0.002215, allocations: 38.25 kB / 295.6 MB, free: 3.488 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.28e-06/0.00222, allocations: 192 / 295.6 MB, free: 3.488 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.761e-06/0.002226, allocations: 4.375 kB / 295.6 MB, free: 3.484 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.609e-06/0.00223, allocations: 4.375 kB / 295.6 MB, free: 3.48 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.783e-05/0.002248, allocations: 15.86 kB / 295.7 MB, free: 3.465 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002038/0.002452, allocations: 176.2 kB / 295.8 MB, free: 3.277 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 2.97e-05/0.002482, allocations: 26.52 kB / 295.9 MB, free: 3.242 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.684e-06/0.002489, allocations: 4.859 kB / 295.9 MB, free: 3.234 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.368e-06/0.002494, allocations: 0 / 295.9 MB, free: 3.234 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.671e-05/0.00254, allocations: 55.41 kB / 295.9 MB, free: 3.168 MB / 282.7 MB Notification: Performance of pre-optimization done (n=3): time 6.41e-07/0.002541, allocations: 0 / 295.9 MB, free: 3.168 MB / 282.7 MB Notification: Performance of matching and sorting (n=3): time 6.025e-05/0.002601, allocations: 37.69 kB / 296 MB, free: 3.125 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.231e-05/0.002624, allocations: 59.34 kB / 296 MB, free: 3.055 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.454e-05/0.002668, allocations: 114.8 kB / 296.1 MB, free: 2.93 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 9.558e-06/0.002678, allocations: 25.7 kB / 296.2 MB, free: 2.898 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.71e-05/0.002705, allocations: 96.08 kB / 296.2 MB, free: 2.801 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.04e-05/0.002715, allocations: 11.94 kB / 296.3 MB, free: 2.789 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.063e-05/0.002736, allocations: 13.72 kB / 296.3 MB, free: 2.77 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 6.184e-05/0.002798, allocations: 314.8 kB / 296.6 MB, free: 2.453 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.441e-06/0.002803, allocations: 4 kB / 296.6 MB, free: 2.449 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.297e-05/0.002816, allocations: 17.7 kB / 296.6 MB, free: 2.426 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.92e-05/0.002835, allocations: 17.72 kB / 296.6 MB, free: 2.402 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.143e-06/0.002836, allocations: 0 / 296.6 MB, free: 2.402 MB / 282.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 3.616e-05/0.002873, allocations: 53.84 kB / 296.7 MB, free: 2.344 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.027e-06/0.002882, allocations: 6.812 kB / 296.7 MB, free: 2.34 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.625e-06/0.002884, allocations: 4.031 kB / 296.7 MB, free: 2.336 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.915e-06/0.002892, allocations: 4.031 kB / 296.7 MB, free: 2.332 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.85e-05/0.002911, allocations: 11.92 kB / 296.7 MB, free: 2.32 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.354e-06/0.002913, allocations: 4 kB / 296.7 MB, free: 2.316 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.277e-05/0.002926, allocations: 0 / 296.7 MB, free: 2.316 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.683e-06/0.002927, allocations: 0 / 296.7 MB, free: 2.316 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.252e-05/0.00297, allocations: 117.7 kB / 296.8 MB, free: 2.191 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.049e-06/0.002975, allocations: 3.938 kB / 296.8 MB, free: 2.188 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.526e-05/0.00299, allocations: 15.98 kB / 296.8 MB, free: 2.168 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.313e-06/0.002992, allocations: 0 / 296.8 MB, free: 2.168 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.092e-06/0.002993, allocations: 4 kB / 296.8 MB, free: 2.164 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.964e-06/0.002995, allocations: 0 / 296.8 MB, free: 2.164 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00013/0.003125, allocations: 198.8 kB / 297 MB, free: 1.945 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.003126, allocations: 3.938 kB / 297 MB, free: 1.941 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.438e-05/0.00314, allocations: 7.938 kB / 297 MB, free: 1.934 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.769e-06/0.003145, allocations: 4 kB / 297 MB, free: 1.93 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.31e-07/0.003146, allocations: 0 / 297 MB, free: 1.93 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.14e-06/0.003151, allocations: 0 / 297 MB, free: 1.93 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.52e-07/0.003152, allocations: 0 / 297 MB, free: 1.93 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.003154, allocations: 4 kB / 297.1 MB, free: 1.926 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.887e-05/0.003223, allocations: 147.5 kB / 297.2 MB, free: 1.766 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.031e-06/0.003229, allocations: 0 / 297.2 MB, free: 1.766 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.586e-05/0.003255, allocations: 8 kB / 297.2 MB, free: 1.758 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.222e-05/0.003267, allocations: 0 / 297.2 MB, free: 1.758 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.846e-06/0.00327, allocations: 3.984 kB / 297.2 MB, free: 1.754 MB / 282.7 MB Notification: Performance of sorting global known variables: time 8.797e-06/0.003279, allocations: 8.859 kB / 297.2 MB, free: 1.742 MB / 282.7 MB Notification: Performance of sort global known variables: time 4e-08/0.003279, allocations: 0 / 297.2 MB, free: 1.742 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001053/0.003384, allocations: 12 kB / 297.2 MB, free: 1.73 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 4.958e-05/0.003434, allocations: 72.36 kB / 297.3 MB, free: 1.652 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 4.116e-05/0.003475, allocations: 24.78 kB / 297.3 MB, free: 1.625 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.003477, allocations: 4.125 kB / 297.3 MB, free: 1.621 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 1.194e-05/0.003489, allocations: 12.86 kB / 297.3 MB, free: 1.605 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001185/0.003607, allocations: 49.61 kB / 297.4 MB, free: 1.551 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001654/0.003773, allocations: 145.1 kB / 297.5 MB, free: 1.383 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.992e-05/0.003803, allocations: 56.11 kB / 297.6 MB, free: 1.309 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 1.199e-05/0.003815, allocations: 3.984 kB / 297.6 MB, free: 1.305 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.094e-05/0.003846, allocations: 51.38 kB / 297.6 MB, free: 1.254 MB / 282.7 MB Notification: Performance of SimCode: time 4e-07/0.003846, allocations: 4 kB / 297.6 MB, free: 1.25 MB / 282.7 MB Notification: Performance of Templates: time 0.001533/0.005379, allocations: 0.5541 MB / 298.2 MB, free: 0.7109 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.585230397991836]