Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001517/0.001517, allocations: 107.2 kB / 20.44 MB, free: 1.207 MB / 14.72 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.00174/0.00174, allocations: 212.5 kB / 23.73 MB, free: 4.41 MB / 14.72 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.559/1.559, allocations: 230.6 MB / 257.5 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2512/0.2512, allocations: 46.96 MB / 360.9 MB, free: 4.031 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.1.0_ModelicaTest.Blocks.SelfResettingIntegrator") translateModel(ModelicaTest.Blocks.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5010,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00252/0.00252, allocations: 67.91 kB / 0.4966 GB, free: 7.223 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3802/0.3827, allocations: 66.03 MB / 0.5611 GB, free: 4.168 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.002174/0.3849, allocations: 0.8124 MB / 0.5619 GB, free: 3.355 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002339/0.3851, allocations: 43.83 kB / 0.5619 GB, free: 3.312 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.239e-05/0.3852, allocations: 3.938 kB / 0.5619 GB, free: 3.309 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001156/0.3853, allocations: 7.938 kB / 0.5619 GB, free: 3.301 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 1.8e-05/0.3853, allocations: 3.938 kB / 0.5619 GB, free: 3.297 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001161/0.3854, allocations: 23.97 kB / 0.5619 GB, free: 3.273 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001242/0.3856, allocations: 39.92 kB / 0.562 GB, free: 3.234 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001156/0.3857, allocations: 19.58 kB / 0.562 GB, free: 3.219 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.312e-05/0.3857, allocations: 8 kB / 0.562 GB, free: 3.211 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.86e-05/0.3858, allocations: 19.84 kB / 0.562 GB, free: 3.191 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.026e-05/0.3858, allocations: 4 kB / 0.562 GB, free: 3.188 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.284e-05/0.3858, allocations: 4 kB / 0.562 GB, free: 3.184 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.952e-05/0.3858, allocations: 4 kB / 0.562 GB, free: 3.18 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.081e-05/0.3859, allocations: 11.94 kB / 0.562 GB, free: 3.168 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001123/0.386, allocations: 39.81 kB / 0.5621 GB, free: 3.129 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.386, allocations: 0 / 0.5621 GB, free: 3.129 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.386, allocations: 4 kB / 0.5621 GB, free: 3.125 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.32e-06/0.386, allocations: 0 / 0.5621 GB, free: 3.125 MB / 398.1 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.000471/0.3864, allocations: 289.7 kB / 0.5624 GB, free: 2.809 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.41e-05/0.3865, allocations: 8.031 kB / 0.5624 GB, free: 2.801 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.37e-05/0.3865, allocations: 8.891 kB / 0.5624 GB, free: 2.793 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002048/0.3867, allocations: 118.5 kB / 0.5625 GB, free: 2.652 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.261e-05/0.3867, allocations: 4.375 kB / 0.5625 GB, free: 2.648 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.213e-05/0.3868, allocations: 4.375 kB / 0.5625 GB, free: 2.645 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001164/0.3869, allocations: 46.25 kB / 0.5625 GB, free: 2.594 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.596e-06/0.3869, allocations: 192 / 0.5625 GB, free: 2.594 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.12e-05/0.3869, allocations: 11.94 kB / 0.5626 GB, free: 2.582 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.679e-06/0.3869, allocations: 0 / 0.5626 GB, free: 2.582 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.751e-05/0.387, allocations: 15.98 kB / 0.5626 GB, free: 2.566 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004891/0.3874, allocations: 232.4 kB / 0.5628 GB, free: 2.309 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.697e-05/0.3875, allocations: 26.52 kB / 0.5628 GB, free: 2.273 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.033e-05/0.3875, allocations: 4.859 kB / 0.5628 GB, free: 2.266 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.833e-06/0.3875, allocations: 4.062 kB / 0.5628 GB, free: 2.262 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.654e-05/0.3876, allocations: 55.34 kB / 0.5629 GB, free: 2.195 MB / 398.1 MB Notification: Performance of pre-optimization done (n=3): time 3.236e-06/0.3876, allocations: 3.984 kB / 0.5629 GB, free: 2.191 MB / 398.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001698/0.3878, allocations: 57.64 kB / 0.5629 GB, free: 2.129 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.006e-05/0.3878, allocations: 51.41 kB / 0.563 GB, free: 2.066 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.692e-05/0.3879, allocations: 105.8 kB / 0.5631 GB, free: 1.953 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.552e-05/0.388, allocations: 25.7 kB / 0.5631 GB, free: 1.922 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.621e-05/0.388, allocations: 100 kB / 0.5632 GB, free: 1.82 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.362e-05/0.388, allocations: 3.953 kB / 0.5632 GB, free: 1.816 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.724e-05/0.3881, allocations: 17.72 kB / 0.5632 GB, free: 1.793 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001517/0.3882, allocations: 322.8 kB / 0.5635 GB, free: 1.469 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.085e-05/0.3882, allocations: 7.984 kB / 0.5635 GB, free: 1.461 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.88e-05/0.3883, allocations: 17.72 kB / 0.5636 GB, free: 1.438 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.209e-05/0.3883, allocations: 29.66 kB / 0.5636 GB, free: 1.402 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.3883, allocations: 0 / 0.5636 GB, free: 1.402 MB / 398.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.482e-05/0.3884, allocations: 53.62 kB / 0.5636 GB, free: 1.344 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.214e-05/0.3884, allocations: 4 kB / 0.5636 GB, free: 1.34 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.849e-06/0.3884, allocations: 0 / 0.5636 GB, free: 1.34 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.279e-05/0.3884, allocations: 4 kB / 0.5636 GB, free: 1.336 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.519e-05/0.3885, allocations: 8 kB / 0.5637 GB, free: 1.328 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.756e-06/0.3885, allocations: 3.984 kB / 0.5637 GB, free: 1.324 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.522e-05/0.3885, allocations: 0 / 0.5637 GB, free: 1.324 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.272e-06/0.3885, allocations: 4 kB / 0.5637 GB, free: 1.32 MB / 398.1 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.11e-05/0.3886, allocations: 113.8 kB / 0.5638 GB, free: 1.199 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.423e-05/0.3886, allocations: 11.95 kB / 0.5638 GB, free: 1.188 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.565e-05/0.3887, allocations: 4 kB / 0.5638 GB, free: 1.176 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.333e-06/0.3887, allocations: 0 / 0.5638 GB, free: 1.176 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.286e-06/0.3887, allocations: 0 / 0.5638 GB, free: 1.176 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.335e-06/0.3887, allocations: 3.938 kB / 0.5638 GB, free: 1.172 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002767/0.3889, allocations: 250.1 kB / 0.564 GB, free: 0.8906 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.327e-06/0.3889, allocations: 4 kB / 0.564 GB, free: 0.8867 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.199e-05/0.389, allocations: 4 kB / 0.564 GB, free: 0.8828 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.389, allocations: 0 / 0.564 GB, free: 0.8828 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.334e-06/0.389, allocations: 4 kB / 0.564 GB, free: 0.8789 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.389, allocations: 3.938 kB / 0.564 GB, free: 0.875 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.389, allocations: 0 / 0.564 GB, free: 0.875 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001682/0.3891, allocations: 159.4 kB / 0.5642 GB, free: 0.7031 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.947e-06/0.3892, allocations: 4.453 kB / 0.5642 GB, free: 0.6992 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.33e-05/0.3892, allocations: 0 / 0.5642 GB, free: 0.6992 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.453e-05/0.3892, allocations: 0 / 0.5642 GB, free: 0.6992 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.316e-05/0.3893, allocations: 4 kB / 0.5642 GB, free: 0.6953 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.775e-06/0.3893, allocations: 7.922 kB / 0.5642 GB, free: 0.6875 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.095e-05/0.3893, allocations: 83.59 kB / 0.5643 GB, free: 0.6055 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3893, allocations: 64 / 0.5643 GB, free: 0.6055 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002247/0.3895, allocations: 15.94 kB / 0.5643 GB, free: 0.5898 MB / 398.1 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 9.416e-05/0.3896, allocations: 99.23 kB / 0.5644 GB, free: 496 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.127e-05/0.3897, allocations: 19.92 kB / 0.5644 GB, free: 476 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.3897, allocations: 0 / 0.5644 GB, free: 476 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 1.989e-05/0.3897, allocations: 8 kB / 0.5644 GB, free: 468 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002654/0.39, allocations: 18.42 kB / 0.5644 GB, free: 452 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003046/0.3903, allocations: 125.6 kB / 0.5646 GB, free: 300 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.062e-05/0.3904, allocations: 75.39 kB / 0.5646 GB, free: 204 kB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.65e-05/0.3904, allocations: 0 / 0.5646 GB, free: 204 kB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.412e-05/0.3904, allocations: 11.44 kB / 0.5646 GB, free: 192 kB / 398.1 MB Notification: Performance of SimCode: time 3.41e-07/0.3904, allocations: 0 / 0.5646 GB, free: 192 kB / 398.1 MB Notification: Performance of Templates: time 0.003024/0.3935, allocations: 0.4946 MB / 0.5651 GB, free: 15.7 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator.sim & ./ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.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: 5.260184412822127]