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.0009376/0.0009376, allocations: 100.8 kB / 16.99 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000959/0.000959, allocations: 198.7 kB / 17.89 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.34/1.34, allocations: 227.3 MB / 245.9 MB, free: 10.29 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2178/0.2178, allocations: 45.91 MB / 344 MB, free: 12.09 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003077/0.0003079, allocations: 11.98 kB / 418.1 MB, free: 20.76 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1259/0.1263, allocations: 63.46 MB / 481.5 MB, free: 5.285 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestVectors): time 0.0006725/0.127, allocations: 218.9 kB / 481.7 MB, free: 5.07 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001484/0.1285, allocations: 0.7284 MB / 482.5 MB, free: 4.34 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.614e-05/0.1285, allocations: 0 / 482.5 MB, free: 4.34 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.562e-05/0.1286, allocations: 0 / 482.5 MB, free: 4.34 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.282e-06/0.1286, allocations: 0 / 482.5 MB, free: 4.34 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.001681/0.1303, allocations: 0.5331 MB / 483 MB, free: 3.809 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.266e-05/0.1303, allocations: 4 kB / 483 MB, free: 3.805 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.363e-05/0.1304, allocations: 4 kB / 483 MB, free: 3.801 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.915e-05/0.1304, allocations: 0 / 483 MB, free: 3.801 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.577e-05/0.1304, allocations: 7.922 kB / 483 MB, free: 3.793 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.212e-06/0.1304, allocations: 0 / 483 MB, free: 3.793 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005848/0.131, allocations: 339.5 kB / 483.3 MB, free: 3.461 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.933e-06/0.131, allocations: 0 / 483.3 MB, free: 3.461 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.515e-05/0.1311, allocations: 25.7 kB / 483.4 MB, free: 3.43 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003556/0.1315, allocations: 247.6 kB / 483.6 MB, free: 3.188 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.795e-06/0.1315, allocations: 0 / 483.6 MB, free: 3.188 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.943e-06/0.1315, allocations: 0 / 483.6 MB, free: 3.188 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.033e-06/0.1315, allocations: 4 kB / 483.6 MB, free: 3.184 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.0004158/0.1319, allocations: 381.1 kB / 484 MB, free: 2.758 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.881e-05/0.132, allocations: 8.031 kB / 484 MB, free: 2.75 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.635e-05/0.132, allocations: 38.5 kB / 484 MB, free: 2.703 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.929e-05/0.132, allocations: 3.984 kB / 484 MB, free: 2.699 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001191/0.1322, allocations: 167 kB / 484.2 MB, free: 2.496 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.155e-05/0.1322, allocations: 4 kB / 484.2 MB, free: 2.492 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.878e-06/0.1322, allocations: 0 / 484.2 MB, free: 2.492 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.75e-05/0.1323, allocations: 33.64 kB / 484.2 MB, free: 2.453 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.794e-06/0.1323, allocations: 0 / 484.2 MB, free: 2.453 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.095e-05/0.1323, allocations: 4 kB / 484.2 MB, free: 2.449 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.491e-06/0.1323, allocations: 0 / 484.2 MB, free: 2.449 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.92e-05/0.1324, allocations: 0 / 484.2 MB, free: 2.449 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001696/0.1325, allocations: 157.6 kB / 484.4 MB, free: 2.246 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.082e-05/0.1326, allocations: 18.58 kB / 484.4 MB, free: 2.219 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.702e-06/0.1326, allocations: 0 / 484.4 MB, free: 2.219 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.702e-05/0.1327, allocations: 60.36 kB / 484.5 MB, free: 2.145 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 9.32e-07/0.1327, allocations: 3.938 kB / 484.5 MB, free: 2.141 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001929/0.1329, allocations: 67.38 kB / 484.5 MB, free: 2.062 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.808e-05/0.133, allocations: 81.11 kB / 484.6 MB, free: 1.965 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.849e-05/0.1331, allocations: 89.86 kB / 484.7 MB, free: 1.867 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.116e-05/0.1331, allocations: 25.7 kB / 484.7 MB, free: 1.836 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.825e-05/0.1331, allocations: 84.27 kB / 484.8 MB, free: 1.75 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.049e-05/0.1331, allocations: 0 / 484.8 MB, free: 1.75 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.715e-06/0.1332, allocations: 0 / 484.8 MB, free: 1.75 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000188/0.1334, allocations: 310.8 kB / 485.1 MB, free: 1.438 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.879e-06/0.1334, allocations: 4 kB / 485.1 MB, free: 1.434 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.278e-06/0.1334, allocations: 0 / 485.1 MB, free: 1.434 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.029e-05/0.1334, allocations: 25.7 kB / 485.1 MB, free: 1.402 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.982e-06/0.1334, allocations: 3.953 kB / 485.1 MB, free: 1.398 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.215e-05/0.1335, allocations: 79.33 kB / 485.2 MB, free: 1.309 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.861e-05/0.1335, allocations: 29.7 kB / 485.2 MB, free: 1.273 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.952e-06/0.1336, allocations: 0 / 485.2 MB, free: 1.273 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.255e-05/0.1336, allocations: 4 kB / 485.3 MB, free: 1.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.82e-07/0.1336, allocations: 0 / 485.3 MB, free: 1.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.62e-06/0.1336, allocations: 0 / 485.3 MB, free: 1.27 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.785e-05/0.1336, allocations: 0 / 485.3 MB, free: 1.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.538e-06/0.1336, allocations: 3.984 kB / 485.3 MB, free: 1.266 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001298/0.1338, allocations: 139.5 kB / 485.4 MB, free: 1.113 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.647e-06/0.1338, allocations: 7.984 kB / 485.4 MB, free: 1.105 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.127e-06/0.1338, allocations: 3.125 kB / 485.4 MB, free: 1.105 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.42e-07/0.1338, allocations: 0 / 485.4 MB, free: 1.105 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.131e-06/0.1338, allocations: 0 / 485.4 MB, free: 1.105 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.025e-06/0.1338, allocations: 0 / 485.4 MB, free: 1.105 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001183/0.1339, allocations: 153.7 kB / 485.6 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.134, allocations: 3.938 kB / 485.6 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.054e-06/0.134, allocations: 3.953 kB / 485.6 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.382e-06/0.134, allocations: 0 / 485.6 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.181e-06/0.134, allocations: 0 / 485.6 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.41e-07/0.134, allocations: 0 / 485.6 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.134, allocations: 8 kB / 485.6 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001011/0.1341, allocations: 94.67 kB / 485.7 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.916e-05/0.1342, allocations: 77.11 kB / 485.7 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.802e-05/0.1342, allocations: 7.953 kB / 485.7 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.187e-06/0.1342, allocations: 0 / 485.7 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.569e-05/0.1342, allocations: 0 / 485.7 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.645e-06/0.1342, allocations: 0 / 485.7 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.739e-05/0.1343, allocations: 79.31 kB / 485.8 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1343, allocations: 0 / 485.8 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003778/0.1347, allocations: 83.98 kB / 485.9 MB, free: 0.5117 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008526/0.1355, allocations: 0.7532 MB / 486.7 MB, free: 15.73 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 8.927e-05/0.1356, allocations: 55.41 kB / 486.7 MB, free: 15.66 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.1356, allocations: 0 / 486.7 MB, free: 15.66 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.267e-05/0.1357, allocations: 55.41 kB / 486.8 MB, free: 15.6 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.641e-05/0.1358, allocations: 10.28 kB / 486.8 MB, free: 15.59 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003419/0.1361, allocations: 140.3 kB / 486.9 MB, free: 15.41 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002877/0.1364, allocations: 0.677 MB / 487.6 MB, free: 14.71 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.871e-06/0.1364, allocations: 0 / 487.6 MB, free: 14.71 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.739e-05/0.1364, allocations: 11.56 kB / 487.6 MB, free: 14.7 MB / 366.1 MB Notification: Performance of SimCode: time 2.755e-06/0.1364, allocations: 0 / 487.6 MB, free: 14.7 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01397/0.1504, allocations: 2.525 MB / 490.1 MB, free: 12.26 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001752/0.1506, allocations: 195.6 kB / 490.3 MB, free: 12.03 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.804/1.955, allocations: 3.938 kB / 490.3 MB, free: 12.02 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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Math.TestVectors_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Math_TestVectors_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Math_TestVectors.fmu > ModelicaTest_trunk_ModelicaTest.Math.TestVectors.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Math.TestVectors_res.mat does not exist to compare? outputFormat=mat