Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.002216/0.002216, allocations: 91.61 kB / 20.96 MB, free: 3.465 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.00254/0.00254, allocations: 165.3 kB / 24.27 MB, free: 152 kB / 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 1.61/1.61, allocations: 177.1 MB / 204.6 MB, free: 5.633 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3556/0.3556, allocations: 32.8 MB / 293.9 MB, free: 1.207 MB / 266.7 MB " [Timeout remaining time 179] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.0.0_ModelicaTest.Blocks.SelfResettingIntegrator") translateModel(ModelicaTest.Blocks.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5010,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.483e-06/1.483e-06, allocations: 0 / 375.2 MB, free: 5.035 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.004e-05/3.152e-05, allocations: 8.641 kB / 375.2 MB, free: 5.027 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.002142/0.002174, allocations: 0.8111 MB / 376.1 MB, free: 4.215 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.000244/0.002418, allocations: 47.81 kB / 376.1 MB, free: 4.168 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.191e-05/0.00248, allocations: 0 / 376.1 MB, free: 4.168 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001164/0.002596, allocations: 3.938 kB / 376.1 MB, free: 4.164 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 2.004e-05/0.002616, allocations: 11.88 kB / 376.1 MB, free: 4.152 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000117/0.002733, allocations: 15.98 kB / 376.1 MB, free: 4.137 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001073/0.002841, allocations: 35.91 kB / 376.2 MB, free: 4.102 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.577e-05/0.002926, allocations: 8 kB / 376.2 MB, free: 4.094 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.805e-05/0.002984, allocations: 27.91 kB / 376.2 MB, free: 4.066 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.674e-05/0.003021, allocations: 11.98 kB / 376.2 MB, free: 4.055 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.512e-05/0.003036, allocations: 0 / 376.2 MB, free: 4.055 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.084e-05/0.003047, allocations: 4 kB / 376.2 MB, free: 4.051 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 1.863e-05/0.003066, allocations: 7.938 kB / 376.2 MB, free: 4.043 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.472e-05/0.00309, allocations: 11.98 kB / 376.2 MB, free: 4.031 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001088/0.003199, allocations: 39.83 kB / 376.3 MB, free: 3.992 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.675e-06/0.003202, allocations: 0 / 376.3 MB, free: 3.992 MB / 346.7 MB Notification: Performance of FrontEnd: time 6.51e-07/0.003203, allocations: 0 / 376.3 MB, free: 3.992 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.088e-06/0.003207, allocations: 0 / 376.3 MB, free: 3.992 MB / 346.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.0006786/0.003885, allocations: 383.9 kB / 376.7 MB, free: 3.574 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.669e-05/0.003922, allocations: 16.03 kB / 376.7 MB, free: 3.559 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.954e-05/0.003971, allocations: 16.88 kB / 376.7 MB, free: 3.543 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000184/0.004155, allocations: 124.5 kB / 376.8 MB, free: 3.395 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.168e-05/0.004167, allocations: 4.375 kB / 376.8 MB, free: 3.391 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.916e-05/0.004186, allocations: 8.375 kB / 376.8 MB, free: 3.383 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001153/0.004302, allocations: 50.25 kB / 376.9 MB, free: 3.328 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.754e-06/0.004309, allocations: 192 / 376.9 MB, free: 3.328 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.416e-06/0.004318, allocations: 384 / 376.9 MB, free: 3.328 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.342e-06/0.004324, allocations: 4.375 kB / 376.9 MB, free: 3.324 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.206e-05/0.004376, allocations: 19.88 kB / 376.9 MB, free: 3.305 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005313/0.004908, allocations: 287.7 kB / 377.2 MB, free: 2.988 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.958e-05/0.004987, allocations: 35.05 kB / 377.2 MB, free: 2.941 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.745e-05/0.005015, allocations: 19.56 kB / 377.2 MB, free: 2.918 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.457e-06/0.005024, allocations: 4.062 kB / 377.2 MB, free: 2.914 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.224e-05/0.005116, allocations: 53.06 kB / 377.3 MB, free: 2.848 MB / 346.7 MB Notification: Performance of pre-optimization done (n=3): time 9.82e-07/0.005117, allocations: 0 / 377.3 MB, free: 2.848 MB / 346.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001566/0.005274, allocations: 53.67 kB / 377.3 MB, free: 2.789 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.315e-05/0.005317, allocations: 51.41 kB / 377.4 MB, free: 2.727 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001426/0.00546, allocations: 177.9 kB / 377.6 MB, free: 2.535 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.151e-05/0.005491, allocations: 29.7 kB / 377.6 MB, free: 2.5 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.075e-05/0.005582, allocations: 138.8 kB / 377.7 MB, free: 2.359 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.534e-05/0.005597, allocations: 8.016 kB / 377.7 MB, free: 2.352 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.766e-05/0.005645, allocations: 31.3 kB / 377.8 MB, free: 2.312 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002559/0.005901, allocations: 0.4884 MB / 378.3 MB, free: 1.812 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.8e-05/0.005919, allocations: 4 kB / 378.3 MB, free: 1.809 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.62e-05/0.005955, allocations: 27.36 kB / 378.3 MB, free: 1.773 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.098e-05/0.006006, allocations: 27.38 kB / 378.3 MB, free: 1.738 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/0.00601, allocations: 4 kB / 378.3 MB, free: 1.734 MB / 346.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 9.891e-05/0.006109, allocations: 65.52 kB / 378.4 MB, free: 1.664 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.392e-05/0.006123, allocations: 8 kB / 378.4 MB, free: 1.656 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.079e-06/0.006128, allocations: 0 / 378.4 MB, free: 1.656 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.147e-05/0.00614, allocations: 0 / 378.4 MB, free: 1.656 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.616e-05/0.006176, allocations: 4 kB / 378.4 MB, free: 1.652 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.921e-06/0.006182, allocations: 0 / 378.4 MB, free: 1.652 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.878e-05/0.00621, allocations: 4 kB / 378.4 MB, free: 1.648 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.677e-06/0.006214, allocations: 0 / 378.4 MB, free: 1.648 MB / 346.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 0.0001254/0.00634, allocations: 168.5 kB / 378.6 MB, free: 1.473 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.17e-05/0.006351, allocations: 3.938 kB / 378.6 MB, free: 1.469 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.029e-05/0.006372, allocations: 8 kB / 378.6 MB, free: 1.461 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.084e-05/0.006382, allocations: 4.031 kB / 378.6 MB, free: 1.457 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.336e-06/0.006386, allocations: 0 / 378.6 MB, free: 1.457 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.765e-06/0.006388, allocations: 0 / 378.6 MB, free: 1.457 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003401/0.006729, allocations: 309.4 kB / 378.9 MB, free: 1.113 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.00673, allocations: 0 / 378.9 MB, free: 1.113 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.492e-05/0.006765, allocations: 7.938 kB / 378.9 MB, free: 1.105 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.006766, allocations: 0 / 378.9 MB, free: 1.105 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.314e-06/0.006774, allocations: 0 / 378.9 MB, free: 1.105 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.006775, allocations: 0 / 378.9 MB, free: 1.105 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.006775, allocations: 0 / 378.9 MB, free: 1.105 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003417/0.007117, allocations: 207.9 kB / 379.1 MB, free: 0.8828 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.187e-05/0.007129, allocations: 11.97 kB / 379.1 MB, free: 0.8711 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.7e-05/0.007146, allocations: 4 kB / 379.1 MB, free: 0.8672 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.129e-05/0.007197, allocations: 0 / 379.1 MB, free: 0.8672 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.242e-05/0.00723, allocations: 432 / 379.1 MB, free: 0.8672 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.664e-06/0.007237, allocations: 4 kB / 379.1 MB, free: 0.8633 MB / 346.7 MB Notification: Performance of sorting global known variables: time 9.585e-05/0.007333, allocations: 135.5 kB / 379.2 MB, free: 0.7305 MB / 346.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.007333, allocations: 0 / 379.2 MB, free: 0.7305 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002103/0.007544, allocations: 11.94 kB / 379.3 MB, free: 0.7188 MB / 346.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 0.0001056/0.007649, allocations: 95.12 kB / 379.3 MB, free: 0.6133 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 9.863e-05/0.007748, allocations: 35.66 kB / 379.4 MB, free: 0.5742 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/0.007752, allocations: 4 kB / 379.4 MB, free: 0.5703 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 3.376e-05/0.007786, allocations: 15.69 kB / 379.4 MB, free: 0.5508 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002521/0.008038, allocations: 17.95 kB / 379.4 MB, free: 0.5352 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000362/0.0084, allocations: 142.1 kB / 379.6 MB, free: 376 kB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.01e-05/0.00848, allocations: 71.33 kB / 379.6 MB, free: 284 kB / 346.7 MB Notification: Performance of simCode: alias equations: time 1.897e-05/0.008499, allocations: 3.906 kB / 379.6 MB, free: 280 kB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.081e-05/0.00853, allocations: 12.5 kB / 379.6 MB, free: 264 kB / 346.7 MB Notification: Performance of SimCode: time 4.41e-07/0.00853, allocations: 64 / 379.6 MB, free: 264 kB / 346.7 MB Notification: Performance of Templates: time 0.00318/0.01171, allocations: 0.502 MB / 380.1 MB, free: 15.75 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/SelfResettingIntegrator/SelfResettingIntegrator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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.770196256926283]