Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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.001116/0.001116, allocations: 84.45 kB / 20.69 MB, free: 3.863 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.001246/0.001246, allocations: 173.9 kB / 23.97 MB, free: 0.582 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8579/0.8579, allocations: 158.6 MB / 185.7 MB, free: 3.035 MB / 170.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1277/0.1277, allocations: 32.37 MB / 270.4 MB, free: 14.96 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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|mean.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean") translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|mean.x|mean.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.263e-06/1.263e-06, allocations: 0 / 408.1 MB, free: 13.03 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.56e-05/2.686e-05, allocations: 5.938 kB / 408.1 MB, free: 13.03 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.002435/0.002462, allocations: 2.123 MB / 410.2 MB, free: 10.89 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001063/0.003524, allocations: 0.7757 MB / 411 MB, free: 10.11 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001359/0.00366, allocations: 7.938 kB / 411 MB, free: 10.1 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001263/0.003787, allocations: 35.59 kB / 411 MB, free: 10.07 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001917/0.003978, allocations: 55.41 kB / 411.1 MB, free: 10.01 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002656/0.004244, allocations: 159.6 kB / 411.2 MB, free: 9.855 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002839/0.004528, allocations: 354.9 kB / 411.6 MB, free: 9.508 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001718/0.0047, allocations: 88.83 kB / 411.7 MB, free: 9.418 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001996/0.004899, allocations: 211.4 kB / 411.9 MB, free: 9.211 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000144/0.005043, allocations: 111.6 kB / 412 MB, free: 9.102 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 4.446e-05/0.005088, allocations: 32 kB / 412 MB, free: 9.07 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.836e-05/0.005116, allocations: 32 kB / 412.1 MB, free: 9.039 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 6.208e-05/0.005178, allocations: 83.67 kB / 412.1 MB, free: 8.957 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 8.543e-05/0.005263, allocations: 99.73 kB / 412.2 MB, free: 8.859 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002917/0.005555, allocations: 378.8 kB / 412.6 MB, free: 8.488 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.005559, allocations: 4 kB / 412.6 MB, free: 8.484 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.252e-06/0.00556, allocations: 0 / 412.6 MB, free: 8.484 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.17e-06/0.005565, allocations: 0 / 412.6 MB, free: 8.484 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: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.0008341/0.006399, allocations: 0.6678 MB / 413.3 MB, free: 7.77 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.807e-05/0.006437, allocations: 12.03 kB / 413.3 MB, free: 7.758 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.088e-05/0.006498, allocations: 40.69 kB / 413.3 MB, free: 7.719 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003401/0.006838, allocations: 273.1 kB / 413.6 MB, free: 7.422 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.896e-05/0.006857, allocations: 20.88 kB / 413.6 MB, free: 7.402 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.766e-05/0.006895, allocations: 28.38 kB / 413.6 MB, free: 7.375 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003231/0.007218, allocations: 256.6 kB / 413.9 MB, free: 7.121 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.444e-05/0.007233, allocations: 4.188 kB / 413.9 MB, free: 7.117 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.158e-05/0.007254, allocations: 12.12 kB / 413.9 MB, free: 7.105 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.334e-06/0.007261, allocations: 15.94 kB / 413.9 MB, free: 7.09 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002536/0.007515, allocations: 181.9 kB / 414.1 MB, free: 6.914 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001084/0.0086, allocations: 0.6165 MB / 414.7 MB, free: 6.266 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002834/0.008883, allocations: 194.8 kB / 414.9 MB, free: 6.066 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001137/0.008997, allocations: 90.94 kB / 415 MB, free: 5.977 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.713e-05/0.009024, allocations: 7.984 kB / 415 MB, free: 5.969 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000261/0.009285, allocations: 227.2 kB / 415.2 MB, free: 5.734 MB / 346.7 MB Notification: Performance of pre-optimization done (n=31): time 2.484e-06/0.009287, allocations: 0 / 415.2 MB, free: 5.734 MB / 346.7 MB Notification: Performance of matching and sorting (n=31): time 0.000513/0.0098, allocations: 373.3 kB / 415.6 MB, free: 5.363 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.757e-05/0.009838, allocations: 63.39 kB / 415.7 MB, free: 5.289 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001579/0.009996, allocations: 237.8 kB / 415.9 MB, free: 5.047 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.219e-05/0.01002, allocations: 33.7 kB / 415.9 MB, free: 5.008 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.46e-05/0.01009, allocations: 168.7 kB / 416.1 MB, free: 4.84 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.798e-05/0.01015, allocations: 107.2 kB / 416.2 MB, free: 4.734 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.848e-05/0.01022, allocations: 70.06 kB / 416.3 MB, free: 4.656 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.64e-05/0.01031, allocations: 338.8 kB / 416.6 MB, free: 4.316 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001377/0.01044, allocations: 92.69 kB / 416.7 MB, free: 4.227 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001674/0.01061, allocations: 230.3 kB / 416.9 MB, free: 3.941 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000309/0.01092, allocations: 336.9 kB / 417.2 MB, free: 3.551 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.01092, allocations: 4 kB / 417.2 MB, free: 3.547 MB / 346.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0003826/0.01131, allocations: 369.4 kB / 417.6 MB, free: 3.18 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.806e-05/0.01132, allocations: 10.75 kB / 417.6 MB, free: 3.172 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.085e-06/0.01133, allocations: 11.88 kB / 417.6 MB, free: 3.16 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.587e-05/0.01135, allocations: 11.98 kB / 417.6 MB, free: 3.148 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001626/0.01151, allocations: 71.91 kB / 417.7 MB, free: 3.078 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.067e-05/0.01152, allocations: 11.92 kB / 417.7 MB, free: 3.066 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.02e-05/0.01161, allocations: 35.72 kB / 417.7 MB, free: 3.031 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.915e-05/0.01163, allocations: 23.98 kB / 417.8 MB, free: 3.008 MB / 346.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,$PRE.mean.y,rectifiedMean.mean.y,$PRE.rectifiedMean.mean.y,rootMeanSquare.mean.y,$PRE.rootMeanSquare.mean.y,harmonic.mean1.y,$PRE.harmonic.mean1.y,harmonic.mean2.y,$PRE.harmonic.mean2.y) * 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.0001198/0.01175, allocations: 169.6 kB / 417.9 MB, free: 2.832 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.565e-05/0.01178, allocations: 27.81 kB / 418 MB, free: 2.805 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003993/0.01217, allocations: 323.5 kB / 418.3 MB, free: 2.484 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.917e-06/0.01218, allocations: 4 kB / 418.3 MB, free: 2.48 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/0.01218, allocations: 0 / 418.3 MB, free: 2.48 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.861e-06/0.01219, allocations: 3.938 kB / 418.3 MB, free: 2.477 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005286/0.01272, allocations: 0.5956 MB / 418.9 MB, free: 1.844 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-06/0.01272, allocations: 0 / 418.9 MB, free: 1.844 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001369/0.01286, allocations: 51.91 kB / 418.9 MB, free: 1.793 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.075e-06/0.01286, allocations: 0 / 418.9 MB, free: 1.793 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.759e-05/0.01288, allocations: 11.98 kB / 418.9 MB, free: 1.781 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.625e-06/0.01288, allocations: 4 kB / 419 MB, free: 1.777 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.01288, allocations: 3.938 kB / 419 MB, free: 1.773 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005207/0.0134, allocations: 0.5227 MB / 419.5 MB, free: 1.234 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.66e-05/0.01343, allocations: 31.81 kB / 419.5 MB, free: 1.203 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.737e-05/0.01346, allocations: 8 kB / 419.5 MB, free: 1.195 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.073e-05/0.01354, allocations: 11.98 kB / 419.5 MB, free: 1.184 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.585e-05/0.01359, allocations: 27.89 kB / 419.6 MB, free: 1.156 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.732e-05/0.01361, allocations: 19.98 kB / 419.6 MB, free: 1.137 MB / 346.7 MB Notification: Performance of sorting global known variables: time 9.372e-05/0.0137, allocations: 165.2 kB / 419.7 MB, free: 0.9805 MB / 346.7 MB Notification: Performance of sort global known variables: time 5e-08/0.0137, allocations: 3.938 kB / 419.7 MB, free: 0.9766 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002395/0.01394, allocations: 67.89 kB / 419.8 MB, free: 0.9102 MB / 346.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,harmonic.mean1.y,rootMeanSquare.mean.y,rectifiedMean.mean.y,mean.y) * 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.0001182/0.01406, allocations: 111.2 kB / 419.9 MB, free: 0.793 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0003286/0.01439, allocations: 248.2 kB / 420.2 MB, free: 0.5508 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.01439, allocations: 4.25 kB / 420.2 MB, free: 0.5469 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001458/0.01454, allocations: 119.9 kB / 420.3 MB, free: 440 kB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002424/0.01478, allocations: 41.39 kB / 420.3 MB, free: 400 kB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007171/0.0155, allocations: 0.6102 MB / 420.9 MB, free: 15.74 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001069/0.01561, allocations: 178.1 kB / 421.1 MB, free: 15.55 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.661e-05/0.01567, allocations: 32.48 kB / 421.1 MB, free: 15.52 MB / 362.7 MB Notification: Performance of SimCode: time 5.61e-07/0.01567, allocations: 0 / 421.1 MB, free: 15.52 MB / 362.7 MB Notification: Performance of Templates: time 0.004044/0.01972, allocations: 3.739 MB / 424.9 MB, free: 11.78 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.makefile [Timeout 660] (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/Mean/Mean.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.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.849284015595913]