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.001195/0.001195, allocations: 87.62 kB / 21.44 MB, free: 3.129 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.005926/0.005926, allocations: 160 kB / 24.7 MB, free: 8.895 MB / 18.57 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 0.87/0.87, allocations: 177.1 MB / 205 MB, free: 5.727 MB / 186.7 MB " [Timeout remaining time 179] 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.2487/0.2487, allocations: 34.25 MB / 295.7 MB, free: 0.6992 MB / 266.7 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 1.753e-06/1.753e-06, allocations: 0 / 443.4 MB, free: 1.168 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.426e-05/2.601e-05, allocations: 4.812 kB / 443.4 MB, free: 1.164 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.001377/0.001403, allocations: 0.8182 MB / 444.2 MB, free: 352 kB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002037/0.001607, allocations: 47.88 kB / 444.3 MB, free: 304 kB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.346e-05/0.00167, allocations: 3.938 kB / 444.3 MB, free: 300 kB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001152/0.001785, allocations: 7.875 kB / 444.3 MB, free: 292 kB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 1.35e-05/0.001799, allocations: 0 / 444.3 MB, free: 292 kB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001072/0.001906, allocations: 19.97 kB / 444.3 MB, free: 272 kB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 9.713e-05/0.002003, allocations: 47.84 kB / 444.4 MB, free: 224 kB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001036/0.002107, allocations: 8 kB / 444.4 MB, free: 216 kB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.111e-05/0.002148, allocations: 15.92 kB / 444.4 MB, free: 200 kB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.512e-05/0.002193, allocations: 15.97 kB / 444.4 MB, free: 184 kB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 2.751e-05/0.002221, allocations: 4 kB / 444.4 MB, free: 180 kB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.797e-06/0.002229, allocations: 4 kB / 444.4 MB, free: 176 kB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 1.831e-05/0.002248, allocations: 3.938 kB / 444.4 MB, free: 172 kB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 2.431e-05/0.002272, allocations: 11.98 kB / 444.4 MB, free: 160 kB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001052/0.002377, allocations: 35.83 kB / 444.5 MB, free: 124 kB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.315e-06/0.00238, allocations: 0 / 444.5 MB, free: 124 kB / 410.7 MB Notification: Performance of FrontEnd: time 1.202e-06/0.002381, allocations: 4 kB / 444.5 MB, free: 120 kB / 410.7 MB Notification: Performance of Transformations before backend: time 3.627e-06/0.002384, allocations: 0 / 444.5 MB, free: 120 kB / 410.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.1792/0.1816, allocations: 281.7 kB / 444.7 MB, free: 44.49 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.627e-05/0.1816, allocations: 10.66 kB / 444.8 MB, free: 44.49 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.318e-05/0.1817, allocations: 5.031 kB / 444.8 MB, free: 44.49 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002283/0.1819, allocations: 120.4 kB / 444.9 MB, free: 44.36 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.989e-06/0.1819, allocations: 4.375 kB / 444.9 MB, free: 44.36 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.204e-05/0.1819, allocations: 4.469 kB / 444.9 MB, free: 44.36 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001002/0.182, allocations: 50.62 kB / 444.9 MB, free: 44.33 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.476e-06/0.182, allocations: 2.938 kB / 444.9 MB, free: 44.33 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.031e-05/0.182, allocations: 3.125 kB / 444.9 MB, free: 44.33 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.698e-06/0.182, allocations: 384 / 444.9 MB, free: 44.33 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.57e-05/0.1821, allocations: 29.56 kB / 445 MB, free: 44.32 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003934/0.1825, allocations: 221.7 kB / 445.2 MB, free: 44.12 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.172e-05/0.1825, allocations: 28.92 kB / 445.2 MB, free: 44.1 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.431e-05/0.1826, allocations: 12.83 kB / 445.2 MB, free: 44.09 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.537e-06/0.1826, allocations: 0 / 445.2 MB, free: 44.09 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.938e-05/0.1826, allocations: 51.77 kB / 445.3 MB, free: 44.04 MB / 410.7 MB Notification: Performance of pre-optimization done (n=3): time 8.11e-07/0.1826, allocations: 0 / 445.3 MB, free: 44.04 MB / 410.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001351/0.1828, allocations: 48.28 kB / 445.3 MB, free: 44.01 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.517e-05/0.1828, allocations: 54.97 kB / 445.4 MB, free: 43.95 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.764e-05/0.1828, allocations: 115.6 kB / 445.5 MB, free: 43.85 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 7.134e-06/0.1828, allocations: 30.59 kB / 445.5 MB, free: 43.82 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.927e-05/0.1829, allocations: 87.7 kB / 445.6 MB, free: 43.73 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.236e-05/0.1829, allocations: 10.38 kB / 445.6 MB, free: 43.73 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.361e-05/0.1829, allocations: 21.61 kB / 445.6 MB, free: 43.71 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.002e-05/0.1829, allocations: 312.8 kB / 445.9 MB, free: 43.4 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.371e-05/0.183, allocations: 7.938 kB / 445.9 MB, free: 43.4 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.939e-05/0.183, allocations: 23.55 kB / 446 MB, free: 43.38 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.023e-05/0.183, allocations: 24.41 kB / 446 MB, free: 43.37 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.824e-06/0.183, allocations: 0 / 446 MB, free: 43.37 MB / 410.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 5.341e-05/0.1831, allocations: 60.12 kB / 446.1 MB, free: 43.33 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.366e-05/0.1831, allocations: 2.625 kB / 446.1 MB, free: 43.33 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.583e-06/0.1831, allocations: 9.562 kB / 446.1 MB, free: 43.33 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.398e-05/0.1831, allocations: 0 / 446.1 MB, free: 43.33 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.984e-05/0.1831, allocations: 3.906 kB / 446.1 MB, free: 43.33 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.27e-06/0.1831, allocations: 1.906 kB / 446.1 MB, free: 43.33 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.101e-05/0.1832, allocations: 2.969 kB / 446.1 MB, free: 43.33 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.499e-06/0.1832, allocations: 0.8125 kB / 446.1 MB, free: 43.33 MB / 410.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.553e-05/0.1832, allocations: 112.4 kB / 446.2 MB, free: 43.21 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.229e-06/0.1832, allocations: 14.58 kB / 446.2 MB, free: 43.21 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.264e-05/0.1832, allocations: 16.56 kB / 446.2 MB, free: 43.2 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.1832, allocations: 0 / 446.2 MB, free: 43.2 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.529e-06/0.1832, allocations: 2.625 kB / 446.2 MB, free: 43.2 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.284e-06/0.1832, allocations: 0 / 446.2 MB, free: 43.2 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000167/0.1834, allocations: 245.1 kB / 446.5 MB, free: 42.97 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.1834, allocations: 0 / 446.5 MB, free: 42.97 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.53e-05/0.1834, allocations: 4.625 kB / 446.5 MB, free: 42.97 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.1834, allocations: 0 / 446.5 MB, free: 42.97 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.803e-06/0.1834, allocations: 0.5625 kB / 446.5 MB, free: 42.97 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.924e-06/0.1834, allocations: 6.781 kB / 446.5 MB, free: 42.97 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.1834, allocations: 3.938 kB / 446.5 MB, free: 42.96 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.711e-05/0.1835, allocations: 149 kB / 446.6 MB, free: 42.83 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.967e-06/0.1835, allocations: 12.58 kB / 446.6 MB, free: 42.83 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.144e-05/0.1836, allocations: 0 / 446.6 MB, free: 42.83 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.935e-05/0.1836, allocations: 6.234 kB / 446.6 MB, free: 42.83 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.852e-05/0.1836, allocations: 0 / 446.6 MB, free: 42.83 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.412e-06/0.1836, allocations: 5.5 kB / 446.6 MB, free: 42.83 MB / 410.7 MB Notification: Performance of sorting global known variables: time 1.809e-05/0.1836, allocations: 86.98 kB / 446.7 MB, free: 42.75 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1836, allocations: 3.938 kB / 446.7 MB, free: 42.75 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001356/0.1838, allocations: 2.906 kB / 446.7 MB, free: 42.75 MB / 410.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.405e-05/0.1838, allocations: 90.69 kB / 446.8 MB, free: 42.67 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 7.733e-05/0.1839, allocations: 22.55 kB / 446.8 MB, free: 42.66 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.1839, allocations: 0 / 446.8 MB, free: 42.66 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.314e-05/0.1839, allocations: 8.781 kB / 446.9 MB, free: 42.66 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002054/0.1841, allocations: 16.78 kB / 446.9 MB, free: 42.66 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002646/0.1844, allocations: 154.5 kB / 447 MB, free: 42.52 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.629e-05/0.1844, allocations: 76.5 kB / 447.1 MB, free: 42.45 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.714e-05/0.1845, allocations: 10.88 kB / 447.1 MB, free: 42.45 MB / 410.7 MB Notification: Performance of SimCode: time 6.52e-07/0.1845, allocations: 2.938 kB / 447.1 MB, free: 42.45 MB / 410.7 MB Notification: Performance of Templates: time 0.001582/0.1861, allocations: 0.7141 MB / 447.8 MB, free: 42.43 MB / 410.7 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: 4.315486225299537]