Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ConversionBlocks.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.ConversionBlocks,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_ConversionBlocks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.ConversionBlocks,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_ConversionBlocks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001203/0.001203, allocations: 103.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00158/0.00158, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.48/1.48, allocations: 227.4 MB / 246.8 MB, free: 10.52 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.2488/0.2488, allocations: 46.12 MB / 344.2 MB, free: 11.55 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.002209/0.002209, allocations: 82.2 kB / 417.8 MB, free: 19.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1341/0.1363, allocations: 62.45 MB / 480.2 MB, free: 5.129 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ConversionBlocks): time 0.003994/0.1404, allocations: 2.116 MB / 482.3 MB, free: 3 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002159/0.1425, allocations: 1.379 MB / 483.7 MB, free: 1.613 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001001/0.1427, allocations: 7.938 kB / 483.7 MB, free: 1.605 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 6.283e-05/0.1428, allocations: 23.67 kB / 483.7 MB, free: 1.582 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001211/0.1429, allocations: 27.66 kB / 483.8 MB, free: 1.555 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005013/0.1434, allocations: 187.3 kB / 483.9 MB, free: 1.371 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002465/0.1437, allocations: 184.1 kB / 484.1 MB, free: 1.191 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002699/0.1439, allocations: 103.6 kB / 484.2 MB, free: 1.09 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001894/0.1441, allocations: 87.59 kB / 484.3 MB, free: 1.004 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001137/0.1443, allocations: 91.53 kB / 484.4 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.501e-05/0.1443, allocations: 16 kB / 484.4 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003112/0.1446, allocations: 147.9 kB / 484.6 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.913e-05/0.1447, allocations: 43.8 kB / 484.6 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.441e-05/0.1448, allocations: 95.45 kB / 484.7 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004081/0.1452, allocations: 311.3 kB / 485 MB, free: 320 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.1452, allocations: 0 / 485 MB, free: 320 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.1452, allocations: 0 / 485 MB, free: 320 kB / 350.1 MB Notification: Performance of Transformations before backend: time 7.003e-06/0.1452, allocations: 0 / 485 MB, free: 320 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: 66 * Number of variables: 66 Notification: Performance of Generate backend data structure: time 0.0006604/0.1459, allocations: 0.515 MB / 485.5 MB, free: 15.75 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.041e-05/0.1459, allocations: 12.03 kB / 485.5 MB, free: 15.74 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001078/0.146, allocations: 87.08 kB / 485.6 MB, free: 15.64 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009294/0.147, allocations: 88.59 kB / 485.7 MB, free: 15.56 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002362/0.1472, allocations: 219.9 kB / 485.9 MB, free: 15.3 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.65e-05/0.1473, allocations: 21.03 kB / 485.9 MB, free: 15.28 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.957e-05/0.1473, allocations: 32.38 kB / 486 MB, free: 15.25 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003788/0.1477, allocations: 234.2 kB / 486.2 MB, free: 15.02 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.012e-05/0.1477, allocations: 0 / 486.2 MB, free: 15.02 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.479e-05/0.1477, allocations: 20 kB / 486.2 MB, free: 15 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.808e-06/0.1478, allocations: 8 kB / 486.2 MB, free: 14.99 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002863/0.148, allocations: 158.5 kB / 486.4 MB, free: 14.84 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009329/0.149, allocations: 0.6594 MB / 487 MB, free: 14.12 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000522/0.1495, allocations: 231.4 kB / 487.3 MB, free: 13.89 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001297/0.1497, allocations: 65.3 kB / 487.3 MB, free: 13.82 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.089e-05/0.1497, allocations: 4.234 kB / 487.3 MB, free: 13.82 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.09e-05/0.1497, allocations: 38.78 kB / 487.4 MB, free: 13.77 MB / 366.1 MB Notification: Performance of pre-optimization done (n=27): time 4.999e-06/0.1497, allocations: 0 / 487.4 MB, free: 13.77 MB / 366.1 MB Notification: Performance of matching and sorting (n=27): time 0.000482/0.1502, allocations: 223.7 kB / 487.6 MB, free: 13.55 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.456e-05/0.1503, allocations: 63.34 kB / 487.6 MB, free: 13.47 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.635e-05/0.1504, allocations: 105.8 kB / 487.7 MB, free: 13.36 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.248e-05/0.1504, allocations: 25.7 kB / 487.8 MB, free: 13.33 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001011/0.1505, allocations: 152.3 kB / 487.9 MB, free: 13.18 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.725e-05/0.1506, allocations: 86.66 kB / 488 MB, free: 13.09 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.939e-05/0.1507, allocations: 41.72 kB / 488 MB, free: 13.04 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000167/0.1509, allocations: 322.8 kB / 488.4 MB, free: 12.72 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001012/0.151, allocations: 47.91 kB / 488.4 MB, free: 12.67 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.706e-05/0.1511, allocations: 47.95 kB / 488.5 MB, free: 12.62 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002119/0.1513, allocations: 114.2 kB / 488.6 MB, free: 12.51 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.1513, allocations: 4 kB / 488.6 MB, free: 12.51 MB / 366.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0002786/0.1516, allocations: 165.5 kB / 488.7 MB, free: 12.34 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.761e-05/0.1516, allocations: 4 kB / 488.7 MB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.019e-06/0.1516, allocations: 0 / 488.7 MB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.853e-05/0.1516, allocations: 8 kB / 488.7 MB, free: 12.33 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003625/0.152, allocations: 107.8 kB / 488.8 MB, free: 12.22 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.921e-06/0.152, allocations: 0 / 488.8 MB, free: 12.22 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.586e-05/0.1521, allocations: 11.84 kB / 488.9 MB, free: 12.21 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.461e-05/0.1521, allocations: 8 kB / 488.9 MB, free: 12.2 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 27 * 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.0001184/0.1522, allocations: 133.8 kB / 489 MB, free: 12.06 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.171e-05/0.1523, allocations: 11.89 kB / 489 MB, free: 12.05 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.987e-05/0.1523, allocations: 29.47 kB / 489 MB, free: 12.03 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.39e-06/0.1523, allocations: 3.938 kB / 489 MB, free: 12.02 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/0.1524, allocations: 0 / 489 MB, free: 12.02 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.1524, allocations: 4 kB / 489 MB, free: 12.02 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003163/0.1527, allocations: 289.3 kB / 489.3 MB, free: 11.69 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.1527, allocations: 256 / 489.3 MB, free: 11.69 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003516/0.1531, allocations: 107.9 kB / 489.4 MB, free: 11.58 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.1531, allocations: 0 / 489.4 MB, free: 11.58 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.314e-05/0.1531, allocations: 4 kB / 489.4 MB, free: 11.58 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.171e-06/0.1531, allocations: 7.938 kB / 489.4 MB, free: 11.57 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.422e-06/0.1531, allocations: 3.938 kB / 489.4 MB, free: 11.57 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003264/0.1534, allocations: 267.4 kB / 489.7 MB, free: 11.29 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.929e-05/0.1535, allocations: 92.95 kB / 489.8 MB, free: 11.18 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.343e-05/0.1535, allocations: 8 kB / 489.8 MB, free: 11.17 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.565e-05/0.1536, allocations: 3.938 kB / 489.8 MB, free: 11.17 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.661e-05/0.1537, allocations: 19.97 kB / 489.8 MB, free: 11.15 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.208e-06/0.1537, allocations: 4 kB / 489.8 MB, free: 11.14 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.666e-05/0.1537, allocations: 87.28 kB / 489.9 MB, free: 11.06 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1537, allocations: 0 / 489.9 MB, free: 11.06 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002673/0.154, allocations: 51.75 kB / 490 MB, free: 11.01 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * 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 (27): * Single equations (assignments): 27 * 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.0007467/0.1548, allocations: 0.8728 MB / 490.8 MB, free: 10.11 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003126/0.1551, allocations: 152 kB / 491 MB, free: 9.957 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.1551, allocations: 0 / 491 MB, free: 9.957 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000122/0.1552, allocations: 71.91 kB / 491.1 MB, free: 9.887 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002255/0.1555, allocations: 15.94 kB / 491.1 MB, free: 9.871 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002189/0.1577, allocations: 1.975 MB / 493.1 MB, free: 7.82 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003466/0.158, allocations: 0.7397 MB / 493.8 MB, free: 7.055 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001055/0.1581, allocations: 17.41 kB / 493.8 MB, free: 7.035 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.573e-05/0.1582, allocations: 67.41 kB / 493.9 MB, free: 6.969 MB / 366.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1582, allocations: 4 kB / 493.9 MB, free: 6.965 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02229/0.1805, allocations: 2.686 MB / 496.6 MB, free: 4.34 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.922/8.103, allocations: 13.08 kB / 496.6 MB, free: 4.328 MB / 366.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ConversionBlocks.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ConversionBlocks.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ConversionBlocks.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ConversionBlocks.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ConversionBlocks_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_ConversionBlocks_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_ConversionBlocks.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ConversionBlocks.pipe 2>&1)