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.001107/0.001107, allocations: 83.58 kB / 21.19 MB, free: 3.383 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.001166/0.001166, allocations: 161 kB / 24.56 MB, free: 16 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.046/1.046, allocations: 177.1 MB / 205 MB, free: 5.629 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.2691/0.2691, allocations: 34.27 MB / 295.7 MB, free: 0.7031 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.633e-06/1.633e-06, allocations: 0 / 378 MB, free: 2.645 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.846e-05/3.01e-05, allocations: 6.312 kB / 378 MB, free: 2.637 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.001708/0.001738, allocations: 0.8182 MB / 378.8 MB, free: 1.816 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.000369/0.002107, allocations: 43.83 kB / 378.9 MB, free: 1.773 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.849e-05/0.002176, allocations: 7.938 kB / 378.9 MB, free: 1.766 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000121/0.002297, allocations: 11.92 kB / 378.9 MB, free: 1.754 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 1.542e-05/0.002312, allocations: 0 / 378.9 MB, free: 1.754 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001182/0.00243, allocations: 15.98 kB / 378.9 MB, free: 1.738 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 9.984e-05/0.00253, allocations: 39.86 kB / 379 MB, free: 1.699 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001066/0.002637, allocations: 15.97 kB / 379 MB, free: 1.684 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.1e-05/0.002678, allocations: 15.92 kB / 379 MB, free: 1.668 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.368e-05/0.002721, allocations: 15.92 kB / 379 MB, free: 1.652 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.715e-05/0.002738, allocations: 4 kB / 379 MB, free: 1.648 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.438e-06/0.002748, allocations: 0 / 379 MB, free: 1.648 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 1.852e-05/0.002766, allocations: 4 kB / 379 MB, free: 1.645 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.908e-05/0.002795, allocations: 15.92 kB / 379 MB, free: 1.629 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001096/0.002905, allocations: 35.89 kB / 379.1 MB, free: 1.594 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.265e-06/0.002907, allocations: 0 / 379.1 MB, free: 1.594 MB / 346.7 MB Notification: Performance of FrontEnd: time 9.41e-07/0.002908, allocations: 0 / 379.1 MB, free: 1.594 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.198e-06/0.002912, allocations: 0 / 379.1 MB, free: 1.594 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.0003885/0.003301, allocations: 384.2 kB / 379.4 MB, free: 1.176 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.014e-05/0.003341, allocations: 8.031 kB / 379.5 MB, free: 1.168 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.028e-05/0.003381, allocations: 4.938 kB / 379.5 MB, free: 1.164 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001493/0.003531, allocations: 136.4 kB / 379.6 MB, free: 1.004 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.396e-06/0.003539, allocations: 4.312 kB / 379.6 MB, free: 1 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.286e-05/0.003562, allocations: 8.375 kB / 379.6 MB, free: 0.9922 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.582e-05/0.003658, allocations: 46.25 kB / 379.6 MB, free: 0.9414 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.342e-06/0.003664, allocations: 192 / 379.6 MB, free: 0.9414 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.012e-05/0.003674, allocations: 384 / 379.6 MB, free: 0.9414 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.526e-06/0.003683, allocations: 8.359 kB / 379.7 MB, free: 0.9336 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.88e-05/0.003711, allocations: 11.92 kB / 379.7 MB, free: 0.9219 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004224/0.004134, allocations: 283.7 kB / 379.9 MB, free: 0.6094 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.95e-05/0.004183, allocations: 27.06 kB / 380 MB, free: 0.5703 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.021e-05/0.004204, allocations: 19.69 kB / 380 MB, free: 0.5469 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.584e-06/0.004211, allocations: 4 kB / 380 MB, free: 0.543 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.145e-05/0.004283, allocations: 49.06 kB / 380 MB, free: 492 kB / 346.7 MB Notification: Performance of pre-optimization done (n=3): time 8.72e-07/0.004283, allocations: 4 kB / 380 MB, free: 488 kB / 346.7 MB Notification: Performance of matching and sorting (n=3): time 0.000128/0.004411, allocations: 49.62 kB / 380.1 MB, free: 432 kB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.797e-05/0.004439, allocations: 51.41 kB / 380.1 MB, free: 368 kB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.149e-05/0.004521, allocations: 173.9 kB / 380.3 MB, free: 176 kB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 9.878e-06/0.004531, allocations: 25.7 kB / 380.3 MB, free: 144 kB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.329e-05/0.004584, allocations: 138.9 kB / 380.5 MB, free: 0 / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.778e-05/0.004612, allocations: 8.141 kB / 380.5 MB, free: 15.99 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.79e-05/0.00464, allocations: 19.38 kB / 380.5 MB, free: 15.96 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001129/0.004753, allocations: 0.4884 MB / 381 MB, free: 15.46 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.293e-05/0.004766, allocations: 8 kB / 381 MB, free: 15.45 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.264e-05/0.004788, allocations: 19.38 kB / 381 MB, free: 15.43 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.609e-05/0.004824, allocations: 31.31 kB / 381 MB, free: 15.39 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.004826, allocations: 0 / 381 MB, free: 15.39 MB / 362.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 6.359e-05/0.00489, allocations: 57.33 kB / 381.1 MB, free: 15.33 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.567e-05/0.004906, allocations: 8 kB / 381.1 MB, free: 15.32 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.59e-06/0.004911, allocations: 0 / 381.1 MB, free: 15.32 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.928e-05/0.004931, allocations: 0 / 381.1 MB, free: 15.32 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.625e-05/0.004967, allocations: 4 kB / 381.1 MB, free: 15.32 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.851e-06/0.004973, allocations: 8.016 kB / 381.1 MB, free: 15.31 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.929e-05/0.004992, allocations: 4 kB / 381.1 MB, free: 15.3 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.887e-06/0.004996, allocations: 0 / 381.1 MB, free: 15.3 MB / 362.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 7.637e-05/0.005072, allocations: 160.5 kB / 381.3 MB, free: 15.14 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.354e-06/0.00508, allocations: 4 kB / 381.3 MB, free: 15.13 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.338e-05/0.005103, allocations: 7.938 kB / 381.3 MB, free: 15.12 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.487e-06/0.005106, allocations: 4 kB / 381.3 MB, free: 15.12 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.005112, allocations: 4 kB / 381.3 MB, free: 15.12 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.005116, allocations: 0 / 381.3 MB, free: 15.12 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002722/0.005388, allocations: 309.6 kB / 381.6 MB, free: 14.77 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.876e-06/0.005391, allocations: 4 kB / 381.6 MB, free: 14.77 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.688e-05/0.005418, allocations: 4.047 kB / 381.6 MB, free: 14.77 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.597e-06/0.005422, allocations: 3.984 kB / 381.6 MB, free: 14.76 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.736e-05/0.005439, allocations: 0 / 381.6 MB, free: 14.76 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.005441, allocations: 0 / 381.6 MB, free: 14.76 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.005442, allocations: 0 / 381.6 MB, free: 14.76 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001746/0.005616, allocations: 203.8 kB / 381.8 MB, free: 14.54 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.229e-05/0.005629, allocations: 7.953 kB / 381.8 MB, free: 14.54 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.787e-05/0.005646, allocations: 0 / 381.8 MB, free: 14.54 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.359e-05/0.00568, allocations: 0 / 381.8 MB, free: 14.54 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.918e-05/0.005719, allocations: 3.984 kB / 381.8 MB, free: 14.53 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.504e-06/0.005727, allocations: 12.03 kB / 381.8 MB, free: 14.52 MB / 362.7 MB Notification: Performance of sorting global known variables: time 5.103e-05/0.005778, allocations: 123.2 kB / 382 MB, free: 14.4 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.005778, allocations: 0 / 382 MB, free: 14.4 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001667/0.005944, allocations: 4 kB / 382 MB, free: 14.39 MB / 362.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.0001042/0.006049, allocations: 91.25 kB / 382.1 MB, free: 14.29 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001123/0.006161, allocations: 35.55 kB / 382.1 MB, free: 14.25 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.006163, allocations: 0 / 382.1 MB, free: 14.25 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 1.94e-05/0.006182, allocations: 11.69 kB / 382.1 MB, free: 14.24 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002294/0.006412, allocations: 11.98 kB / 382.1 MB, free: 14.23 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003505/0.006762, allocations: 150.1 kB / 382.3 MB, free: 14.05 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.723e-05/0.006809, allocations: 55.36 kB / 382.3 MB, free: 13.98 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 2.496e-05/0.006834, allocations: 0 / 382.3 MB, free: 13.98 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.164e-05/0.006866, allocations: 12.5 kB / 382.3 MB, free: 13.96 MB / 362.7 MB Notification: Performance of SimCode: time 1.243e-06/0.006867, allocations: 0 / 382.3 MB, free: 13.96 MB / 362.7 MB Notification: Performance of Templates: time 0.002397/0.009264, allocations: 0.5126 MB / 382.8 MB, free: 13.46 MB / 362.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=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.2417408619076014]