Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_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 trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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_trunk_ModelicaTest_Math_TestVectors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestVectors,fileNamePrefix="ModelicaTest_trunk_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.001181/0.001181, 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.001373/0.001373, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.41/1.41, allocations: 227.4 MB / 246.8 MB, free: 10.64 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2197/0.2197, allocations: 46.1 MB / 344.1 MB, free: 11.53 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001606/0.001607, allocations: 79.98 kB / 417.7 MB, free: 19.65 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1269/0.1286, allocations: 62.45 MB / 480.1 MB, free: 5.199 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestVectors): time 0.002275/0.1309, allocations: 498.1 kB / 480.6 MB, free: 4.711 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001654/0.1326, allocations: 0.763 MB / 481.4 MB, free: 3.949 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.949e-05/0.1326, allocations: 0 / 481.4 MB, free: 3.949 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.71e-05/0.1327, allocations: 0 / 481.4 MB, free: 3.949 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.41e-06/0.1327, allocations: 0 / 481.4 MB, free: 3.949 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.002131/0.1348, allocations: 0.6572 MB / 482 MB, free: 3.293 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 6.281e-05/0.1349, allocations: 8 kB / 482 MB, free: 3.285 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.344e-05/0.135, allocations: 7.922 kB / 482 MB, free: 3.277 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.777e-05/0.135, allocations: 0 / 482 MB, free: 3.277 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.662e-05/0.135, allocations: 0 / 482 MB, free: 3.277 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.596e-06/0.135, allocations: 0 / 482 MB, free: 3.277 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008728/0.1359, allocations: 387.4 kB / 482.4 MB, free: 2.898 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.546e-06/0.1359, allocations: 0 / 482.4 MB, free: 2.898 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.558e-05/0.136, allocations: 4 kB / 482.4 MB, free: 2.895 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006782/0.1366, allocations: 347.3 kB / 482.8 MB, free: 2.555 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.1367, allocations: 0 / 482.8 MB, free: 2.555 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.1367, allocations: 0 / 482.8 MB, free: 2.555 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.174e-06/0.1367, allocations: 0 / 482.8 MB, free: 2.555 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.0005158/0.1372, allocations: 389.3 kB / 483.1 MB, free: 2.117 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.325e-05/0.1373, allocations: 8.031 kB / 483.2 MB, free: 2.109 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.043e-05/0.1373, allocations: 30.75 kB / 483.2 MB, free: 2.07 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.735e-05/0.1374, allocations: 8.938 kB / 483.2 MB, free: 2.062 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001184/0.1375, allocations: 164.3 kB / 483.4 MB, free: 1.863 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.275e-05/0.1375, allocations: 384 / 483.4 MB, free: 1.863 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.446e-06/0.1375, allocations: 384 / 483.4 MB, free: 1.863 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001013/0.1376, allocations: 30.27 kB / 483.4 MB, free: 1.828 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.337e-06/0.1376, allocations: 3.938 kB / 483.4 MB, free: 1.824 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.127e-06/0.1377, allocations: 0 / 483.4 MB, free: 1.824 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.31e-06/0.1377, allocations: 0 / 483.4 MB, free: 1.824 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.363e-05/0.1377, allocations: 3.984 kB / 483.4 MB, free: 1.82 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001802/0.1379, allocations: 149.7 kB / 483.5 MB, free: 1.625 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.996e-05/0.1379, allocations: 26.52 kB / 483.6 MB, free: 1.59 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.617e-05/0.138, allocations: 4.859 kB / 483.6 MB, free: 1.582 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.036e-05/0.138, allocations: 96 / 483.6 MB, free: 1.582 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.432e-05/0.138, allocations: 60.27 kB / 483.6 MB, free: 1.508 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 4.398e-06/0.138, allocations: 0 / 483.6 MB, free: 1.508 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002016/0.1383, allocations: 71.39 kB / 483.7 MB, free: 1.426 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.852e-05/0.1383, allocations: 85.11 kB / 483.8 MB, free: 1.324 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.589e-05/0.1384, allocations: 89.86 kB / 483.9 MB, free: 1.227 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.391e-05/0.1384, allocations: 29.64 kB / 483.9 MB, free: 1.191 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.987e-05/0.1385, allocations: 80.14 kB / 484 MB, free: 1.109 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.06e-05/0.1385, allocations: 0 / 484 MB, free: 1.109 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.225e-05/0.1385, allocations: 17.66 kB / 484 MB, free: 1.086 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001183/0.1386, allocations: 314.8 kB / 484.3 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.697e-06/0.1387, allocations: 0 / 484.3 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.863e-06/0.1387, allocations: 8 kB / 484.3 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.997e-05/0.1387, allocations: 60.27 kB / 484.4 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.1387, allocations: 0 / 484.4 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.005e-05/0.1388, allocations: 63.39 kB / 484.4 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.363e-05/0.1389, allocations: 29.7 kB / 484.5 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.772e-06/0.1389, allocations: 7.938 kB / 484.5 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.547e-05/0.1389, allocations: 3.984 kB / 484.5 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.202e-06/0.1389, allocations: 0 / 484.5 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.777e-06/0.1389, allocations: 96 / 484.5 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.73e-05/0.1389, allocations: 11.94 kB / 484.5 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.543e-06/0.139, allocations: 0 / 484.5 MB, free: 0.5547 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.381e-05/0.1391, allocations: 135.5 kB / 484.6 MB, free: 416 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.127e-05/0.1391, allocations: 4 kB / 484.6 MB, free: 412 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.424e-05/0.1391, allocations: 11.05 kB / 484.6 MB, free: 404 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.1391, allocations: 0 / 484.6 MB, free: 404 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.019e-06/0.1391, allocations: 0 / 484.6 MB, free: 404 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.618e-06/0.1391, allocations: 4 kB / 484.6 MB, free: 400 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001057/0.1392, allocations: 141.7 kB / 484.8 MB, free: 208 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.1392, allocations: 4 kB / 484.8 MB, free: 204 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.71e-07/0.1392, allocations: 0 / 484.8 MB, free: 204 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.324e-06/0.1392, allocations: 0 / 484.8 MB, free: 204 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.929e-06/0.1393, allocations: 3.938 kB / 484.8 MB, free: 200 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.865e-06/0.1393, allocations: 4 kB / 484.8 MB, free: 196 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.966e-06/0.1393, allocations: 3.984 kB / 484.8 MB, free: 192 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.327e-05/0.1394, allocations: 86.75 kB / 484.9 MB, free: 80 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.289e-05/0.1395, allocations: 81.14 kB / 485 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.767e-05/0.1395, allocations: 11.92 kB / 485 MB, free: 15.97 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.908e-06/0.1395, allocations: 3.938 kB / 485 MB, free: 15.96 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.609e-05/0.1395, allocations: 3.938 kB / 485 MB, free: 15.96 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.397e-06/0.1396, allocations: 0 / 485 MB, free: 15.96 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.256e-05/0.1396, allocations: 75.31 kB / 485 MB, free: 15.89 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1396, allocations: 0 / 485 MB, free: 15.89 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003982/0.14, allocations: 83.98 kB / 485.1 MB, free: 15.8 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.0009593/0.141, allocations: 0.7603 MB / 485.9 MB, free: 15.01 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001189/0.1411, allocations: 59.41 kB / 485.9 MB, free: 14.94 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.929e-06/0.1411, allocations: 0 / 485.9 MB, free: 14.94 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.855e-05/0.1412, allocations: 59.33 kB / 486 MB, free: 14.87 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001387/0.1413, allocations: 8.125 kB / 486 MB, free: 14.86 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004195/0.1417, allocations: 134.6 kB / 486.1 MB, free: 14.69 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003802/0.1421, allocations: 0.6729 MB / 486.8 MB, free: 13.99 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 1.099e-05/0.1421, allocations: 0 / 486.8 MB, free: 13.99 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.251e-05/0.1422, allocations: 11.38 kB / 486.8 MB, free: 13.98 MB / 366.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1422, allocations: 0 / 486.8 MB, free: 13.98 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02122/0.1634, allocations: 2.765 MB / 489.6 MB, free: 11.26 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.783/7.946, allocations: 8.828 kB / 489.6 MB, free: 11.25 MB / 366.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Math.TestVectors.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.TestVectors.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.TestVectors.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.TestVectors.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_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_trunk_ModelicaTest_Math_TestVectors.fmu > ModelicaTest_trunk_ModelicaTest.Math.TestVectors.pipe 2>&1)