Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Blocks.Mean.conf.json Using package ModelicaTest with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package ModelicaServices with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+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.1_ModelicaTest.Blocks.Mean") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.004192/0.004197, allocations: 348.4 kB / 15.94 MB, free: 6.215 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 3.919/3.919, allocations: 341.5 MB / 358.2 MB, free: 12.56 MB / 298.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.00362/0.00362, allocations: 225.1 kB / 397.9 MB, free: 4.902 MB / 330.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.5599/0.5599, allocations: 76.08 MB / 0.5014 GB, free: 112.6 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004603/0.0004605, allocations: 16 kB / 0.5592 GB, free: 53.47 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09065/0.09114, allocations: 48.7 MB / 0.6067 GB, free: 4.656 MB / 362.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.001636/0.09284, allocations: 1.174 MB / 0.6079 GB, free: 3.469 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009196/0.09379, allocations: 475.2 kB / 0.6083 GB, free: 3 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.493e-05/0.09388, allocations: 0 / 0.6083 GB, free: 3 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 1.626e-05/0.09392, allocations: 0 / 0.6083 GB, free: 3 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 7.354e-05/0.094, allocations: 7.938 kB / 0.6083 GB, free: 2.992 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001927/0.0942, allocations: 19.91 kB / 0.6084 GB, free: 2.973 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 7.873e-05/0.0943, allocations: 39.86 kB / 0.6084 GB, free: 2.934 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.52e-05/0.09439, allocations: 7.984 kB / 0.6084 GB, free: 2.926 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001023/0.09451, allocations: 27.92 kB / 0.6084 GB, free: 2.898 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.024e-05/0.09458, allocations: 11.92 kB / 0.6084 GB, free: 2.887 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 2.182e-05/0.09462, allocations: 0 / 0.6084 GB, free: 2.887 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.489e-05/0.09464, allocations: 4 kB / 0.6084 GB, free: 2.883 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 1.788e-05/0.09467, allocations: 7.984 kB / 0.6085 GB, free: 2.875 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 3.006e-05/0.09471, allocations: 37.58 kB / 0.6085 GB, free: 2.832 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 6.824e-05/0.09478, allocations: 28.17 kB / 0.6085 GB, free: 2.805 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.65e-06/0.0948, allocations: 0 / 0.6085 GB, free: 2.805 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.743e-06/0.09481, allocations: 0 / 0.6085 GB, free: 2.805 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.137e-06/0.09482, allocations: 0 / 0.6085 GB, free: 2.805 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0004629/0.09529, allocations: 351.1 kB / 0.6088 GB, free: 2.414 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.351e-05/0.09535, allocations: 8.031 kB / 0.6089 GB, free: 2.406 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.891e-05/0.0954, allocations: 4 kB / 0.6089 GB, free: 2.402 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001474/0.09555, allocations: 174.9 kB / 0.609 GB, free: 2.191 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.633e-05/0.09558, allocations: 4 kB / 0.609 GB, free: 2.188 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.335e-05/0.09561, allocations: 4 kB / 0.609 GB, free: 2.184 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001734/0.0958, allocations: 57.61 kB / 0.6091 GB, free: 2.121 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.25e-05/0.09582, allocations: 0 / 0.6091 GB, free: 2.121 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.334e-05/0.09584, allocations: 0 / 0.6091 GB, free: 2.121 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.295e-06/0.09586, allocations: 7.938 kB / 0.6091 GB, free: 2.113 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001311/0.096, allocations: 31.91 kB / 0.6091 GB, free: 2.082 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003959/0.09641, allocations: 265 kB / 0.6094 GB, free: 1.773 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001056/0.09653, allocations: 34.56 kB / 0.6094 GB, free: 1.73 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.649e-05/0.09662, allocations: 16.86 kB / 0.6094 GB, free: 1.711 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.893e-05/0.09666, allocations: 0 / 0.6094 GB, free: 1.711 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002327/0.0969, allocations: 79.36 kB / 0.6095 GB, free: 1.621 MB / 362.7 MB Notification: Performance of pre-optimization done (n=4): time 2.174e-06/0.09691, allocations: 4 kB / 0.6095 GB, free: 1.617 MB / 362.7 MB Notification: Performance of matching and sorting (n=4): time 0.0003586/0.09728, allocations: 85.56 kB / 0.6096 GB, free: 1.527 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.98e-05/0.09733, allocations: 55.41 kB / 0.6096 GB, free: 1.461 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.383e-05/0.09742, allocations: 110 kB / 0.6097 GB, free: 1.344 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.552e-05/0.09745, allocations: 29.7 kB / 0.6098 GB, free: 1.309 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.711e-05/0.09749, allocations: 88.14 kB / 0.6099 GB, free: 1.219 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.38e-05/0.09753, allocations: 15.83 kB / 0.6099 GB, free: 1.203 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.546e-06/0.09758, allocations: 0 / 0.6099 GB, free: 1.203 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.427e-05/0.09766, allocations: 318.8 kB / 0.6102 GB, free: 0.8828 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.827e-05/0.09774, allocations: 19.98 kB / 0.6102 GB, free: 0.8633 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.073e-05/0.09785, allocations: 48.28 kB / 0.6102 GB, free: 0.8008 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.316e-05/0.09795, allocations: 16 kB / 0.6103 GB, free: 0.7852 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.09797, allocations: 0 / 0.6103 GB, free: 0.7852 MB / 362.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002454/0.09822, allocations: 97.52 kB / 0.6104 GB, free: 0.6836 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.789e-05/0.09825, allocations: 7.938 kB / 0.6104 GB, free: 0.6758 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.137e-06/0.09827, allocations: 7.953 kB / 0.6104 GB, free: 0.668 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.788e-05/0.0983, allocations: 0 / 0.6104 GB, free: 0.668 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000133/0.09844, allocations: 15.98 kB / 0.6104 GB, free: 0.6523 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.995e-06/0.09846, allocations: 4 kB / 0.6104 GB, free: 0.6484 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.185e-05/0.09854, allocations: 4 kB / 0.6104 GB, free: 0.6445 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.227e-05/0.09857, allocations: 4 kB / 0.6104 GB, free: 0.6406 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 ($PRE.mean.y,mean.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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 8.595e-05/0.09866, allocations: 128.3 kB / 0.6105 GB, free: 0.5078 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.666e-05/0.09869, allocations: 4.281 kB / 0.6105 GB, free: 0.5039 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.9e-05/0.09873, allocations: 7.906 kB / 0.6105 GB, free: 0.4922 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.09875, allocations: 3.953 kB / 0.6105 GB, free: 500 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.492e-06/0.09876, allocations: 0 / 0.6105 GB, free: 500 kB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.719e-05/0.09882, allocations: 93.03 kB / 0.6106 GB, free: 388 kB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.555e-05/0.09886, allocations: 0 / 0.6106 GB, free: 388 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.562e-05/0.09894, allocations: 0 / 0.6106 GB, free: 388 kB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.041e-05/0.09899, allocations: 11.98 kB / 0.6106 GB, free: 376 kB / 362.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0003213/0.09932, allocations: 152.8 kB / 0.6108 GB, free: 216 kB / 362.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.2693/0.3686, allocations: 269.6 kB / 0.611 GB, free: 90.42 MB / 362.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001083/0.3688, allocations: 21.08 kB / 0.6111 GB, free: 90.42 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.241e-05/0.3688, allocations: 89.28 kB / 0.6111 GB, free: 90.35 MB / 362.7 MB Notification: Performance of Backend: time 4.3e-07/0.3689, allocations: 0 / 0.6111 GB, free: 90.35 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004929/0.3694, allocations: 104 kB / 0.6112 GB, free: 90.29 MB / 362.7 MB Notification: Performance of SimCode: time 0.000518/0.3699, allocations: 0.6122 MB / 0.6118 GB, free: 89.69 MB / 362.7 MB Notification: Performance of Templates: time 0.003368/0.3733, allocations: 469.4 kB / 0.6123 GB, free: 89.69 MB / 362.7 MB "" Variables in the reference:time,mean.x,mean.y Variables in the result:mean.f,mean.t0,mean.x,mean.x0,mean.y,mean.yGreaterOrEqualZero,sine.amplitude,sine.freqHz,sine.offset,sine.phase,sine.startTime,time