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.001234/0.001234, allocations: 102.5 kB / 17.63 MB, free: 5.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001313/0.001313, allocations: 210.4 kB / 18.58 MB, free: 4.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.483/1.483, allocations: 227.4 MB / 246.8 MB, free: 10.56 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.244/0.244, 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.002588/0.002588, allocations: 79.67 kB / 417.8 MB, free: 19.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1217/0.1243, allocations: 62.46 MB / 480.2 MB, free: 5.137 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestVectors): time 0.001695/0.1261, allocations: 487.7 kB / 480.7 MB, free: 4.656 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00128/0.1273, allocations: 0.7708 MB / 481.5 MB, free: 3.887 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.276e-05/0.1274, allocations: 0 / 481.5 MB, free: 3.887 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.178e-05/0.1274, allocations: 0 / 481.5 MB, free: 3.887 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.788e-06/0.1274, allocations: 0 / 481.5 MB, free: 3.887 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.001546/0.129, allocations: 0.6499 MB / 482.1 MB, free: 3.234 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.586e-05/0.129, allocations: 0 / 482.1 MB, free: 3.234 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.901e-05/0.129, allocations: 3.938 kB / 482.1 MB, free: 3.23 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.289e-05/0.1291, allocations: 8 kB / 482.1 MB, free: 3.223 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.161e-05/0.1291, allocations: 0 / 482.1 MB, free: 3.223 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.663e-06/0.1291, allocations: 0 / 482.1 MB, free: 3.223 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006372/0.1297, allocations: 387.3 kB / 482.5 MB, free: 2.844 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.46e-06/0.1297, allocations: 0 / 482.5 MB, free: 2.844 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.667e-05/0.1298, allocations: 8 kB / 482.5 MB, free: 2.836 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004488/0.1302, allocations: 343.3 kB / 482.8 MB, free: 2.5 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.675e-06/0.1302, allocations: 0 / 482.8 MB, free: 2.5 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.1302, allocations: 0 / 482.8 MB, free: 2.5 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.737e-06/0.1302, allocations: 0 / 482.8 MB, free: 2.5 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.000366/0.1306, allocations: 387.5 kB / 483.2 MB, free: 2.066 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.061e-05/0.1307, allocations: 8.031 kB / 483.2 MB, free: 2.059 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.091e-05/0.1307, allocations: 30.75 kB / 483.3 MB, free: 2.02 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.881e-05/0.1307, allocations: 4.938 kB / 483.3 MB, free: 2.016 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001007/0.1308, allocations: 164.4 kB / 483.4 MB, free: 1.816 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.787e-06/0.1308, allocations: 384 / 483.4 MB, free: 1.816 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.053e-06/0.1308, allocations: 4.375 kB / 483.4 MB, free: 1.812 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.613e-05/0.1309, allocations: 34.2 kB / 483.5 MB, free: 1.773 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.785e-06/0.1309, allocations: 3.938 kB / 483.5 MB, free: 1.77 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.831e-06/0.1309, allocations: 0 / 483.5 MB, free: 1.77 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.863e-06/0.131, allocations: 4 kB / 483.5 MB, free: 1.766 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.289e-05/0.131, allocations: 0 / 483.5 MB, free: 1.766 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000131/0.1311, allocations: 149.7 kB / 483.6 MB, free: 1.57 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.876e-05/0.1312, allocations: 22.61 kB / 483.6 MB, free: 1.539 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.639e-05/0.1312, allocations: 4.859 kB / 483.6 MB, free: 1.531 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.667e-06/0.1312, allocations: 3.938 kB / 483.6 MB, free: 1.527 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.921e-05/0.1312, allocations: 60.27 kB / 483.7 MB, free: 1.453 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 2.935e-06/0.1313, allocations: 3.938 kB / 483.7 MB, free: 1.449 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001415/0.1314, allocations: 79.41 kB / 483.8 MB, free: 1.359 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.598e-05/0.1315, allocations: 77.11 kB / 483.9 MB, free: 1.266 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.834e-05/0.1315, allocations: 93.86 kB / 484 MB, free: 1.164 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.427e-05/0.1315, allocations: 25.7 kB / 484 MB, free: 1.133 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.037e-05/0.1316, allocations: 80.14 kB / 484.1 MB, free: 1.051 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.63e-05/0.1316, allocations: 4 kB / 484.1 MB, free: 1.047 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.688e-05/0.1316, allocations: 9.719 kB / 484.1 MB, free: 1.031 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001319/0.1318, allocations: 314.8 kB / 484.4 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.748e-06/0.1318, allocations: 4.031 kB / 484.4 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.272e-06/0.1318, allocations: 3.938 kB / 484.4 MB, free: 0.707 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.178e-05/0.1318, allocations: 64.25 kB / 484.4 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.333e-06/0.1318, allocations: 0 / 484.4 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.666e-05/0.1319, allocations: 63.41 kB / 484.5 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.762e-05/0.132, allocations: 29.7 kB / 484.5 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.9e-06/0.132, allocations: 3.938 kB / 484.5 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.437e-06/0.132, allocations: 0 / 484.5 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.25e-06/0.132, allocations: 3.984 kB / 484.5 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.526e-06/0.132, allocations: 4.094 kB / 484.5 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.338e-05/0.132, allocations: 4 kB / 484.6 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.1e-06/0.132, allocations: 0 / 484.6 MB, free: 0.5039 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 7.856e-05/0.1321, allocations: 131.5 kB / 484.7 MB, free: 368 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.097e-06/0.1321, allocations: 4 kB / 484.7 MB, free: 364 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.169e-05/0.1321, allocations: 14.98 kB / 484.7 MB, free: 352 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.163e-06/0.1321, allocations: 0 / 484.7 MB, free: 352 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.1322, allocations: 4 kB / 484.7 MB, free: 348 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.944e-06/0.1322, allocations: 0 / 484.7 MB, free: 348 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001004/0.1323, allocations: 153.7 kB / 484.9 MB, free: 144 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.21e-07/0.1323, allocations: 4 kB / 484.9 MB, free: 140 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.31e-07/0.1323, allocations: 0 / 484.9 MB, free: 140 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.002e-06/0.1323, allocations: 0 / 484.9 MB, free: 140 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.802e-06/0.1323, allocations: 3.938 kB / 484.9 MB, free: 136 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.91e-07/0.1323, allocations: 0 / 484.9 MB, free: 136 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.21e-07/0.1323, allocations: 0 / 484.9 MB, free: 136 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.52e-05/0.1324, allocations: 94.73 kB / 485 MB, free: 16 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.203e-05/0.1325, allocations: 81.14 kB / 485 MB, free: 15.92 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.348e-05/0.1325, allocations: 3.938 kB / 485 MB, free: 15.91 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.087e-05/0.1325, allocations: 7.938 kB / 485 MB, free: 15.91 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.095e-06/0.1325, allocations: 0 / 485 MB, free: 15.91 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.315e-06/0.1325, allocations: 0 / 485 MB, free: 15.91 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.184e-05/0.1326, allocations: 75.31 kB / 485.1 MB, free: 15.83 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.854e-06/0.1326, allocations: 0 / 485.1 MB, free: 15.83 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003176/0.1329, allocations: 95.84 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.0007531/0.1336, allocations: 0.7585 MB / 486 MB, free: 14.95 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 8.268e-05/0.1337, allocations: 55.41 kB / 486 MB, free: 14.89 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.1338, allocations: 0 / 486 MB, free: 14.89 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.194e-05/0.1338, allocations: 59.34 kB / 486.1 MB, free: 14.82 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001141/0.1339, allocations: 8.125 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.0003054/0.1342, allocations: 138.6 kB / 486.2 MB, free: 14.63 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002726/0.1345, allocations: 0.669 MB / 486.9 MB, free: 13.94 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 7.615e-06/0.1345, allocations: 4 kB / 486.9 MB, free: 13.93 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.019e-05/0.1345, allocations: 11.38 kB / 486.9 MB, free: 13.93 MB / 366.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1345, allocations: 0 / 486.9 MB, free: 13.93 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02321/0.1578, allocations: 2.76 MB / 489.7 MB, free: 11.2 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.082/8.24, allocations: 7.969 kB / 489.7 MB, free: 11.2 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 & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestVectors_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_TestVectors.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestVectors.pipe 2>&1)