Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Continuous_InitialState.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 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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: "" <> buildModelFMU(ModelicaTest.Blocks.Continuous_InitialState,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_Continuous_InitialState",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Continuous_InitialState,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_Continuous_InitialState",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001726/0.001726, allocations: 103.7 kB / 17.63 MB, free: 5.543 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002803/0.002803, allocations: 212.6 kB / 18.58 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.473/1.473, allocations: 227.4 MB / 246.8 MB, free: 10.59 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2258/0.2258, allocations: 46.12 MB / 344.2 MB, free: 11.59 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002325/0.002325, allocations: 83.89 kB / 417.8 MB, free: 19.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1153/0.1177, allocations: 62.45 MB / 480.2 MB, free: 5.168 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Continuous_InitialState): time 0.005156/0.1229, allocations: 3.363 MB / 483.6 MB, free: 1.789 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003182/0.1261, allocations: 1.606 MB / 485.2 MB, free: 180 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005405/0.1266, allocations: 23.88 kB / 485.2 MB, free: 156 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006096/0.1273, allocations: 138.8 kB / 485.3 MB, free: 16 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005361/0.1278, allocations: 186.7 kB / 485.5 MB, free: 15.83 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001396/0.1292, allocations: 0.5441 MB / 486.1 MB, free: 15.29 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009831/0.1302, allocations: 0.9006 MB / 487 MB, free: 14.39 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003709/0.1306, allocations: 226.4 kB / 487.2 MB, free: 14.16 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004676/0.1311, allocations: 358.5 kB / 487.5 MB, free: 13.8 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004983/0.1316, allocations: 402.1 kB / 487.9 MB, free: 13.41 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001106/0.1317, allocations: 64 kB / 488 MB, free: 13.35 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001396/0.1319, allocations: 68 kB / 488 MB, free: 13.28 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002385/0.1321, allocations: 207.2 kB / 488.3 MB, free: 13.08 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003214/0.1325, allocations: 341.8 kB / 488.6 MB, free: 12.74 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008169/0.1333, allocations: 0.7473 MB / 489.3 MB, free: 11.99 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.1333, allocations: 0 / 489.3 MB, free: 11.99 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.163e-06/0.1333, allocations: 0 / 489.3 MB, free: 11.99 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.978e-06/0.1333, allocations: 0 / 489.3 MB, free: 11.99 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 110 * Number of variables: 110 Notification: Performance of Generate backend data structure: time 0.002335/0.1357, allocations: 1.16 MB / 490.5 MB, free: 10.78 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.851e-05/0.1357, allocations: 9.109 kB / 490.5 MB, free: 10.77 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001055/0.1358, allocations: 86.72 kB / 490.6 MB, free: 10.68 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002463/0.1361, allocations: 99.8 kB / 490.7 MB, free: 10.58 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009017/0.137, allocations: 0.5546 MB / 491.2 MB, free: 9.988 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.43e-05/0.137, allocations: 37.38 kB / 491.3 MB, free: 9.953 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001015/0.1371, allocations: 64.27 kB / 491.3 MB, free: 9.891 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001147/0.1383, allocations: 0.6222 MB / 492 MB, free: 9.215 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.367e-05/0.1383, allocations: 7.938 kB / 492 MB, free: 9.207 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.217e-05/0.1384, allocations: 20 kB / 492 MB, free: 9.188 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.514e-05/0.1384, allocations: 12 kB / 492 MB, free: 9.176 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001133/0.1396, allocations: 461.8 kB / 492.4 MB, free: 8.723 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003797/0.1434, allocations: 2.663 MB / 495.1 MB, free: 5.961 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001197/0.1446, allocations: 0.5487 MB / 495.7 MB, free: 5.387 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006155/0.1452, allocations: 246.4 kB / 495.9 MB, free: 5.137 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.132e-05/0.1453, allocations: 8 kB / 495.9 MB, free: 5.129 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.945e-05/0.1453, allocations: 46.58 kB / 496 MB, free: 5.074 MB / 366.1 MB Notification: Performance of pre-optimization done (n=43): time 1.954e-06/0.1453, allocations: 0 / 496 MB, free: 5.074 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.002677/0.148, allocations: 1.132 MB / 497.1 MB, free: 3.93 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001147/0.1481, allocations: 170.1 kB / 497.3 MB, free: 3.727 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009632/0.1491, allocations: 0.6529 MB / 497.9 MB, free: 3.062 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.041e-05/0.1492, allocations: 37.7 kB / 497.9 MB, free: 3.02 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003147/0.1495, allocations: 360 kB / 498.3 MB, free: 2.66 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001658/0.1497, allocations: 173.5 kB / 498.5 MB, free: 2.488 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002068/0.1499, allocations: 118.2 kB / 498.6 MB, free: 2.367 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001593/0.15, allocations: 337.9 kB / 498.9 MB, free: 2.031 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006893/0.1507, allocations: 271.3 kB / 499.2 MB, free: 1.762 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008124/0.1515, allocations: 433.5 kB / 499.6 MB, free: 1.27 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001415/0.153, allocations: 0.6701 MB / 0.4885 GB, free: 0.543 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.153, allocations: 4 kB / 0.4885 GB, free: 0.5391 MB / 366.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.0018/0.1548, allocations: 0.7947 MB / 0.4893 GB, free: 15.73 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.178e-05/0.1548, allocations: 8.531 kB / 0.4893 GB, free: 15.73 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.03e-05/0.1549, allocations: 8 kB / 0.4893 GB, free: 15.72 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.24e-05/0.1549, allocations: 8 kB / 0.4893 GB, free: 15.71 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007197/0.1556, allocations: 143.8 kB / 0.4895 GB, free: 15.57 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.125e-05/0.1556, allocations: 15.92 kB / 0.4895 GB, free: 15.55 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005591/0.1562, allocations: 83.56 kB / 0.4896 GB, free: 15.47 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.53e-05/0.1563, allocations: 24 kB / 0.4896 GB, free: 15.45 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008526/0.1571, allocations: 409.3 kB / 0.49 GB, free: 15.04 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007495/0.1579, allocations: 417.3 kB / 0.4904 GB, free: 14.57 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001322/0.1592, allocations: 0.6623 MB / 0.491 GB, free: 13.85 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.234e-06/0.1592, allocations: 0 / 0.491 GB, free: 13.85 MB / 382.1 MB Notification: Performance of matching and sorting (n=77) (initialization_lambda0): time 0.001661/0.1609, allocations: 0.7689 MB / 0.4918 GB, free: 13.07 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.2e-05/0.1609, allocations: 6.656 kB / 0.4918 GB, free: 13.07 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.748e-06/0.1609, allocations: 11.98 kB / 0.4918 GB, free: 13.06 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.829e-06/0.1609, allocations: 4 kB / 0.4918 GB, free: 13.05 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006333/0.1616, allocations: 151.7 kB / 0.492 GB, free: 12.91 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.702e-05/0.1616, allocations: 11.94 kB / 0.492 GB, free: 12.89 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005365/0.1622, allocations: 79.62 kB / 0.492 GB, free: 12.82 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.625e-05/0.1622, allocations: 28 kB / 0.4921 GB, free: 12.79 MB / 382.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: 4 (limPID.I.local_reset,pID.I.local_reset,limIntegrator.local_reset,integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (77): * Single equations (assignments): 77 * 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.0001945/0.1624, allocations: 216 kB / 0.4923 GB, free: 12.57 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000158/0.1626, allocations: 83 kB / 0.4924 GB, free: 12.49 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002055/0.1628, allocations: 94.2 kB / 0.4924 GB, free: 12.39 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.604e-06/0.1628, allocations: 7.938 kB / 0.4924 GB, free: 12.39 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.591e-06/0.1628, allocations: 0 / 0.4924 GB, free: 12.39 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.18e-06/0.1628, allocations: 4 kB / 0.4925 GB, free: 12.38 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001355/0.1642, allocations: 0.8454 MB / 0.4933 GB, free: 11.48 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.849e-06/0.1642, allocations: 3.938 kB / 0.4933 GB, free: 11.48 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006636/0.1649, allocations: 103.9 kB / 0.4934 GB, free: 11.38 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.563e-06/0.1649, allocations: 4 kB / 0.4934 GB, free: 11.38 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.521e-05/0.1649, allocations: 16 kB / 0.4934 GB, free: 11.36 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.042e-06/0.165, allocations: 7.938 kB / 0.4934 GB, free: 11.35 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.165, allocations: 0 / 0.4934 GB, free: 11.35 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002143/0.1671, allocations: 1.129 MB / 0.4945 GB, free: 10.2 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002517/0.1674, allocations: 200.1 kB / 0.4947 GB, free: 9.984 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.191e-05/0.1675, allocations: 16 kB / 0.4947 GB, free: 9.969 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005564/0.168, allocations: 47.94 kB / 0.4948 GB, free: 9.922 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001166/0.1682, allocations: 35.95 kB / 0.4948 GB, free: 9.887 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.493e-05/0.1682, allocations: 19.98 kB / 0.4948 GB, free: 9.867 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006882/0.1689, allocations: 462.9 kB / 0.4953 GB, free: 9.418 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1689, allocations: 0 / 0.4953 GB, free: 9.418 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000765/0.1697, allocations: 192 kB / 0.4954 GB, free: 9.23 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 18 (limPID.I.y,limPID.D.x,transferFunction.x_scaled[1],stateSpace.x[1],stateSpace.x[2],lowpassButterworth.x1[1],lowpassButterworth.x2[1],criticalDamping.x[1],criticalDamping.x[2],integrator.y,limIntegrator.y,derivative.x,firstOrder.y,secondOrder.y,secondOrder.yd,pI.x,pID.I.y,pID.D.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (44): * Single equations (assignments): 44 * 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 Backend phase and start with SimCode phase: time 0.002478/0.1722, allocations: 1.689 MB / 0.4971 GB, free: 7.516 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002289/0.1745, allocations: 0.9939 MB / 0.4981 GB, free: 6.523 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.1745, allocations: 4.062 kB / 0.4981 GB, free: 6.52 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006567/0.1751, allocations: 279.6 kB / 0.4983 GB, free: 6.246 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001083/0.1762, allocations: 196.3 kB / 0.4985 GB, free: 6.062 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.18/0.3562, allocations: 6.874 MB / 0.5052 GB, free: 40.26 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004616/0.3567, allocations: 0.9536 MB / 0.5062 GB, free: 39.56 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006416/0.3574, allocations: 148 kB / 0.5063 GB, free: 39.56 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003332/0.3577, allocations: 259.9 kB / 0.5066 GB, free: 39.55 MB / 382.1 MB Notification: Performance of SimCode: time 9.82e-07/0.3577, allocations: 0 / 0.5066 GB, free: 39.55 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04112/0.3988, allocations: 14.34 MB / 0.5206 GB, free: 35.59 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.13/8.529, allocations: 16.39 kB / 0.5206 GB, free: 35.58 MB / 382.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Continuous_InitialState.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Continuous_InitialState.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Continuous_InitialState.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Continuous_InitialState.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Continuous_InitialState_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00044 ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_Continuous_InitialState.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Continuous_InitialState.pipe 2>&1)