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.0009915/0.0009915, allocations: 75.7 kB / 21.7 MB, free: 2.844 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.0009974/0.0009974, allocations: 162.6 kB / 24.99 MB, free: 9.332 MB / 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 0.964/0.964, allocations: 177 MB / 205.2 MB, free: 5.613 MB / 186.7 MB " [Timeout remaining time 179] 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.2757/0.2757, allocations: 34.86 MB / 296.6 MB, free: 0.5703 MB / 266.7 MB " [Timeout remaining time 180] 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.293e-06/1.293e-06, allocations: 0 / 378.7 MB, free: 2.441 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.638e-05/1.767e-05, allocations: 10.25 kB / 378.7 MB, free: 2.43 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.002478/0.002496, allocations: 2.255 MB / 381 MB, free: 160 kB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001162/0.003658, allocations: 0.8839 MB / 381.9 MB, free: 15.27 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001238/0.003781, allocations: 11.88 kB / 381.9 MB, free: 15.25 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001102/0.003892, allocations: 35.55 kB / 381.9 MB, free: 15.22 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001948/0.004086, allocations: 75.31 kB / 382 MB, free: 15.14 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003403/0.004427, allocations: 187.5 kB / 382.2 MB, free: 14.96 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003175/0.004744, allocations: 390.9 kB / 382.6 MB, free: 14.58 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001802/0.004924, allocations: 88.83 kB / 382.7 MB, free: 14.49 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000264/0.005188, allocations: 223.4 kB / 382.9 MB, free: 14.27 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001473/0.005336, allocations: 123.5 kB / 383 MB, free: 14.15 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 4.067e-05/0.005376, allocations: 40 kB / 383 MB, free: 14.11 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.181e-05/0.005458, allocations: 59.91 kB / 383.1 MB, free: 14.05 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 6.247e-05/0.005521, allocations: 87.66 kB / 383.2 MB, free: 13.97 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 9.397e-05/0.005614, allocations: 107.7 kB / 383.3 MB, free: 13.86 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002932/0.005908, allocations: 286.9 kB / 383.6 MB, free: 13.58 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.325e-06/0.00591, allocations: 0 / 383.6 MB, free: 13.58 MB / 362.7 MB Notification: Performance of FrontEnd: time 8.02e-07/0.005911, allocations: 0 / 383.6 MB, free: 13.58 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.44e-06/0.005916, allocations: 0 / 383.6 MB, free: 13.58 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.0009066/0.006823, allocations: 0.8404 MB / 384.4 MB, free: 12.69 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.367e-05/0.006856, allocations: 8.031 kB / 384.4 MB, free: 12.68 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003068/0.007163, allocations: 100.6 kB / 384.5 MB, free: 12.58 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00035/0.007513, allocations: 305.1 kB / 384.8 MB, free: 12.25 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.704e-05/0.00754, allocations: 25.03 kB / 384.8 MB, free: 12.23 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.307e-05/0.007583, allocations: 40.33 kB / 384.9 MB, free: 12.19 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003002/0.007884, allocations: 207.3 kB / 385.1 MB, free: 11.98 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.309e-05/0.007897, allocations: 192 / 385.1 MB, free: 11.98 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.66e-05/0.007923, allocations: 24.05 kB / 385.1 MB, free: 11.96 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.067e-05/0.007934, allocations: 8 kB / 385.1 MB, free: 11.95 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001779/0.008112, allocations: 87.86 kB / 385.2 MB, free: 11.86 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008666/0.008978, allocations: 0.7182 MB / 385.9 MB, free: 11.11 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002513/0.00923, allocations: 143.4 kB / 386.1 MB, free: 10.95 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.62e-05/0.009316, allocations: 55.66 kB / 386.1 MB, free: 10.89 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.363e-05/0.00934, allocations: 7.984 kB / 386.1 MB, free: 10.89 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002337/0.009573, allocations: 184.8 kB / 386.3 MB, free: 10.69 MB / 362.7 MB Notification: Performance of pre-optimization done (n=31): time 1.944e-06/0.009575, allocations: 0 / 386.3 MB, free: 10.69 MB / 362.7 MB Notification: Performance of matching and sorting (n=31): time 0.0004234/0.009999, allocations: 262.1 kB / 386.6 MB, free: 10.43 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.243e-05/0.01004, allocations: 67.33 kB / 386.6 MB, free: 10.35 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001905/0.01023, allocations: 302.3 kB / 386.9 MB, free: 10.04 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.141e-05/0.01027, allocations: 33.7 kB / 386.9 MB, free: 10 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.981e-05/0.01037, allocations: 239.3 kB / 387.2 MB, free: 9.762 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.975e-05/0.01043, allocations: 99.23 kB / 387.3 MB, free: 9.664 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.613e-05/0.01051, allocations: 79.7 kB / 387.4 MB, free: 9.574 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001523/0.01066, allocations: 0.5079 MB / 387.9 MB, free: 9.055 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.063e-05/0.01074, allocations: 44.72 kB / 387.9 MB, free: 9.012 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001514/0.01089, allocations: 231.2 kB / 388.1 MB, free: 8.703 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002643/0.01116, allocations: 313.3 kB / 388.4 MB, free: 8.312 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.01116, allocations: 4 kB / 388.4 MB, free: 8.309 MB / 362.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0003417/0.0115, allocations: 308.8 kB / 388.7 MB, free: 8 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.433e-05/0.01152, allocations: 8 kB / 388.8 MB, free: 7.992 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/0.01152, allocations: 4.141 kB / 388.8 MB, free: 7.988 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.53e-05/0.01154, allocations: 7.938 kB / 388.8 MB, free: 7.98 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001919/0.01173, allocations: 84.34 kB / 388.8 MB, free: 7.898 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.041e-05/0.01174, allocations: 15.94 kB / 388.9 MB, free: 7.883 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.818e-05/0.01183, allocations: 31.78 kB / 388.9 MB, free: 7.852 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.848e-05/0.01185, allocations: 19.98 kB / 388.9 MB, free: 7.832 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.0001094/0.01196, allocations: 184.5 kB / 389.1 MB, free: 7.641 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.604e-05/0.012, allocations: 39.81 kB / 389.1 MB, free: 7.602 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003271/0.01233, allocations: 240.4 kB / 389.4 MB, free: 7.359 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.849e-06/0.01234, allocations: 15.92 kB / 389.4 MB, free: 7.344 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.347e-06/0.01234, allocations: 0 / 389.4 MB, free: 7.344 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.639e-06/0.01234, allocations: 0 / 389.4 MB, free: 7.344 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005547/0.0129, allocations: 0.5714 MB / 390 MB, free: 6.73 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.0129, allocations: 0 / 390 MB, free: 6.73 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000143/0.01304, allocations: 47.91 kB / 390 MB, free: 6.684 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.406e-06/0.01305, allocations: 3.938 kB / 390 MB, free: 6.68 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.047e-05/0.01307, allocations: 8 kB / 390 MB, free: 6.672 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.874e-06/0.01307, allocations: 0 / 390 MB, free: 6.672 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.01307, allocations: 0 / 390 MB, free: 6.672 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004149/0.01349, allocations: 451.9 kB / 390.5 MB, free: 6.211 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.482e-05/0.01351, allocations: 31.73 kB / 390.5 MB, free: 6.18 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.412e-05/0.01354, allocations: 19.88 kB / 390.5 MB, free: 6.16 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.345e-05/0.01363, allocations: 11.98 kB / 390.5 MB, free: 6.148 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.663e-05/0.01368, allocations: 23.95 kB / 390.5 MB, free: 6.125 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.657e-05/0.0137, allocations: 12.06 kB / 390.5 MB, free: 6.113 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000114/0.01381, allocations: 215 kB / 390.8 MB, free: 5.906 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01381, allocations: 0 / 390.8 MB, free: 5.906 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002524/0.01407, allocations: 75.83 kB / 390.8 MB, free: 5.832 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 9.628e-05/0.01416, allocations: 113.4 kB / 390.9 MB, free: 5.715 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002621/0.01443, allocations: 184.1 kB / 391.1 MB, free: 5.531 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.01443, allocations: 4 kB / 391.1 MB, free: 5.527 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001103/0.01454, allocations: 83.58 kB / 391.2 MB, free: 5.441 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002577/0.0148, allocations: 49.88 kB / 391.3 MB, free: 5.395 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008654/0.01566, allocations: 0.5929 MB / 391.9 MB, free: 4.766 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.112e-05/0.01572, allocations: 105.5 kB / 392 MB, free: 4.641 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 8.88e-05/0.01581, allocations: 38.95 kB / 392 MB, free: 4.602 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.704e-05/0.01588, allocations: 32.48 kB / 392 MB, free: 4.57 MB / 362.7 MB Notification: Performance of SimCode: time 7.22e-07/0.01588, allocations: 4 kB / 392 MB, free: 4.566 MB / 362.7 MB Notification: Performance of Templates: time 0.00487/0.02075, allocations: 2.773 MB / 394.8 MB, free: 1.832 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=240 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.Mean.pipe 2>&1) [Timeout 240] 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","",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.0307770180515945]