Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.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.TestMatrices,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_TestMatrices",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestMatrices,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_TestMatrices",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008743/0.0008742, allocations: 96.86 kB / 17 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001039/0.001039, allocations: 196.4 kB / 17.9 MB, free: 5.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.355/1.355, allocations: 227.4 MB / 246 MB, free: 10.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2173/0.2173, allocations: 45.92 MB / 344.1 MB, free: 12.01 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002677/0.0002677, allocations: 7.984 kB / 418.2 MB, free: 20.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1399/0.1402, allocations: 63.46 MB / 481.6 MB, free: 5.266 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices): time 0.0007002/0.1409, allocations: 210.9 kB / 481.8 MB, free: 5.059 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002282/0.1432, allocations: 1.541 MB / 483.4 MB, free: 3.5 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.527e-05/0.1432, allocations: 0 / 483.4 MB, free: 3.5 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.457e-05/0.1433, allocations: 4 kB / 483.4 MB, free: 3.496 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.256e-06/0.1433, allocations: 0 / 483.4 MB, free: 3.496 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Math.mo:171:3-212:15:writable] Warning: Pure function ‘ModelicaTest.Math.Matrices‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.0007932/0.1441, allocations: 255.4 kB / 483.6 MB, free: 3.246 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.698e-05/0.1441, allocations: 0 / 483.6 MB, free: 3.246 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.959e-05/0.1442, allocations: 0 / 483.6 MB, free: 3.246 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.74e-05/0.1442, allocations: 0 / 483.6 MB, free: 3.246 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.955e-05/0.1442, allocations: 3.984 kB / 483.6 MB, free: 3.242 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.461e-06/0.1443, allocations: 8 kB / 483.6 MB, free: 3.234 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006241/0.1449, allocations: 439 kB / 484.1 MB, free: 2.805 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.821e-06/0.1449, allocations: 0 / 484.1 MB, free: 2.805 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.897e-05/0.1449, allocations: 25.7 kB / 484.1 MB, free: 2.773 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003172/0.1453, allocations: 215.7 kB / 484.3 MB, free: 2.562 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.1453, allocations: 0 / 484.3 MB, free: 2.562 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.354e-06/0.1453, allocations: 0 / 484.3 MB, free: 2.562 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.599e-06/0.1453, allocations: 4 kB / 484.3 MB, free: 2.559 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.0003517/0.1457, allocations: 371.9 kB / 484.7 MB, free: 2.145 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.129e-05/0.1457, allocations: 12.03 kB / 484.7 MB, free: 2.133 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.869e-05/0.1457, allocations: 30.56 kB / 484.7 MB, free: 2.094 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.472e-05/0.1458, allocations: 0 / 484.7 MB, free: 2.094 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001577/0.1459, allocations: 171 kB / 484.9 MB, free: 1.887 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.209e-05/0.1459, allocations: 3.938 kB / 484.9 MB, free: 1.883 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.877e-06/0.146, allocations: 0 / 484.9 MB, free: 1.883 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.133e-05/0.146, allocations: 29.7 kB / 484.9 MB, free: 1.848 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.492e-06/0.1461, allocations: 4 kB / 484.9 MB, free: 1.844 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.634e-06/0.1461, allocations: 0 / 484.9 MB, free: 1.844 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.887e-06/0.1461, allocations: 0 / 484.9 MB, free: 1.844 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.783e-05/0.1461, allocations: 4 kB / 484.9 MB, free: 1.84 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001548/0.1463, allocations: 157.6 kB / 485.1 MB, free: 1.637 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.911e-05/0.1463, allocations: 18.52 kB / 485.1 MB, free: 1.609 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.591e-05/0.1463, allocations: 8.953 kB / 485.1 MB, free: 1.598 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.162e-06/0.1463, allocations: 0 / 485.1 MB, free: 1.598 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001009/0.1465, allocations: 60.27 kB / 485.2 MB, free: 1.523 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 8.61e-07/0.1465, allocations: 0 / 485.2 MB, free: 1.523 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001816/0.1466, allocations: 67.39 kB / 485.2 MB, free: 1.445 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.253e-05/0.1467, allocations: 77.11 kB / 485.3 MB, free: 1.352 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.176e-05/0.1468, allocations: 89.86 kB / 485.4 MB, free: 1.254 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.586e-05/0.1468, allocations: 25.7 kB / 485.4 MB, free: 1.223 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.873e-05/0.1468, allocations: 84.14 kB / 485.5 MB, free: 1.137 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.897e-05/0.1469, allocations: 4.031 kB / 485.5 MB, free: 1.133 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.044e-06/0.1469, allocations: 4 kB / 485.5 MB, free: 1.129 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001305/0.147, allocations: 310.8 kB / 485.8 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.927e-06/0.147, allocations: 3.938 kB / 485.8 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.505e-06/0.147, allocations: 4 kB / 485.8 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.286e-05/0.1471, allocations: 29.66 kB / 485.8 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.754e-06/0.1471, allocations: 0 / 485.8 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.349e-05/0.1472, allocations: 67.39 kB / 485.9 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.077e-05/0.1472, allocations: 29.7 kB / 485.9 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.699e-06/0.1472, allocations: 4.094 kB / 485.9 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.575e-05/0.1472, allocations: 0 / 485.9 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.837e-06/0.1472, allocations: 4 kB / 485.9 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.246e-06/0.1473, allocations: 4 kB / 485.9 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.713e-05/0.1473, allocations: 0 / 485.9 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.099e-05/0.1473, allocations: 3.984 kB / 486 MB, free: 0.6445 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.0001006/0.1474, allocations: 143.5 kB / 486.1 MB, free: 500 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.067e-06/0.1474, allocations: 0 / 486.1 MB, free: 500 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.307e-06/0.1474, allocations: 7.062 kB / 486.1 MB, free: 496 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.373e-06/0.1474, allocations: 4 kB / 486.1 MB, free: 492 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.492e-06/0.1475, allocations: 0 / 486.1 MB, free: 492 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/0.1475, allocations: 3.938 kB / 486.1 MB, free: 488 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001139/0.1476, allocations: 154 kB / 486.3 MB, free: 284 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.444e-06/0.1476, allocations: 3.953 kB / 486.3 MB, free: 280 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.81e-07/0.1476, allocations: 0 / 486.3 MB, free: 280 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.373e-06/0.1476, allocations: 0 / 486.3 MB, free: 280 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.823e-06/0.1476, allocations: 0 / 486.3 MB, free: 280 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.1476, allocations: 0 / 486.3 MB, free: 280 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.92e-07/0.1476, allocations: 0 / 486.3 MB, free: 280 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001008/0.1477, allocations: 94.83 kB / 486.4 MB, free: 160 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.633e-05/0.1478, allocations: 81.06 kB / 486.4 MB, free: 60 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.354e-05/0.1478, allocations: 0 / 486.4 MB, free: 60 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.275e-05/0.1478, allocations: 7.938 kB / 486.4 MB, free: 52 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.732e-05/0.1478, allocations: 0 / 486.4 MB, free: 52 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.364e-06/0.1479, allocations: 0 / 486.4 MB, free: 52 kB / 350.1 MB Notification: Performance of sorting global known variables: time 5.282e-05/0.1479, allocations: 75.28 kB / 486.5 MB, free: 15.98 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1479, allocations: 32 / 486.5 MB, free: 15.98 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003247/0.1482, allocations: 67.98 kB / 486.6 MB, free: 15.91 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 (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.0007634/0.149, allocations: 0.7221 MB / 487.3 MB, free: 15.16 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 9.874e-05/0.1491, allocations: 63.39 kB / 487.4 MB, free: 15.09 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.1491, allocations: 0 / 487.4 MB, free: 15.09 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.092e-05/0.1492, allocations: 51.47 kB / 487.4 MB, free: 15.02 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001355/0.1493, allocations: 10.45 kB / 487.4 MB, free: 15.02 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003431/0.1497, allocations: 136.3 kB / 487.6 MB, free: 14.84 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002813/0.15, allocations: 0.6692 MB / 488.2 MB, free: 14.14 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.74e-06/0.15, allocations: 0 / 488.2 MB, free: 14.14 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.496e-05/0.15, allocations: 11.42 kB / 488.2 MB, free: 14.13 MB / 366.1 MB Notification: Performance of SimCode: time 2.4e-07/0.15, allocations: 0 / 488.2 MB, free: 14.13 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01374/0.1637, allocations: 1.871 MB / 490.1 MB, free: 12.36 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000236/0.164, allocations: 209.3 kB / 490.3 MB, free: 12.12 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.806/1.971, allocations: 0 / 490.3 MB, free: 12.12 MB / 366.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Math.TestMatrices_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Math_TestMatrices_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Math_TestMatrices.fmu > ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Math.TestMatrices_res.mat does not exist to compare? outputFormat=mat