Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.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.001178/0.001178, allocations: 78.66 kB / 21.42 MB, free: 3.074 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.001222/0.001222, allocations: 165.8 kB / 24.82 MB, free: 9.266 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 1.066/1.066, allocations: 177.1 MB / 205.3 MB, free: 5.473 MB / 186.7 MB " [Timeout remaining time 179] 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.3039/0.3039, allocations: 32.81 MB / 294.6 MB, free: 1.242 MB / 266.7 MB " [Timeout remaining time 180] 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.Utilities.TestExamplesCalculator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator") translateModel(ModelicaTest.Utilities.TestExamplesCalculator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.333e-06/1.333e-06, allocations: 0 / 376.4 MB, free: 4.441 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.658e-05/2.791e-05, allocations: 6.25 kB / 376.5 MB, free: 4.434 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestExamplesCalculator): time 0.001253/0.001281, allocations: 0.4931 MB / 376.9 MB, free: 3.938 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002621/0.003902, allocations: 2.101 MB / 379 MB, free: 1.816 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.546e-05/0.003927, allocations: 3.938 kB / 379.1 MB, free: 1.812 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.54e-05/0.003943, allocations: 0 / 379.1 MB, free: 1.812 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 2.197e-05/0.003965, allocations: 0 / 379.1 MB, free: 1.812 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001234/0.005199, allocations: 414.4 kB / 379.5 MB, free: 1.406 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 3.873e-05/0.005238, allocations: 0 / 379.5 MB, free: 1.406 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.493e-05/0.005273, allocations: 0 / 379.5 MB, free: 1.406 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.987e-05/0.005302, allocations: 4 kB / 379.5 MB, free: 1.402 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01141/0.01671, allocations: 4.821 MB / 384.3 MB, free: 13.72 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 2.933e-05/0.01674, allocations: 4 kB / 384.3 MB, free: 13.72 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001249/0.01686, allocations: 11.98 kB / 384.3 MB, free: 13.71 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 1.201e-05/0.01688, allocations: 0 / 384.3 MB, free: 13.71 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 2.11e-05/0.0169, allocations: 0 / 384.3 MB, free: 13.71 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001614/0.01706, allocations: 15.86 kB / 384.3 MB, free: 13.69 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.01706, allocations: 0 / 384.3 MB, free: 13.69 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.453e-06/0.01707, allocations: 4 kB / 384.3 MB, free: 13.69 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.16e-06/0.01707, allocations: 0 / 384.3 MB, free: 13.69 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0003488/0.01742, allocations: 352.3 kB / 384.7 MB, free: 13.31 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.097e-05/0.01747, allocations: 8.031 kB / 384.7 MB, free: 13.3 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000201/0.01767, allocations: 128.1 kB / 384.8 MB, free: 13.18 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001154/0.01779, allocations: 227.8 kB / 385 MB, free: 12.93 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.374e-05/0.01785, allocations: 242.8 kB / 385.3 MB, free: 12.69 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.73e-05/0.01791, allocations: 242.7 kB / 385.5 MB, free: 12.45 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.513e-05/0.01797, allocations: 145.5 kB / 385.6 MB, free: 12.3 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.386e-05/0.01801, allocations: 127.1 kB / 385.8 MB, free: 12.18 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.799e-05/0.01808, allocations: 242.4 kB / 386 MB, free: 11.94 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.129e-05/0.01814, allocations: 246.3 kB / 386.2 MB, free: 11.7 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.221e-05/0.0182, allocations: 238.4 kB / 386.5 MB, free: 11.46 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002643/0.01846, allocations: 0.5491 MB / 387 MB, free: 10.89 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001097/0.01857, allocations: 261.4 kB / 387.3 MB, free: 10.62 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.108e-05/0.01861, allocations: 130.9 kB / 387.4 MB, free: 10.48 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.094e-05/0.01866, allocations: 127.1 kB / 387.5 MB, free: 10.36 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.452e-05/0.01872, allocations: 160.6 kB / 387.7 MB, free: 10.19 MB / 362.7 MB Notification: Performance of pre-optimization done (n=0): time 2.014e-06/0.01872, allocations: 0 / 387.7 MB, free: 10.19 MB / 362.7 MB Notification: Performance of matching and sorting (n=0): time 7.503e-05/0.0188, allocations: 25.7 kB / 387.7 MB, free: 10.16 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001147/0.01891, allocations: 233.9 kB / 387.9 MB, free: 9.906 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001058/0.01902, allocations: 149.9 kB / 388.1 MB, free: 9.742 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.314e-05/0.01903, allocations: 25.7 kB / 388.1 MB, free: 9.711 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.877e-05/0.01908, allocations: 126.9 kB / 388.2 MB, free: 9.582 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.434e-06/0.01908, allocations: 4 kB / 388.2 MB, free: 9.578 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.29e-05/0.01911, allocations: 19.38 kB / 388.3 MB, free: 9.551 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000152/0.01927, allocations: 496.1 kB / 388.7 MB, free: 9.055 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.009e-06/0.01927, allocations: 4 kB / 388.7 MB, free: 9.051 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.516e-05/0.01933, allocations: 74.72 kB / 388.8 MB, free: 8.957 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.889e-05/0.01937, allocations: 119.3 kB / 388.9 MB, free: 8.84 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.065e-05/0.01941, allocations: 123.2 kB / 389 MB, free: 8.719 MB / 362.7 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.423e-05/0.01946, allocations: 29.7 kB / 389.1 MB, free: 8.684 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.827e-05/0.01951, allocations: 131.1 kB / 389.2 MB, free: 8.555 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.023e-05/0.01955, allocations: 123.2 kB / 389.3 MB, free: 8.434 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002969/0.01985, allocations: 242.3 kB / 389.6 MB, free: 8.195 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.083e-05/0.01988, allocations: 127.2 kB / 389.7 MB, free: 8.07 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.704e-05/0.01995, allocations: 250.3 kB / 389.9 MB, free: 7.824 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.461e-05/0.02003, allocations: 119.2 kB / 390 MB, free: 7.707 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.865e-05/0.02006, allocations: 119.2 kB / 390.2 MB, free: 7.59 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (0): * Single equations (assignments): 0 * 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.0003011/0.02036, allocations: 402.9 kB / 390.6 MB, free: 7.184 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.969e-05/0.02041, allocations: 152.9 kB / 390.7 MB, free: 7.027 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.09e-05/0.02046, allocations: 151.9 kB / 390.9 MB, free: 6.875 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.807e-05/0.02052, allocations: 272 kB / 391.1 MB, free: 6.602 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0003704/0.02089, allocations: 272 kB / 391.4 MB, free: 6.328 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.57e-05/0.02095, allocations: 268 kB / 391.6 MB, free: 6.059 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001716/0.02112, allocations: 476.5 kB / 392.1 MB, free: 5.559 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.579e-05/0.02116, allocations: 148.9 kB / 392.3 MB, free: 5.406 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.482e-05/0.0212, allocations: 148.8 kB / 392.4 MB, free: 5.254 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.918e-05/0.02125, allocations: 268.1 kB / 392.7 MB, free: 4.984 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.151e-05/0.02134, allocations: 272 kB / 392.9 MB, free: 4.711 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001767/0.02151, allocations: 268.1 kB / 393.2 MB, free: 4.441 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.961e-05/0.02157, allocations: 268.1 kB / 393.5 MB, free: 4.172 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001602/0.02173, allocations: 455.9 kB / 393.9 MB, free: 3.699 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.317e-05/0.02178, allocations: 148.8 kB / 394 MB, free: 3.547 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.971e-05/0.02185, allocations: 272.1 kB / 394.3 MB, free: 3.273 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.299e-05/0.02192, allocations: 148.9 kB / 394.5 MB, free: 3.121 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.96e-05/0.02199, allocations: 272.3 kB / 394.7 MB, free: 2.848 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.444e-05/0.02202, allocations: 144.9 kB / 394.9 MB, free: 2.699 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.623e-05/0.02207, allocations: 123.1 kB / 395 MB, free: 2.578 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02207, allocations: 0 / 395 MB, free: 2.578 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001603/0.02223, allocations: 8.094 kB / 395 MB, free: 2.57 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (0): * Single equations (assignments): 0 * 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.0001348/0.02236, allocations: 210.4 kB / 395.2 MB, free: 2.355 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 5.023e-05/0.02241, allocations: 7.969 kB / 395.2 MB, free: 2.348 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.02242, allocations: 0 / 395.2 MB, free: 2.348 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 8.62e-07/0.02242, allocations: 0 / 395.2 MB, free: 2.348 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003235/0.02274, allocations: 0.714 MB / 395.9 MB, free: 1.629 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002045/0.02295, allocations: 203.1 kB / 396.1 MB, free: 1.398 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.456e-05/0.02298, allocations: 51.36 kB / 396.2 MB, free: 1.328 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 2.925e-05/0.02301, allocations: 3.938 kB / 396.2 MB, free: 1.324 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.67e-05/0.02307, allocations: 82.19 kB / 396.3 MB, free: 1.242 MB / 362.7 MB Notification: Performance of SimCode: time 1.032e-06/0.02307, allocations: 0 / 396.3 MB, free: 1.242 MB / 362.7 MB Notification: Performance of Templates: time 0.002208/0.02528, allocations: 373.8 kB / 396.6 MB, free: 0.8906 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.sim & ./ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestExamplesCalculator/TestExamplesCalculator.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.082199613098055]