Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.Mean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001926/0.001926, allocations: 96.25 kB / 20.96 MB, free: 3.469 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001961/0.001961, allocations: 156.9 kB / 24.27 MB, free: 172 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.645/1.645, allocations: 177 MB / 204.5 MB, free: 5.613 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3506/0.3506, allocations: 34.25 MB / 295.2 MB, free: 0.6562 MB / 266.7 MB " [Timeout remaining time 179] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_ModelicaTest.Blocks.Mean") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.563e-06/1.563e-06, allocations: 0 / 377.2 MB, free: 2.902 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.223e-05/3.379e-05, allocations: 6.312 kB / 377.2 MB, free: 2.895 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.004098/0.004132, allocations: 2.184 MB / 379.4 MB, free: 0.6914 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001819/0.005951, allocations: 0.8606 MB / 380.3 MB, free: 15.82 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001353/0.006086, allocations: 7.938 kB / 380.3 MB, free: 15.82 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001578/0.006244, allocations: 35.55 kB / 380.3 MB, free: 15.78 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002525/0.006497, allocations: 67.33 kB / 380.4 MB, free: 15.71 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004592/0.006956, allocations: 191.5 kB / 380.6 MB, free: 15.53 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004761/0.007432, allocations: 398.8 kB / 380.9 MB, free: 15.14 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002432/0.007675, allocations: 88.84 kB / 381 MB, free: 15.05 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003709/0.008046, allocations: 215.5 kB / 381.2 MB, free: 14.84 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002289/0.008275, allocations: 127.6 kB / 381.4 MB, free: 14.71 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 6.727e-05/0.008342, allocations: 36 kB / 381.4 MB, free: 14.68 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001117/0.008454, allocations: 51.94 kB / 381.5 MB, free: 14.63 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001066/0.008561, allocations: 91.59 kB / 381.5 MB, free: 14.54 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001696/0.00873, allocations: 107.7 kB / 381.6 MB, free: 14.43 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005716/0.009302, allocations: 430.6 kB / 382.1 MB, free: 14.01 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.009306, allocations: 0 / 382.1 MB, free: 14.01 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.212e-06/0.009307, allocations: 0 / 382.1 MB, free: 14.01 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.565e-06/0.009314, allocations: 4 kB / 382.1 MB, free: 14.01 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.001464/0.01078, allocations: 0.7267 MB / 382.8 MB, free: 13.24 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.663e-05/0.01082, allocations: 8.031 kB / 382.8 MB, free: 13.23 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005204/0.01134, allocations: 104.5 kB / 382.9 MB, free: 13.13 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006404/0.01198, allocations: 306.3 kB / 383.2 MB, free: 12.8 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.008e-05/0.01202, allocations: 25.03 kB / 383.2 MB, free: 12.78 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.093e-05/0.0121, allocations: 40.31 kB / 383.3 MB, free: 12.74 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007088/0.01281, allocations: 270.6 kB / 383.5 MB, free: 12.47 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.674e-05/0.01283, allocations: 8.172 kB / 383.5 MB, free: 12.46 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.143e-05/0.01287, allocations: 16.12 kB / 383.6 MB, free: 12.45 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.201e-05/0.01289, allocations: 8 kB / 383.6 MB, free: 12.44 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000492/0.01338, allocations: 190.4 kB / 383.8 MB, free: 12.25 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001615/0.01499, allocations: 0.6761 MB / 384.4 MB, free: 11.54 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004996/0.01549, allocations: 194.7 kB / 384.6 MB, free: 11.34 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002437/0.01574, allocations: 88.81 kB / 384.7 MB, free: 11.25 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.128e-05/0.01578, allocations: 8 kB / 384.7 MB, free: 11.25 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000493/0.01627, allocations: 227.1 kB / 384.9 MB, free: 11.01 MB / 362.7 MB Notification: Performance of pre-optimization done (n=31): time 2.334e-06/0.01627, allocations: 0 / 384.9 MB, free: 11.01 MB / 362.7 MB Notification: Performance of matching and sorting (n=31): time 0.001112/0.01739, allocations: 397.2 kB / 385.3 MB, free: 10.62 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.999e-05/0.01745, allocations: 59.41 kB / 385.4 MB, free: 10.55 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003352/0.01778, allocations: 264.2 kB / 385.6 MB, free: 10.28 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.289e-05/0.01782, allocations: 37.7 kB / 385.7 MB, free: 10.23 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001625/0.01799, allocations: 184.7 kB / 385.9 MB, free: 10.05 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001053/0.01809, allocations: 99.17 kB / 386 MB, free: 9.949 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001255/0.01822, allocations: 74.06 kB / 386 MB, free: 9.867 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002164/0.01843, allocations: 342.8 kB / 386.4 MB, free: 9.523 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002406/0.01867, allocations: 88.7 kB / 386.4 MB, free: 9.438 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003739/0.01905, allocations: 226.5 kB / 386.7 MB, free: 9.156 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006614/0.01971, allocations: 352.8 kB / 387 MB, free: 8.75 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.957e-06/0.01971, allocations: 0 / 387 MB, free: 8.75 MB / 362.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0008197/0.02053, allocations: 397 kB / 387.4 MB, free: 8.355 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.713e-05/0.02056, allocations: 8 kB / 387.4 MB, free: 8.348 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.309e-05/0.02057, allocations: 4 kB / 387.4 MB, free: 8.344 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.57e-05/0.02061, allocations: 11.94 kB / 387.4 MB, free: 8.332 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003374/0.02095, allocations: 75.83 kB / 387.5 MB, free: 8.258 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.802e-05/0.02096, allocations: 8 kB / 387.5 MB, free: 8.25 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002081/0.02117, allocations: 35.77 kB / 387.5 MB, free: 8.215 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.579e-05/0.02121, allocations: 20.19 kB / 387.6 MB, free: 8.195 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.0002328/0.02144, allocations: 169.6 kB / 387.7 MB, free: 8.02 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.386e-05/0.02151, allocations: 39.81 kB / 387.8 MB, free: 7.98 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000727/0.02224, allocations: 328.2 kB / 388.1 MB, free: 7.656 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.043e-05/0.02225, allocations: 7.938 kB / 388.1 MB, free: 7.648 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.611e-06/0.02226, allocations: 4 kB / 388.1 MB, free: 7.645 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.02226, allocations: 0 / 388.1 MB, free: 7.645 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001305/0.02357, allocations: 0.6072 MB / 388.7 MB, free: 7 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.02357, allocations: 0 / 388.7 MB, free: 7 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002628/0.02383, allocations: 51.89 kB / 388.8 MB, free: 6.949 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.913e-06/0.02384, allocations: 3.938 kB / 388.8 MB, free: 6.945 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.92e-05/0.02387, allocations: 8 kB / 388.8 MB, free: 6.938 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.056e-06/0.02387, allocations: 0 / 388.8 MB, free: 6.938 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.172e-06/0.02388, allocations: 11.98 kB / 388.8 MB, free: 6.926 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001019/0.0249, allocations: 0.5309 MB / 389.3 MB, free: 6.379 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.225e-05/0.02495, allocations: 31.73 kB / 389.3 MB, free: 6.348 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.558e-05/0.025, allocations: 16 kB / 389.4 MB, free: 6.332 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001756/0.02518, allocations: 12.11 kB / 389.4 MB, free: 6.32 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.533e-05/0.02528, allocations: 27.95 kB / 389.4 MB, free: 6.293 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.44e-05/0.02531, allocations: 15.98 kB / 389.4 MB, free: 6.277 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002149/0.02552, allocations: 195 kB / 389.6 MB, free: 6.09 MB / 362.7 MB Notification: Performance of sort global known variables: time 8e-08/0.02552, allocations: 4 kB / 389.6 MB, free: 6.086 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005061/0.02603, allocations: 67.84 kB / 389.7 MB, free: 6.02 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.000161/0.02619, allocations: 111.2 kB / 389.8 MB, free: 5.898 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0006042/0.0268, allocations: 252.2 kB / 390 MB, free: 5.652 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.756e-06/0.0268, allocations: 0 / 390 MB, free: 5.652 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000263/0.02706, allocations: 119.8 kB / 390.1 MB, free: 5.535 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004093/0.02747, allocations: 40.95 kB / 390.2 MB, free: 5.496 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001235/0.02871, allocations: 0.6138 MB / 390.8 MB, free: 4.852 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002233/0.02893, allocations: 186.4 kB / 391 MB, free: 4.648 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001606/0.02909, allocations: 47.22 kB / 391 MB, free: 4.598 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001045/0.02919, allocations: 32.5 kB / 391.1 MB, free: 4.566 MB / 362.7 MB Notification: Performance of SimCode: time 7.72e-07/0.0292, allocations: 4 kB / 391.1 MB, free: 4.562 MB / 362.7 MB Notification: Performance of Templates: time 0.007863/0.03706, allocations: 2.769 MB / 393.8 MB, free: 1.84 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.Mean.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.Mean.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.Mean -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.Mean.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_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: 5.148027390008792]