Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestVectors.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.Math.TestVectors,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_TestVectors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestVectors,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_TestVectors",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00168/0.00168, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002035/0.002035, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.491/1.491, allocations: 227.4 MB / 246.8 MB, free: 10.6 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.2335/0.2335, allocations: 46.11 MB / 344.2 MB, free: 11.56 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.002217/0.002217, allocations: 93.25 kB / 417.8 MB, free: 19.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1232/0.1255, allocations: 62.45 MB / 480.2 MB, free: 5.129 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestVectors): time 0.001674/0.1272, allocations: 482.3 kB / 480.7 MB, free: 4.656 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001553/0.1287, allocations: 0.7669 MB / 481.4 MB, free: 3.891 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.721e-05/0.1288, allocations: 0 / 481.4 MB, free: 3.891 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.161e-05/0.1288, allocations: 7.938 kB / 481.5 MB, free: 3.883 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.031e-06/0.1289, allocations: 3.938 kB / 481.5 MB, free: 3.879 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/Math.mo:612:3-661:14:writable] Warning: Pure function 'ModelicaTest.Math.Vectors' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.00176/0.1306, allocations: 0.6452 MB / 482.1 MB, free: 3.234 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.015e-05/0.1307, allocations: 11.94 kB / 482.1 MB, free: 3.223 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.354e-05/0.1307, allocations: 0 / 482.1 MB, free: 3.223 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.692e-05/0.1307, allocations: 4 kB / 482.1 MB, free: 3.219 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.539e-05/0.1307, allocations: 0 / 482.1 MB, free: 3.219 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.859e-06/0.1308, allocations: 0 / 482.1 MB, free: 3.219 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007006/0.1315, allocations: 387.3 kB / 482.5 MB, free: 2.84 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.903e-06/0.1315, allocations: 0 / 482.5 MB, free: 2.84 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.909e-05/0.1315, allocations: 4 kB / 482.5 MB, free: 2.836 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000479/0.132, allocations: 343.3 kB / 482.8 MB, free: 2.5 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.626e-06/0.132, allocations: 0 / 482.8 MB, free: 2.5 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.132, allocations: 4 kB / 482.8 MB, free: 2.496 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.809e-06/0.132, allocations: 0 / 482.8 MB, free: 2.496 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0004021/0.1324, allocations: 385.3 kB / 483.2 MB, free: 2.062 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.12e-05/0.1325, allocations: 12.03 kB / 483.2 MB, free: 2.051 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.716e-05/0.1325, allocations: 30.75 kB / 483.3 MB, free: 2.012 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.341e-05/0.1326, allocations: 4.922 kB / 483.3 MB, free: 2.008 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001176/0.1327, allocations: 160.4 kB / 483.4 MB, free: 1.812 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.181e-05/0.1327, allocations: 384 / 483.4 MB, free: 1.812 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.709e-06/0.1327, allocations: 4.375 kB / 483.4 MB, free: 1.809 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.093e-05/0.1328, allocations: 34.2 kB / 483.5 MB, free: 1.77 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.147e-06/0.1328, allocations: 3.938 kB / 483.5 MB, free: 1.766 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.974e-06/0.1328, allocations: 0 / 483.5 MB, free: 1.766 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.368e-06/0.1328, allocations: 0 / 483.5 MB, free: 1.766 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.711e-05/0.1329, allocations: 4 kB / 483.5 MB, free: 1.762 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001445/0.133, allocations: 145.7 kB / 483.6 MB, free: 1.57 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.096e-05/0.1331, allocations: 26.61 kB / 483.6 MB, free: 1.535 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.466e-05/0.1331, allocations: 4.859 kB / 483.6 MB, free: 1.527 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.355e-06/0.1331, allocations: 4 kB / 483.6 MB, free: 1.523 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.699e-05/0.1331, allocations: 68.08 kB / 483.7 MB, free: 1.441 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.022e-06/0.1332, allocations: 0 / 483.7 MB, free: 1.441 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001587/0.1333, allocations: 71.38 kB / 483.8 MB, free: 1.359 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.019e-05/0.1334, allocations: 81.11 kB / 483.9 MB, free: 1.262 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.806e-05/0.1334, allocations: 93.86 kB / 483.9 MB, free: 1.16 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.498e-05/0.1335, allocations: 25.7 kB / 484 MB, free: 1.129 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.527e-05/0.1335, allocations: 84.27 kB / 484.1 MB, free: 1.043 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.669e-05/0.1335, allocations: 0 / 484.1 MB, free: 1.043 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.561e-05/0.1336, allocations: 9.719 kB / 484.1 MB, free: 1.027 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001335/0.1337, allocations: 314.8 kB / 484.4 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.099e-05/0.1337, allocations: 4 kB / 484.4 MB, free: 0.707 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.573e-06/0.1337, allocations: 3.984 kB / 484.4 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.464e-05/0.1338, allocations: 68.2 kB / 484.4 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.322e-06/0.1338, allocations: 64 / 484.4 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.939e-05/0.1339, allocations: 63.41 kB / 484.5 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.383e-05/0.1339, allocations: 29.7 kB / 484.5 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.1339, allocations: 3.938 kB / 484.5 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.29e-05/0.1339, allocations: 3.984 kB / 484.5 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.62e-07/0.1339, allocations: 0 / 484.5 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.058e-06/0.134, allocations: 0 / 484.5 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.377e-05/0.134, allocations: 4 kB / 484.5 MB, free: 0.5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.19e-06/0.134, allocations: 0 / 484.5 MB, free: 0.5 MB / 350.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: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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 9.648e-05/0.1341, allocations: 135.6 kB / 484.7 MB, free: 360 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.185e-05/0.1341, allocations: 8 kB / 484.7 MB, free: 352 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.856e-06/0.1341, allocations: 7.062 kB / 484.7 MB, free: 348 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.102e-06/0.1341, allocations: 0 / 484.7 MB, free: 348 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.835e-06/0.1341, allocations: 0 / 484.7 MB, free: 348 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.05e-05/0.1341, allocations: 3.984 kB / 484.7 MB, free: 344 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000107/0.1343, allocations: 149.6 kB / 484.8 MB, free: 144 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.027e-06/0.1343, allocations: 4 kB / 484.8 MB, free: 140 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.31e-07/0.1343, allocations: 0 / 484.8 MB, free: 140 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.102e-06/0.1343, allocations: 0 / 484.8 MB, free: 140 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.574e-06/0.1343, allocations: 3.938 kB / 484.9 MB, free: 136 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.72e-07/0.1343, allocations: 4 kB / 484.9 MB, free: 132 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.1343, allocations: 0 / 484.9 MB, free: 132 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001007/0.1344, allocations: 94.73 kB / 485 MB, free: 12 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.138e-05/0.1345, allocations: 81.05 kB / 485 MB, free: 15.91 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.406e-05/0.1345, allocations: 3.938 kB / 485 MB, free: 15.91 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.286e-06/0.1345, allocations: 0 / 485 MB, free: 15.91 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.228e-05/0.1345, allocations: 4 kB / 485 MB, free: 15.91 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.545e-06/0.1345, allocations: 4.031 kB / 485 MB, free: 15.9 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.666e-05/0.1346, allocations: 79.3 kB / 485.1 MB, free: 15.82 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1346, allocations: 3.938 kB / 485.1 MB, free: 15.82 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003483/0.1349, allocations: 83.98 kB / 485.2 MB, free: 15.74 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: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.0008489/0.1358, allocations: 0.7616 MB / 486 MB, free: 14.95 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 9.586e-05/0.1359, allocations: 55.41 kB / 486 MB, free: 14.88 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.1359, allocations: 0 / 486 MB, free: 14.88 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.861e-05/0.136, allocations: 55.41 kB / 486.1 MB, free: 14.81 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001246/0.1361, allocations: 4 kB / 486.1 MB, free: 14.81 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003445/0.1364, allocations: 142.5 kB / 486.2 MB, free: 14.63 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003006/0.1368, allocations: 0.6728 MB / 486.9 MB, free: 13.93 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.005e-06/0.1368, allocations: 8.125 kB / 486.9 MB, free: 13.92 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.249e-05/0.1368, allocations: 7.438 kB / 486.9 MB, free: 13.92 MB / 366.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1368, allocations: 0 / 486.9 MB, free: 13.92 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02365/0.1604, allocations: 2.771 MB / 489.7 MB, free: 11.19 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.953/8.113, allocations: 3.984 kB / 489.7 MB, free: 11.19 MB / 366.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestVectors.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestVectors.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestVectors.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestVectors.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestVectors_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_TestVectors_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_TestVectors.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestVectors.pipe 2>&1)