Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Blocks.Mean.conf.json Using package ModelicaTest with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mean.x|mean.y",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Blocks.Mean") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.003822/0.003827, allocations: 369.4 kB / 15.96 MB, free: 6.199 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 4.032/4.032, allocations: 388.9 MB / 405.6 MB, free: 10.33 MB / 346.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.003523/0.003523, allocations: 235.2 kB / 451 MB, free: 145.1 MB / 346.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.4933/0.4933, allocations: 80.03 MB / 0.5627 GB, free: 19.85 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004595/0.0004597, allocations: 8 kB / 0.6265 GB, free: 96.57 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09325/0.09373, allocations: 54.87 MB / 0.6801 GB, free: 41.68 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.002474/0.09626, allocations: 1.795 MB / 0.6818 GB, free: 39.86 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001419/0.09771, allocations: 0.7339 MB / 0.6826 GB, free: 39.12 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001509/0.09788, allocations: 7.938 kB / 0.6826 GB, free: 39.12 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001127/0.09801, allocations: 19.78 kB / 0.6826 GB, free: 39.1 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002173/0.09824, allocations: 39.66 kB / 0.6826 GB, free: 39.06 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003521/0.09861, allocations: 99.81 kB / 0.6827 GB, free: 38.96 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.000317/0.09894, allocations: 295.2 kB / 0.683 GB, free: 38.67 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002385/0.09919, allocations: 106.5 kB / 0.6831 GB, free: 38.57 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001584/0.09936, allocations: 99.5 kB / 0.6832 GB, free: 38.47 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001882/0.09956, allocations: 115.3 kB / 0.6833 GB, free: 38.36 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 4.43e-05/0.09962, allocations: 12 kB / 0.6833 GB, free: 38.34 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.412e-05/0.09968, allocations: 8 kB / 0.6833 GB, free: 38.34 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 6.005e-05/0.09974, allocations: 51.75 kB / 0.6834 GB, free: 38.29 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 6.436e-05/0.09982, allocations: 69.58 kB / 0.6834 GB, free: 38.21 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002689/0.1001, allocations: 239.7 kB / 0.6837 GB, free: 37.98 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.681e-06/0.1001, allocations: 0 / 0.6837 GB, free: 37.98 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.245e-06/0.1001, allocations: 0 / 0.6837 GB, free: 37.98 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.032e-06/0.1001, allocations: 4 kB / 0.6837 GB, free: 37.97 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: 57 * Number of variables: 57 Notification: Performance of Generate backend data structure: time 0.001187/0.1013, allocations: 0.5437 MB / 0.6842 GB, free: 37.38 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.588e-05/0.1014, allocations: 8.031 kB / 0.6842 GB, free: 37.38 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.851e-05/0.1015, allocations: 43.61 kB / 0.6843 GB, free: 37.33 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005864/0.1021, allocations: 314.1 kB / 0.6846 GB, free: 36.98 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.397e-05/0.1022, allocations: 20.56 kB / 0.6846 GB, free: 36.96 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.875e-05/0.1022, allocations: 31.98 kB / 0.6846 GB, free: 36.93 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007016/0.1029, allocations: 252.8 kB / 0.6848 GB, free: 36.68 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.335e-05/0.103, allocations: 7.906 kB / 0.6849 GB, free: 36.67 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.138e-05/0.103, allocations: 8 kB / 0.6849 GB, free: 36.66 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.398e-06/0.1031, allocations: 11.95 kB / 0.6849 GB, free: 36.65 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006258/0.1037, allocations: 194.1 kB / 0.6851 GB, free: 36.46 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001703/0.1054, allocations: 0.7759 MB / 0.6858 GB, free: 35.64 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005842/0.106, allocations: 206.8 kB / 0.686 GB, free: 35.43 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003152/0.1063, allocations: 108.8 kB / 0.6861 GB, free: 35.32 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.189e-05/0.1064, allocations: 4 kB / 0.6861 GB, free: 35.31 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005758/0.107, allocations: 241.2 kB / 0.6864 GB, free: 35.07 MB / 346.7 MB Notification: Performance of pre-optimization done (n=31): time 3.506e-06/0.107, allocations: 0 / 0.6864 GB, free: 35.07 MB / 346.7 MB Notification: Performance of matching and sorting (n=31): time 0.001193/0.1082, allocations: 385.2 kB / 0.6867 GB, free: 34.68 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.299e-05/0.1083, allocations: 59.39 kB / 0.6868 GB, free: 34.61 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000262/0.1086, allocations: 224.9 kB / 0.687 GB, free: 34.39 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.095e-05/0.1086, allocations: 37.7 kB / 0.687 GB, free: 34.34 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001008/0.1087, allocations: 160.6 kB / 0.6872 GB, free: 34.18 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.995e-05/0.1088, allocations: 102.6 kB / 0.6873 GB, free: 34.08 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.565e-05/0.1089, allocations: 8 kB / 0.6873 GB, free: 34.07 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 7.499e-05/0.1089, allocations: 334.8 kB / 0.6876 GB, free: 33.73 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003114/0.1093, allocations: 88.7 kB / 0.6877 GB, free: 33.64 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003815/0.1097, allocations: 241.4 kB / 0.6879 GB, free: 33.35 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003705/0.1101, allocations: 127.9 kB / 0.688 GB, free: 33.23 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.172e-06/0.1101, allocations: 4 kB / 0.688 GB, free: 33.22 MB / 346.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0009715/0.1111, allocations: 376.7 kB / 0.6884 GB, free: 32.85 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.026e-05/0.1111, allocations: 8.469 kB / 0.6884 GB, free: 32.84 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.114e-05/0.1111, allocations: 8 kB / 0.6884 GB, free: 32.83 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.842e-05/0.1111, allocations: 8 kB / 0.6884 GB, free: 32.82 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005089/0.1117, allocations: 71.84 kB / 0.6885 GB, free: 32.75 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.632e-05/0.1117, allocations: 11.98 kB / 0.6885 GB, free: 32.74 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002827/0.112, allocations: 35.75 kB / 0.6885 GB, free: 32.71 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.384e-05/0.112, allocations: 19.92 kB / 0.6886 GB, free: 32.69 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,$PRE.mean.y,mean.y,$PRE.rectifiedMean.mean.y,rectifiedMean.mean.y,$PRE.rootMeanSquare.mean.y,rootMeanSquare.mean.y,$PRE.harmonic.mean1.y,harmonic.mean1.y,$PRE.harmonic.mean2.y,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002138/0.1123, allocations: 166.3 kB / 0.6887 GB, free: 32.52 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.563e-05/0.1123, allocations: 35.64 kB / 0.6888 GB, free: 32.48 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009255/0.1133, allocations: 325.7 kB / 0.6891 GB, free: 32.16 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.323e-06/0.1133, allocations: 4 kB / 0.6891 GB, free: 32.16 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.1133, allocations: 0 / 0.6891 GB, free: 32.16 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.696e-05/0.1134, allocations: 108.8 kB / 0.6892 GB, free: 32.04 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.462e-05/0.1134, allocations: 8.094 kB / 0.6892 GB, free: 32.03 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002485/0.1137, allocations: 23.92 kB / 0.6892 GB, free: 32 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.322e-05/0.1138, allocations: 27.92 kB / 0.6892 GB, free: 31.98 MB / 346.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001215/0.115, allocations: 417.8 kB / 0.6896 GB, free: 31.56 MB / 346.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.001307/0.1164, allocations: 0.6314 MB / 0.6902 GB, free: 30.91 MB / 346.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.000356/0.1167, allocations: 128 kB / 0.6904 GB, free: 30.79 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001707/0.1169, allocations: 164.5 kB / 0.6905 GB, free: 30.63 MB / 346.7 MB Notification: Performance of Backend: time 8.41e-07/0.1169, allocations: 0 / 0.6905 GB, free: 30.63 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0008883/0.1178, allocations: 260.5 kB / 0.6908 GB, free: 30.37 MB / 346.7 MB Notification: Performance of SimCode: time 0.00121/0.1191, allocations: 1.078 MB / 0.6918 GB, free: 29.25 MB / 346.7 MB Notification: Performance of Templates: time 0.008566/0.1277, allocations: 2.629 MB / 0.6944 GB, free: 26.63 MB / 346.7 MB "" Variables in the reference:time,mean.x,mean.y Variables in the result:cosine.amplitude,cosine.freqHz,cosine.offset,cosine.phase,cosine.startTime,harmonic.f,harmonic.k,harmonic.mean1.f,harmonic.mean1.t0,harmonic.mean1.x0,harmonic.mean1.yGreaterOrEqualZero,harmonic.mean2.f,harmonic.mean2.t0,harmonic.mean2.x0,harmonic.mean2.yGreaterOrEqualZero,harmonic.product1.significantDigits,harmonic.product2.significantDigits,harmonic.sin1.amplitude,harmonic.sin1.freqHz,harmonic.sin1.offset,harmonic.sin1.phase,harmonic.sin1.startTime,harmonic.sin2.amplitude,harmonic.sin2.freqHz,harmonic.sin2.offset,harmonic.sin2.phase,harmonic.sin2.startTime,harmonic.x0Cos,harmonic.x0Sin,mean.f,mean.t0,mean.x,mean.x0,mean.y,mean.yGreaterOrEqualZero,rectifiedMean.abs1.generateEvent,rectifiedMean.f,rectifiedMean.mean.f,rectifiedMean.mean.t0,rectifiedMean.mean.x0,rectifiedMean.mean.yGreaterOrEqualZero,rectifiedMean.x0,rootMeanSquare.f,rootMeanSquare.mean.f,rootMeanSquare.mean.t0,rootMeanSquare.mean.x0,rootMeanSquare.mean.yGreaterOrEqualZero,rootMeanSquare.product.significantDigits,rootMeanSquare.x0,time