Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2.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.TestMatrices2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_TestMatrices2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestMatrices2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_TestMatrices2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001354/0.001354, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001388/0.001388, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.436/1.436, allocations: 227.4 MB / 247 MB, free: 10.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2262/0.2262, allocations: 46.12 MB / 344.4 MB, free: 11.41 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002171/0.002171, allocations: 83.84 kB / 480.9 MB, free: 4.484 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3641/0.3663, allocations: 62.45 MB / 0.5306 GB, free: 13.35 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices2): time 0.001706/0.3681, allocations: 497.7 kB / 0.5311 GB, free: 12.99 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.008325/0.3764, allocations: 4.87 MB / 0.5358 GB, free: 9.242 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.245e-05/0.3765, allocations: 5.062 kB / 0.5358 GB, free: 9.238 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.784e-05/0.3766, allocations: 0 / 0.5358 GB, free: 9.238 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.885e-06/0.3766, allocations: 0 / 0.5358 GB, free: 9.238 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Math.mo:214:3-483:16:writable] Warning: Pure function 'ModelicaTest.Math.Matrices2' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.008463/0.3851, allocations: 2.944 MB / 0.5387 GB, free: 7.582 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.485e-05/0.3851, allocations: 0 / 0.5387 GB, free: 7.582 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.366e-05/0.3852, allocations: 5.375 kB / 0.5387 GB, free: 7.578 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.719e-05/0.3852, allocations: 1.281 kB / 0.5387 GB, free: 7.578 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.659e-05/0.3852, allocations: 0 / 0.5387 GB, free: 7.578 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.532e-06/0.3852, allocations: 1.5 kB / 0.5387 GB, free: 7.578 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0309/0.4161, allocations: 18.82 MB / 0.5571 GB, free: 6.559 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.724e-05/0.4162, allocations: 4 kB / 0.5571 GB, free: 6.555 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.98e-05/0.4162, allocations: 7.984 kB / 0.5571 GB, free: 6.547 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04344/0.4597, allocations: 27.48 MB / 0.584 GB, free: 11.03 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.215e-06/0.4598, allocations: 0 / 0.584 GB, free: 11.03 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.4598, allocations: 0 / 0.584 GB, free: 11.03 MB / 446.1 MB Notification: Performance of Transformations before backend: time 8.075e-06/0.4598, allocations: 0 / 0.584 GB, free: 11.03 MB / 446.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.01027/0.4701, allocations: 0.6697 MB / 0.5846 GB, free: 10.3 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.015e-05/0.4701, allocations: 8.031 kB / 0.5846 GB, free: 10.29 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.434e-05/0.4702, allocations: 30.75 kB / 0.5846 GB, free: 10.25 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.302e-05/0.4702, allocations: 4.938 kB / 0.5846 GB, free: 10.25 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001447/0.4704, allocations: 170.9 kB / 0.5848 GB, free: 10.04 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.382e-05/0.4704, allocations: 4 kB / 0.5848 GB, free: 10.04 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.187e-05/0.4704, allocations: 3.938 kB / 0.5848 GB, free: 10.04 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001364/0.4706, allocations: 33.7 kB / 0.5848 GB, free: 9.996 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.397e-06/0.4706, allocations: 0 / 0.5848 GB, free: 9.996 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.123e-05/0.4706, allocations: 0 / 0.5848 GB, free: 9.996 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.573e-06/0.4706, allocations: 0 / 0.5848 GB, free: 9.996 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.674e-05/0.4706, allocations: 3.938 kB / 0.5849 GB, free: 9.992 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001837/0.4708, allocations: 157.6 kB / 0.585 GB, free: 9.789 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.235e-05/0.4709, allocations: 18.58 kB / 0.585 GB, free: 9.762 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.624e-05/0.4709, allocations: 4.859 kB / 0.585 GB, free: 9.754 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.671e-06/0.4709, allocations: 0 / 0.585 GB, free: 9.754 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.367e-05/0.471, allocations: 64.33 kB / 0.5851 GB, free: 9.676 MB / 446.1 MB Notification: Performance of pre-optimization done (n=1): time 8.42e-07/0.471, allocations: 0 / 0.5851 GB, free: 9.676 MB / 446.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002112/0.4712, allocations: 67.33 kB / 0.5852 GB, free: 9.598 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.717e-05/0.4713, allocations: 77.11 kB / 0.5852 GB, free: 9.504 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.686e-05/0.4713, allocations: 93.98 kB / 0.5853 GB, free: 9.402 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.395e-05/0.4714, allocations: 25.7 kB / 0.5853 GB, free: 9.371 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.343e-05/0.4714, allocations: 80.14 kB / 0.5854 GB, free: 9.289 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.056e-05/0.4714, allocations: 4 kB / 0.5854 GB, free: 9.285 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.99e-05/0.4715, allocations: 13.72 kB / 0.5854 GB, free: 9.266 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001504/0.4716, allocations: 314.8 kB / 0.5857 GB, free: 8.949 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.528e-06/0.4716, allocations: 0 / 0.5857 GB, free: 8.949 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.574e-06/0.4716, allocations: 4 kB / 0.5857 GB, free: 8.945 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.331e-05/0.4717, allocations: 64.31 kB / 0.5858 GB, free: 8.867 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.4717, allocations: 4 kB / 0.5858 GB, free: 8.863 MB / 446.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.591e-05/0.4718, allocations: 63.34 kB / 0.5859 GB, free: 8.789 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.558e-05/0.4718, allocations: 33.7 kB / 0.5859 GB, free: 8.75 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.142e-06/0.4719, allocations: 0 / 0.5859 GB, free: 8.75 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.745e-05/0.4719, allocations: 0 / 0.5859 GB, free: 8.75 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.065e-06/0.4719, allocations: 3.984 kB / 0.5859 GB, free: 8.746 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.631e-06/0.4719, allocations: 0 / 0.5859 GB, free: 8.746 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.022e-05/0.4719, allocations: 3.938 kB / 0.5859 GB, free: 8.742 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.264e-06/0.4719, allocations: 4.031 kB / 0.5859 GB, free: 8.738 MB / 446.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 0.0001035/0.4721, allocations: 135.5 kB / 0.586 GB, free: 8.59 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.263e-06/0.4721, allocations: 0 / 0.586 GB, free: 8.59 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.488e-06/0.4721, allocations: 3.125 kB / 0.586 GB, free: 8.59 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.857e-06/0.4721, allocations: 0 / 0.586 GB, free: 8.59 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.4721, allocations: 7.938 kB / 0.586 GB, free: 8.582 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.639e-06/0.4721, allocations: 3.938 kB / 0.586 GB, free: 8.578 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001402/0.4723, allocations: 153.7 kB / 0.5862 GB, free: 8.379 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.158e-06/0.4723, allocations: 4 kB / 0.5862 GB, free: 8.375 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.81e-07/0.4723, allocations: 4 kB / 0.5862 GB, free: 8.371 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.102e-06/0.4723, allocations: 0 / 0.5862 GB, free: 8.371 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.708e-06/0.4723, allocations: 4 kB / 0.5862 GB, free: 8.367 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.02e-07/0.4723, allocations: 0 / 0.5862 GB, free: 8.367 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.71e-07/0.4723, allocations: 0 / 0.5862 GB, free: 8.367 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000119/0.4724, allocations: 102.7 kB / 0.5863 GB, free: 8.242 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.871e-05/0.4725, allocations: 77.11 kB / 0.5864 GB, free: 8.148 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.316e-05/0.4725, allocations: 0 / 0.5864 GB, free: 8.148 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.784e-06/0.4725, allocations: 7.969 kB / 0.5864 GB, free: 8.141 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.504e-05/0.4725, allocations: 0 / 0.5864 GB, free: 8.141 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.702e-06/0.4726, allocations: 7.938 kB / 0.5864 GB, free: 8.133 MB / 446.1 MB Notification: Performance of sorting global known variables: time 4.686e-05/0.4726, allocations: 75.28 kB / 0.5865 GB, free: 8.059 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4726, allocations: 0 / 0.5865 GB, free: 8.059 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.01361/0.4862, allocations: 3.784 MB / 0.5902 GB, free: 4.273 MB / 446.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.02068/0.5069, allocations: 1.508 MB / 0.5916 GB, free: 2.742 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0001466/0.5071, allocations: 59.39 kB / 0.5917 GB, free: 2.672 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.796e-06/0.5071, allocations: 0 / 0.5917 GB, free: 2.672 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 4.252e-05/0.5072, allocations: 55.41 kB / 0.5917 GB, free: 2.605 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001528/0.5073, allocations: 13.91 kB / 0.5918 GB, free: 2.594 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007278/0.5146, allocations: 356.9 kB / 0.5921 GB, free: 2.203 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003158/0.515, allocations: 0.6729 MB / 0.5928 GB, free: 1.504 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 7.444e-06/0.515, allocations: 0 / 0.5928 GB, free: 1.504 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.269e-05/0.515, allocations: 15.38 kB / 0.5928 GB, free: 1.488 MB / 446.1 MB Notification: Performance of SimCode: time 1.213e-06/0.515, allocations: 0 / 0.5928 GB, free: 1.488 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1983/0.7133, allocations: 113.8 MB / 0.7039 GB, free: 15.54 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.95/16.67, allocations: 15.92 kB / 0.7039 GB, free: 15.52 MB / 0.5606 GB (rm -f ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Math_TestMatrices2_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Math_TestMatrices2.fmu > ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2.pipe 2>&1)