Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.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.001591/0.001591, allocations: 71.77 kB / 21.69 MB, free: 2.859 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.001649/0.001649, allocations: 169.7 kB / 24.99 MB, free: 8.793 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.049/1.049, allocations: 177.1 MB / 205.3 MB, free: 5.594 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.2685/0.2685, allocations: 34.26 MB / 296.1 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.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|mean.x|yMean|yRectifiedMean|yRootMeanSquare|yHarmonicCos|yHarmonicSin|yHarmonicAbs|yHarmonicArg",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean") translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|mean.x|yMean|yRectifiedMean|yRootMeanSquare|yHarmonicCos|yHarmonicSin|yHarmonicAbs|yHarmonicArg",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.383e-06/1.383e-06, allocations: 3.938 kB / 378 MB, free: 2.977 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.597e-05/2.735e-05, allocations: 13.56 kB / 378 MB, free: 2.965 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.002731/0.002759, allocations: 2.258 MB / 380.3 MB, free: 0.6875 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001143/0.003902, allocations: 0.8723 MB / 381.2 MB, free: 15.81 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001355/0.004037, allocations: 7.938 kB / 381.2 MB, free: 15.8 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001365/0.004174, allocations: 39.53 kB / 381.2 MB, free: 15.76 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002124/0.004386, allocations: 71.31 kB / 381.3 MB, free: 15.69 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000338/0.004724, allocations: 179.5 kB / 381.4 MB, free: 15.52 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003075/0.005032, allocations: 402.7 kB / 381.8 MB, free: 15.12 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001994/0.005231, allocations: 88.84 kB / 381.9 MB, free: 15.04 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002667/0.005498, allocations: 223.5 kB / 382.1 MB, free: 14.82 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001654/0.005663, allocations: 119.6 kB / 382.3 MB, free: 14.7 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 4.988e-05/0.005713, allocations: 36 kB / 382.3 MB, free: 14.66 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.122e-05/0.005794, allocations: 55.92 kB / 382.4 MB, free: 14.61 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 6.854e-05/0.005863, allocations: 99.59 kB / 382.4 MB, free: 14.51 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 9.844e-05/0.005961, allocations: 111.7 kB / 382.6 MB, free: 14.4 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003039/0.006265, allocations: 282.9 kB / 382.8 MB, free: 14.12 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.075e-06/0.006268, allocations: 0 / 382.8 MB, free: 14.12 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.012e-06/0.006269, allocations: 0 / 382.8 MB, free: 14.12 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.679e-06/0.006274, allocations: 4 kB / 382.8 MB, free: 14.12 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: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.0008734/0.007147, allocations: 0.8365 MB / 383.7 MB, free: 13.23 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.721e-05/0.007184, allocations: 12.03 kB / 383.7 MB, free: 13.22 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003146/0.007499, allocations: 104.5 kB / 383.8 MB, free: 13.12 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003584/0.007857, allocations: 301.1 kB / 384.1 MB, free: 12.79 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.797e-05/0.007885, allocations: 25.03 kB / 384.1 MB, free: 12.77 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.159e-05/0.007927, allocations: 32.33 kB / 384.1 MB, free: 12.74 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002876/0.008215, allocations: 207.3 kB / 384.3 MB, free: 12.53 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.276e-05/0.008227, allocations: 4.188 kB / 384.3 MB, free: 12.53 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.294e-05/0.00825, allocations: 12.12 kB / 384.4 MB, free: 12.52 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.163e-05/0.008262, allocations: 8 kB / 384.4 MB, free: 12.51 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001612/0.008423, allocations: 99.8 kB / 384.5 MB, free: 12.41 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008836/0.009307, allocations: 0.7221 MB / 385.2 MB, free: 11.64 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002476/0.009554, allocations: 143.3 kB / 385.3 MB, free: 11.49 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.565e-05/0.00964, allocations: 55.66 kB / 385.4 MB, free: 11.43 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.527e-05/0.009665, allocations: 8 kB / 385.4 MB, free: 11.43 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002195/0.009885, allocations: 180.8 kB / 385.6 MB, free: 11.23 MB / 362.7 MB Notification: Performance of pre-optimization done (n=31): time 2.495e-06/0.009887, allocations: 0 / 385.6 MB, free: 11.23 MB / 362.7 MB Notification: Performance of matching and sorting (n=31): time 0.0004136/0.0103, allocations: 270 kB / 385.8 MB, free: 10.96 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.872e-05/0.01034, allocations: 63.41 kB / 385.9 MB, free: 10.89 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001953/0.01053, allocations: 306.3 kB / 386.2 MB, free: 10.58 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.636e-05/0.01056, allocations: 33.7 kB / 386.2 MB, free: 10.54 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001058/0.01067, allocations: 235.4 kB / 386.5 MB, free: 10.3 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.474e-05/0.01073, allocations: 99.22 kB / 386.5 MB, free: 10.2 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.942e-05/0.01081, allocations: 79.72 kB / 386.6 MB, free: 10.11 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001308/0.01094, allocations: 0.5118 MB / 387.1 MB, free: 9.59 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.912e-05/0.01102, allocations: 40.72 kB / 387.2 MB, free: 9.551 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001624/0.01118, allocations: 237.7 kB / 387.4 MB, free: 9.238 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002688/0.01145, allocations: 317.5 kB / 387.7 MB, free: 8.844 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.816e-06/0.01146, allocations: 0 / 387.7 MB, free: 8.844 MB / 362.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.000343/0.0118, allocations: 300.8 kB / 388 MB, free: 8.543 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.536e-05/0.01181, allocations: 8.469 kB / 388 MB, free: 8.535 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.997e-06/0.01182, allocations: 11.98 kB / 388 MB, free: 8.523 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.815e-05/0.01184, allocations: 11.94 kB / 388 MB, free: 8.512 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001932/0.01203, allocations: 79.84 kB / 388.1 MB, free: 8.434 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.596e-06/0.01204, allocations: 7.984 kB / 388.1 MB, free: 8.426 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.797e-05/0.01213, allocations: 31.78 kB / 388.2 MB, free: 8.395 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.933e-05/0.01215, allocations: 20 kB / 388.2 MB, free: 8.375 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,mean.y_last,$PRE.mean.y_last,rectifiedMean.mean.y_last,$PRE.rectifiedMean.mean.y_last,rootMeanSquare.mean.y_last,$PRE.rootMeanSquare.mean.y_last,harmonic.mean1.y_last,$PRE.harmonic.mean1.y_last,harmonic.mean2.y_last,$PRE.harmonic.mean2.y_last) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 46 * 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.0001164/0.01227, allocations: 188.4 kB / 388.4 MB, free: 8.18 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.194e-05/0.01231, allocations: 39.81 kB / 388.4 MB, free: 8.141 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003316/0.01264, allocations: 236.4 kB / 388.6 MB, free: 7.902 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.779e-06/0.01264, allocations: 7.938 kB / 388.6 MB, free: 7.895 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.159e-06/0.01265, allocations: 4 kB / 388.6 MB, free: 7.891 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.162e-06/0.01266, allocations: 3.984 kB / 388.7 MB, free: 7.887 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004829/0.01314, allocations: 0.5716 MB / 389.2 MB, free: 7.273 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.774e-06/0.01314, allocations: 4 kB / 389.2 MB, free: 7.27 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001388/0.01328, allocations: 47.91 kB / 389.3 MB, free: 7.223 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.573e-06/0.01329, allocations: 7.938 kB / 389.3 MB, free: 7.215 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.9e-05/0.0133, allocations: 11.98 kB / 389.3 MB, free: 7.203 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.098e-06/0.01331, allocations: 7.984 kB / 389.3 MB, free: 7.195 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.01331, allocations: 0 / 389.3 MB, free: 7.195 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004332/0.01374, allocations: 435.7 kB / 389.7 MB, free: 6.75 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.675e-05/0.01377, allocations: 31.75 kB / 389.8 MB, free: 6.719 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.467e-05/0.0138, allocations: 15.92 kB / 389.8 MB, free: 6.703 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.276e-05/0.01389, allocations: 8 kB / 389.8 MB, free: 6.695 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.826e-05/0.01395, allocations: 23.95 kB / 389.8 MB, free: 6.672 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.92e-05/0.01396, allocations: 19.98 kB / 389.8 MB, free: 6.652 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000116/0.01408, allocations: 211 kB / 390 MB, free: 6.449 MB / 362.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01408, allocations: 4 kB / 390 MB, free: 6.445 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002398/0.01432, allocations: 71.84 kB / 390.1 MB, free: 6.375 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (harmonic.mean2.x,harmonic.mean1.x,rootMeanSquare.mean.x,rectifiedMean.mean.x,mean.x) * Number of discrete variables: 10 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,harmonic.mean2.y_last,harmonic.mean1.y_last,rootMeanSquare.mean.y_last,rectifiedMean.mean.y_last,mean.y_last) * Number of discrete states: 5 (harmonic.mean2.x,harmonic.mean1.x,rootMeanSquare.mean.x,rectifiedMean.mean.x,mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0001009/0.01442, allocations: 118.3 kB / 390.2 MB, free: 6.254 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002626/0.01468, allocations: 192 kB / 390.4 MB, free: 6.062 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.01469, allocations: 256 / 390.4 MB, free: 6.062 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001124/0.0148, allocations: 99.78 kB / 390.5 MB, free: 5.961 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002554/0.01505, allocations: 40.95 kB / 390.5 MB, free: 5.922 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008758/0.01593, allocations: 0.5923 MB / 391.1 MB, free: 5.293 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.157e-05/0.01599, allocations: 97.53 kB / 391.2 MB, free: 5.176 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 9.385e-05/0.01608, allocations: 38.97 kB / 391.3 MB, free: 5.137 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.412e-05/0.01615, allocations: 36.48 kB / 391.3 MB, free: 5.102 MB / 362.7 MB Notification: Performance of SimCode: time 9.42e-07/0.01615, allocations: 0 / 391.3 MB, free: 5.102 MB / 362.7 MB Notification: Performance of Templates: time 0.004883/0.02103, allocations: 2.765 MB / 394.1 MB, free: 2.367 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.sim & ./ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/Mean/Mean.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.290174405090511]