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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) 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=5000,variableFilter="time|mean.x|mean.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.Mean") translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mean.x|mean.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.Mean") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001589/0.001589, allocations: 109.6 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00174/0.00174, allocations: 208 kB / 19.25 MB, free: 3.898 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.444/1.444, allocations: 227.4 MB / 247.5 MB, free: 10.59 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2275/0.2275, allocations: 46.11 MB / 344.8 MB, free: 11.57 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002158/0.002159, allocations: 77.75 kB / 418.3 MB, free: 19.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1252/0.1273, allocations: 62.46 MB / 480.8 MB, free: 5.242 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.004171/0.1316, allocations: 2.308 MB / 483.1 MB, free: 2.922 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001735/0.1333, allocations: 0.9036 MB / 484 MB, free: 2.012 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001563/0.1335, allocations: 7.938 kB / 484 MB, free: 2.004 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001606/0.1337, allocations: 35.53 kB / 484 MB, free: 1.969 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002456/0.1339, allocations: 67.33 kB / 484.1 MB, free: 1.902 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004531/0.1344, allocations: 183.7 kB / 484.3 MB, free: 1.723 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004429/0.1349, allocations: 386.9 kB / 484.6 MB, free: 1.344 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003052/0.1352, allocations: 128.2 kB / 484.8 MB, free: 1.219 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002786/0.1355, allocations: 151.4 kB / 484.9 MB, free: 1.07 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002628/0.1357, allocations: 171.1 kB / 485.1 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.234e-05/0.1358, allocations: 36 kB / 485.1 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001134/0.1359, allocations: 55.92 kB / 485.2 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.072e-05/0.136, allocations: 83.75 kB / 485.2 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001871/0.1362, allocations: 179 kB / 485.4 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004561/0.1367, allocations: 402.9 kB / 485.8 MB, free: 164 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.1367, allocations: 0 / 485.8 MB, free: 164 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.1367, allocations: 0 / 485.8 MB, free: 164 kB / 350.1 MB Notification: Performance of Transformations before backend: time 7.333e-06/0.1367, allocations: 0 / 485.8 MB, free: 164 kB / 350.1 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.001239/0.138, allocations: 0.6538 MB / 486.5 MB, free: 15.46 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.372e-05/0.138, allocations: 12.03 kB / 486.5 MB, free: 15.45 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004621/0.1385, allocations: 76.34 kB / 486.6 MB, free: 15.38 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006268/0.1391, allocations: 355.8 kB / 486.9 MB, free: 14.99 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.655e-05/0.1392, allocations: 20.94 kB / 486.9 MB, free: 14.97 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.148e-05/0.1392, allocations: 36.38 kB / 487 MB, free: 14.93 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006264/0.1399, allocations: 268.9 kB / 487.2 MB, free: 14.66 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.831e-05/0.1399, allocations: 4 kB / 487.2 MB, free: 14.66 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.473e-05/0.1399, allocations: 11.98 kB / 487.2 MB, free: 14.65 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.978e-06/0.1399, allocations: 8 kB / 487.2 MB, free: 14.64 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004331/0.1404, allocations: 186.1 kB / 487.4 MB, free: 14.46 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00142/0.1418, allocations: 0.8382 MB / 488.3 MB, free: 13.57 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005069/0.1423, allocations: 202.8 kB / 488.5 MB, free: 13.36 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002168/0.1426, allocations: 100.8 kB / 488.6 MB, free: 13.26 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.915e-05/0.1426, allocations: 19.86 kB / 488.6 MB, free: 13.24 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004283/0.143, allocations: 223.1 kB / 488.8 MB, free: 13.01 MB / 366.1 MB Notification: Performance of pre-optimization done (n=31): time 2.014e-06/0.1431, allocations: 0 / 488.8 MB, free: 13.01 MB / 366.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008562/0.1439, allocations: 369.8 kB / 489.2 MB, free: 12.64 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.298e-05/0.144, allocations: 63.34 kB / 489.2 MB, free: 12.57 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002838/0.1443, allocations: 266.9 kB / 489.5 MB, free: 12.3 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.067e-05/0.1443, allocations: 41.69 kB / 489.5 MB, free: 12.25 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001567/0.1445, allocations: 172.6 kB / 489.7 MB, free: 12.08 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001023/0.1446, allocations: 102.5 kB / 489.8 MB, free: 11.98 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001132/0.1447, allocations: 70.06 kB / 489.9 MB, free: 11.9 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001693/0.1449, allocations: 350.8 kB / 490.2 MB, free: 11.55 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002167/0.1451, allocations: 88.7 kB / 490.3 MB, free: 11.46 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000374/0.1455, allocations: 226.6 kB / 490.5 MB, free: 11.18 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005678/0.1461, allocations: 348.7 kB / 490.9 MB, free: 10.78 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.1461, allocations: 0 / 490.9 MB, free: 10.78 MB / 366.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.000818/0.1469, allocations: 372.7 kB / 491.2 MB, free: 10.41 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.079e-05/0.1469, allocations: 8 kB / 491.2 MB, free: 10.4 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.908e-06/0.1469, allocations: 4.469 kB / 491.2 MB, free: 10.39 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.235e-05/0.147, allocations: 12 kB / 491.2 MB, free: 10.38 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003083/0.1473, allocations: 83.83 kB / 491.3 MB, free: 10.3 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.273e-05/0.1473, allocations: 4 kB / 491.3 MB, free: 10.3 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002858/0.1476, allocations: 39.67 kB / 491.4 MB, free: 10.26 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.985e-05/0.1476, allocations: 16 kB / 491.4 MB, free: 10.24 MB / 366.1 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.mean2.y_last,$PRE.harmonic.mean2.y_last,harmonic.mean1.y_last,$PRE.harmonic.mean1.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.0002028/0.1479, allocations: 165.7 kB / 491.5 MB, free: 10.07 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.147e-05/0.1479, allocations: 35.56 kB / 491.6 MB, free: 10.04 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006964/0.1486, allocations: 325.3 kB / 491.9 MB, free: 9.711 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.422e-06/0.1486, allocations: 4 kB / 491.9 MB, free: 9.707 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.224e-05/0.1487, allocations: 3.984 kB / 491.9 MB, free: 9.703 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.102e-06/0.1487, allocations: 3.938 kB / 491.9 MB, free: 9.699 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001074/0.1498, allocations: 0.7245 MB / 492.6 MB, free: 8.918 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.045e-06/0.1498, allocations: 0 / 492.6 MB, free: 8.918 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002578/0.15, allocations: 51.89 kB / 492.7 MB, free: 8.867 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.747e-06/0.15, allocations: 0 / 492.7 MB, free: 8.867 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.562e-05/0.1501, allocations: 8 kB / 492.7 MB, free: 8.859 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.245e-06/0.1501, allocations: 0 / 492.7 MB, free: 8.859 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.36e-06/0.1501, allocations: 7.984 kB / 492.7 MB, free: 8.852 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009407/0.151, allocations: 0.5189 MB / 493.2 MB, free: 8.316 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001448/0.1512, allocations: 108.7 kB / 493.3 MB, free: 8.191 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.361e-05/0.1512, allocations: 12.06 kB / 493.3 MB, free: 8.18 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001699/0.1514, allocations: 11.98 kB / 493.3 MB, free: 8.168 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001023/0.1515, allocations: 23.97 kB / 493.4 MB, free: 8.145 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.768e-05/0.1516, allocations: 15.98 kB / 493.4 MB, free: 8.129 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002083/0.1518, allocations: 190 kB / 493.6 MB, free: 7.945 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.944e-06/0.1518, allocations: 3.938 kB / 493.6 MB, free: 7.941 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000385/0.1522, allocations: 79.62 kB / 493.7 MB, free: 7.863 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (mean.x,rectifiedMean.mean.x,rootMeanSquare.mean.x,harmonic.mean1.x,harmonic.mean2.x) * Number of discrete variables: 10 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,mean.y_last,rectifiedMean.mean.y_last,rootMeanSquare.mean.y_last,harmonic.mean1.y_last,harmonic.mean2.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.0001601/0.1524, allocations: 108.3 kB / 493.8 MB, free: 7.75 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006939/0.1531, allocations: 287.4 kB / 494 MB, free: 7.469 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.095e-06/0.1531, allocations: 0 / 494 MB, free: 7.469 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002707/0.1533, allocations: 131.9 kB / 494.2 MB, free: 7.34 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000385/0.1537, allocations: 38.25 kB / 494.2 MB, free: 7.305 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001204/0.1549, allocations: 0.6742 MB / 494.9 MB, free: 6.598 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004557/0.1554, allocations: 0.788 MB / 495.7 MB, free: 5.781 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001178/0.1555, allocations: 39.42 kB / 495.7 MB, free: 5.742 MB / 366.1 MB Notification: Performance of SimCode: time 3.4e-07/0.1555, allocations: 0 / 495.7 MB, free: 5.742 MB / 366.1 MB Notification: Performance of Templates: time 0.006878/0.1624, allocations: 3.857 MB / 499.6 MB, free: 1.895 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.Mean.makefile (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) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.Mean_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/Mean/Mean.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.Mean.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches