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.001935/0.001935, allocations: 85.44 kB / 20.68 MB, free: 1.035 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.001957/0.001957, allocations: 163.6 kB / 23.96 MB, free: 4.164 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.509/1.509, allocations: 177.1 MB / 204.3 MB, free: 9.207 MB / 190.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.213/0.213, allocations: 34.27 MB / 294.9 MB, free: 14.59 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 1.643e-06/1.643e-06, allocations: 0 / 442.6 MB, free: 5.453 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.735e-05/2.899e-05, allocations: 6.219 kB / 442.7 MB, free: 5.445 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.002105/0.002134, allocations: 0.8215 MB / 443.5 MB, free: 4.629 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002392/0.002373, allocations: 51.75 kB / 443.5 MB, free: 4.578 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.289e-05/0.002446, allocations: 0 / 443.5 MB, free: 4.578 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001364/0.002583, allocations: 7.938 kB / 443.5 MB, free: 4.57 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 2.398e-05/0.002607, allocations: 7.875 kB / 443.5 MB, free: 4.562 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001381/0.002745, allocations: 15.97 kB / 443.6 MB, free: 4.547 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001304/0.002875, allocations: 39.91 kB / 443.6 MB, free: 4.508 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000115/0.00299, allocations: 12 kB / 443.6 MB, free: 4.496 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.47e-05/0.003045, allocations: 23.92 kB / 443.6 MB, free: 4.473 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.456e-05/0.003089, allocations: 7.969 kB / 443.6 MB, free: 4.465 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.183e-05/0.003121, allocations: 4 kB / 443.6 MB, free: 4.461 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.46e-05/0.003136, allocations: 4 kB / 443.6 MB, free: 4.457 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 3.808e-05/0.003174, allocations: 4 kB / 443.7 MB, free: 4.453 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 3.921e-05/0.003213, allocations: 11.94 kB / 443.7 MB, free: 4.441 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001472/0.00336, allocations: 35.88 kB / 443.7 MB, free: 4.406 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.003364, allocations: 0 / 443.7 MB, free: 4.406 MB / 366.1 MB Notification: Performance of FrontEnd: time 6.41e-07/0.003364, allocations: 0 / 443.7 MB, free: 4.406 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.318e-06/0.003368, allocations: 0 / 443.7 MB, free: 4.406 MB / 366.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.0005426/0.003911, allocations: 291 kB / 444 MB, free: 4.086 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.133e-05/0.003952, allocations: 8.031 kB / 444 MB, free: 4.078 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.727e-05/0.00399, allocations: 4.938 kB / 444 MB, free: 4.074 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002197/0.004209, allocations: 121.7 kB / 444.1 MB, free: 3.93 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.123e-06/0.004217, allocations: 4.375 kB / 444.1 MB, free: 3.926 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.976e-05/0.004246, allocations: 8.375 kB / 444.1 MB, free: 3.918 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001321/0.004378, allocations: 46.23 kB / 444.2 MB, free: 3.867 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.679e-06/0.004388, allocations: 4.188 kB / 444.2 MB, free: 3.863 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.186e-05/0.0044, allocations: 4.375 kB / 444.2 MB, free: 3.859 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.218e-06/0.004404, allocations: 4.375 kB / 444.2 MB, free: 3.855 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.966e-05/0.004454, allocations: 19.92 kB / 444.2 MB, free: 3.836 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005091/0.004963, allocations: 224.5 kB / 444.4 MB, free: 3.586 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.901e-05/0.005032, allocations: 18.58 kB / 444.4 MB, free: 3.559 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.876e-05/0.005061, allocations: 20.84 kB / 444.5 MB, free: 3.535 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.139e-05/0.005072, allocations: 3.984 kB / 444.5 MB, free: 3.531 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.678e-05/0.005169, allocations: 55.3 kB / 444.5 MB, free: 3.465 MB / 366.1 MB Notification: Performance of pre-optimization done (n=3): time 1.252e-06/0.00517, allocations: 0 / 444.5 MB, free: 3.465 MB / 366.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001782/0.005348, allocations: 45.69 kB / 444.6 MB, free: 3.414 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.232e-05/0.005401, allocations: 59.39 kB / 444.6 MB, free: 3.344 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001765/0.005577, allocations: 105.8 kB / 444.7 MB, free: 3.23 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.293e-05/0.0056, allocations: 29.69 kB / 444.8 MB, free: 3.195 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.396e-05/0.005674, allocations: 92.08 kB / 444.8 MB, free: 3.102 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.051e-05/0.005694, allocations: 11.91 kB / 444.9 MB, free: 3.09 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.419e-05/0.005729, allocations: 13.72 kB / 444.9 MB, free: 3.07 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002888/0.006017, allocations: 322.8 kB / 445.2 MB, free: 2.746 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.841e-05/0.006036, allocations: 7.938 kB / 445.2 MB, free: 2.738 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.842e-05/0.006064, allocations: 21.66 kB / 445.2 MB, free: 2.711 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.149e-05/0.006116, allocations: 25.7 kB / 445.2 MB, free: 2.68 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.006117, allocations: 4 kB / 445.2 MB, free: 2.676 MB / 366.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 9.024e-05/0.006208, allocations: 57.58 kB / 445.3 MB, free: 2.613 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.328e-05/0.006221, allocations: 4 kB / 445.3 MB, free: 2.609 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.376e-06/0.006229, allocations: 7.984 kB / 445.3 MB, free: 2.602 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.146e-05/0.006251, allocations: 0 / 445.3 MB, free: 2.602 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.48e-05/0.006285, allocations: 4 kB / 445.3 MB, free: 2.598 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.651e-06/0.006291, allocations: 0 / 445.3 MB, free: 2.598 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.913e-05/0.00632, allocations: 4 kB / 445.3 MB, free: 2.594 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.993e-06/0.006327, allocations: 4 kB / 445.3 MB, free: 2.59 MB / 366.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 0.0001064/0.006434, allocations: 110.5 kB / 445.4 MB, free: 2.473 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.474e-05/0.006448, allocations: 15.92 kB / 445.4 MB, free: 2.457 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.765e-05/0.006476, allocations: 4 kB / 445.4 MB, free: 2.445 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.779e-06/0.006481, allocations: 3.984 kB / 445.5 MB, free: 2.441 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/0.006487, allocations: 4 kB / 445.5 MB, free: 2.438 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.648e-06/0.006491, allocations: 7.938 kB / 445.5 MB, free: 2.43 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003126/0.006804, allocations: 238.2 kB / 445.7 MB, free: 2.16 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.006805, allocations: 0 / 445.7 MB, free: 2.16 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.172e-05/0.006857, allocations: 7.984 kB / 445.7 MB, free: 2.152 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.006858, allocations: 0 / 445.7 MB, free: 2.152 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.223e-06/0.006865, allocations: 0 / 445.7 MB, free: 2.152 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.293e-06/0.006867, allocations: 4 kB / 445.7 MB, free: 2.148 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.006868, allocations: 0 / 445.7 MB, free: 2.148 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002261/0.007094, allocations: 151.8 kB / 445.9 MB, free: 1.984 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.34e-05/0.007107, allocations: 12.02 kB / 445.9 MB, free: 1.973 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.195e-05/0.007119, allocations: 0 / 445.9 MB, free: 1.973 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.441e-05/0.007173, allocations: 0 / 445.9 MB, free: 1.973 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.259e-05/0.007216, allocations: 7.984 kB / 445.9 MB, free: 1.965 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.067e-06/0.00722, allocations: 0 / 445.9 MB, free: 1.965 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.631e-05/0.007276, allocations: 87.66 kB / 446 MB, free: 1.879 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.007276, allocations: 7.938 kB / 446 MB, free: 1.871 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002222/0.007499, allocations: 4 kB / 446 MB, free: 1.867 MB / 366.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 0.0001492/0.007648, allocations: 103.3 kB / 446.1 MB, free: 1.758 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 8.606e-05/0.007734, allocations: 11.94 kB / 446.1 MB, free: 1.746 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.007736, allocations: 0 / 446.1 MB, free: 1.746 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 2.562e-05/0.007761, allocations: 19.92 kB / 446.1 MB, free: 1.727 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002706/0.008032, allocations: 14.58 kB / 446.1 MB, free: 1.715 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003392/0.008371, allocations: 136.7 kB / 446.3 MB, free: 1.555 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.858e-05/0.00844, allocations: 67.34 kB / 446.3 MB, free: 1.469 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 1.773e-05/0.008458, allocations: 0 / 446.3 MB, free: 1.469 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.827e-05/0.008486, allocations: 16.56 kB / 446.3 MB, free: 1.453 MB / 366.1 MB Notification: Performance of SimCode: time 3.21e-07/0.008486, allocations: 0 / 446.3 MB, free: 1.453 MB / 366.1 MB Notification: Performance of Templates: time 0.003353/0.01184, allocations: 499.8 kB / 446.8 MB, free: 0.9648 MB / 366.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: 4.980989173054695]