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: "" <> buildModelFMU(ModelicaTest.Blocks.Mean,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Blocks_Mean",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.009672/0.009672, allocations: 164.1 kB / 15.12 MB, free: 6.027 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 1.908/1.908, allocations: 170.8 MB / 186.6 MB, free: 1.125 MB / 154.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.002524/0.002524, allocations: 118.4 kB / 226.2 MB, free: 10.09 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.5233/0.5233, allocations: 38.05 MB / 303.7 MB, free: 42.36 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004925/0.0004927, allocations: 12 kB / 363 MB, free: 5.492 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1076/0.1081, allocations: 48.71 MB / 411.7 MB, free: 4.703 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.002687/0.1109, allocations: 1.165 MB / 412.9 MB, free: 3.527 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.001302/0.1122, allocations: 471.5 kB / 413.3 MB, free: 3.062 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.886e-05/0.1123, allocations: 4 kB / 413.3 MB, free: 3.059 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 2.567e-05/0.1124, allocations: 3.938 kB / 413.3 MB, free: 3.055 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 8.554e-05/0.1125, allocations: 11.92 kB / 413.3 MB, free: 3.043 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002157/0.1127, allocations: 11.98 kB / 413.4 MB, free: 3.031 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001183/0.1128, allocations: 47.84 kB / 413.4 MB, free: 2.984 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.573e-05/0.1129, allocations: 4 kB / 413.4 MB, free: 2.98 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000121/0.1131, allocations: 19.91 kB / 413.4 MB, free: 2.961 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001062/0.1132, allocations: 15.92 kB / 413.4 MB, free: 2.945 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 2.719e-05/0.1132, allocations: 4 kB / 413.4 MB, free: 2.941 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.668e-05/0.1133, allocations: 0 / 413.4 MB, free: 2.941 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 2.366e-05/0.1133, allocations: 7.938 kB / 413.4 MB, free: 2.934 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 4.568e-05/0.1134, allocations: 29.7 kB / 413.5 MB, free: 2.898 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001029/0.1135, allocations: 36.16 kB / 413.5 MB, free: 2.863 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.962e-06/0.1135, allocations: 4 kB / 413.5 MB, free: 2.859 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.234e-06/0.1135, allocations: 0 / 413.5 MB, free: 2.859 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.899e-06/0.1135, allocations: 0 / 413.5 MB, free: 2.859 MB / 314.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.0006469/0.1142, allocations: 347.2 kB / 413.9 MB, free: 2.473 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.163e-05/0.1143, allocations: 8.031 kB / 413.9 MB, free: 2.465 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.036e-05/0.1143, allocations: 34.56 kB / 413.9 MB, free: 2.422 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.789e-05/0.1144, allocations: 0 / 413.9 MB, free: 2.422 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002362/0.1146, allocations: 178.9 kB / 414.1 MB, free: 2.207 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.526e-05/0.1147, allocations: 15.88 kB / 414.1 MB, free: 2.191 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.559e-05/0.1147, allocations: 0 / 414.1 MB, free: 2.191 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002315/0.115, allocations: 53.67 kB / 414.1 MB, free: 2.133 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.347e-05/0.115, allocations: 0 / 414.1 MB, free: 2.133 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.496e-05/0.115, allocations: 0 / 414.1 MB, free: 2.133 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.591e-06/0.115, allocations: 0 / 414.1 MB, free: 2.133 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001794/0.1152, allocations: 23.98 kB / 414.2 MB, free: 2.109 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005993/0.1158, allocations: 272.9 kB / 414.4 MB, free: 1.793 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001594/0.116, allocations: 34.5 kB / 414.5 MB, free: 1.75 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001201/0.1162, allocations: 24.88 kB / 414.5 MB, free: 1.723 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.924e-05/0.1162, allocations: 0 / 414.5 MB, free: 1.723 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002989/0.1165, allocations: 79.36 kB / 414.6 MB, free: 1.633 MB / 314.7 MB Notification: Performance of pre-optimization done (n=4): time 2.364e-06/0.1165, allocations: 0 / 414.6 MB, free: 1.633 MB / 314.7 MB Notification: Performance of matching and sorting (n=4): time 0.0004922/0.117, allocations: 89.52 kB / 414.7 MB, free: 1.539 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.175e-05/0.1171, allocations: 59.36 kB / 414.7 MB, free: 1.469 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001465/0.1173, allocations: 114 kB / 414.8 MB, free: 1.348 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.278e-05/0.1173, allocations: 33.7 kB / 414.9 MB, free: 1.309 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.303e-05/0.1174, allocations: 84.14 kB / 414.9 MB, free: 1.223 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.075e-05/0.1175, allocations: 11.84 kB / 414.9 MB, free: 1.211 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.895e-06/0.1175, allocations: 0 / 414.9 MB, free: 1.211 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001697/0.1177, allocations: 318.8 kB / 415.3 MB, free: 0.8906 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001095/0.1178, allocations: 12 kB / 415.3 MB, free: 0.8789 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000149/0.118, allocations: 52.28 kB / 415.3 MB, free: 0.8125 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001391/0.1181, allocations: 23.92 kB / 415.3 MB, free: 0.7891 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.526e-06/0.1182, allocations: 4 kB / 415.4 MB, free: 0.7852 MB / 314.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0003819/0.1186, allocations: 89.52 kB / 415.4 MB, free: 0.6914 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.418e-05/0.1186, allocations: 4 kB / 415.4 MB, free: 0.6875 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.504e-06/0.1186, allocations: 0 / 415.4 MB, free: 0.6875 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.616e-05/0.1187, allocations: 4 kB / 415.4 MB, free: 0.6836 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001724/0.1188, allocations: 15.92 kB / 415.5 MB, free: 0.668 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.172e-05/0.1189, allocations: 8.156 kB / 415.5 MB, free: 0.6602 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000118/0.119, allocations: 7.953 kB / 415.5 MB, free: 0.6523 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.744e-05/0.119, allocations: 4 kB / 415.5 MB, free: 0.6484 MB / 314.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 0.0001356/0.1192, allocations: 110.9 kB / 415.6 MB, free: 0.5312 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.965e-05/0.1192, allocations: 7.906 kB / 415.6 MB, free: 0.5234 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.683e-05/0.1193, allocations: 11.83 kB / 415.6 MB, free: 0.5039 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.298e-06/0.1193, allocations: 4 kB / 415.6 MB, free: 0.5 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.1193, allocations: 0 / 415.6 MB, free: 0.5 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.44e-06/0.1194, allocations: 4 kB / 415.6 MB, free: 0.4961 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002333/0.1196, allocations: 173.6 kB / 415.8 MB, free: 284 kB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.1196, allocations: 0 / 415.8 MB, free: 284 kB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001309/0.1198, allocations: 4.375 kB / 415.8 MB, free: 280 kB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.474e-06/0.1198, allocations: 3.984 kB / 415.8 MB, free: 276 kB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.661e-05/0.1198, allocations: 4 kB / 415.8 MB, free: 272 kB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.523e-06/0.1198, allocations: 160 / 415.8 MB, free: 272 kB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.1199, allocations: 7.875 kB / 415.8 MB, free: 264 kB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005136/0.1204, allocations: 125 kB / 415.9 MB, free: 120 kB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.28e-05/0.1205, allocations: 77.11 kB / 416 MB, free: 24 kB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.458e-05/0.1206, allocations: 8.031 kB / 416 MB, free: 16 kB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.97e-05/0.1207, allocations: 3.984 kB / 416 MB, free: 12 kB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.963e-05/0.1207, allocations: 4 kB / 416 MB, free: 8 kB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.241e-05/0.1208, allocations: 0 / 416 MB, free: 8 kB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001296/0.1209, allocations: 95.33 kB / 416.1 MB, free: 15.91 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.31e-07/0.1209, allocations: 0 / 416.1 MB, free: 15.91 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005147/0.1215, allocations: 8 kB / 416.1 MB, free: 15.91 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (mean.x) * Number of discrete variables: 2 ($whenCondition1,mean.y) * Number of discrete states: 1 (mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009339/0.1224, allocations: 0.6514 MB / 416.8 MB, free: 15.23 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.000315/0.1227, allocations: 47.91 kB / 416.8 MB, free: 15.18 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.1228, allocations: 0 / 416.8 MB, free: 15.18 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001502/0.1229, allocations: 19.98 kB / 416.8 MB, free: 15.16 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003151/0.1233, allocations: 4.375 kB / 416.8 MB, free: 15.16 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001657/0.1249, allocations: 0.5195 MB / 417.4 MB, free: 14.57 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008232/0.1332, allocations: 0.6848 MB / 418 MB, free: 13.86 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 8.399e-05/0.1333, allocations: 7.984 kB / 418.1 MB, free: 13.86 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.947e-05/0.1334, allocations: 19.42 kB / 418.1 MB, free: 13.84 MB / 330.7 MB Notification: Performance of SimCode: time 1.734e-06/0.1334, allocations: 4 kB / 418.1 MB, free: 13.83 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05631/0.1898, allocations: 1.227 MB / 419.3 MB, free: 12.64 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003399/0.1902, allocations: 156.4 kB / 419.5 MB, free: 12.41 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.467/2.657, allocations: 0 / 419.5 MB, free: 12.41 MB / 330.7 MB "" Variables in the reference:time,mean.x,mean.y Variables in the result:der(mean.x),mean.f,mean.t0,mean.u,mean.x,mean.x0,mean.y,mean.yGreaterOrEqualZero,sine.amplitude,sine.freqHz,sine.offset,sine.phase,sine.startTime,sine.y,time