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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001868/0.001868, allocations: 117 kB / 18.49 MB, free: 4.566 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002215/0.002215, allocations: 216.7 kB / 21.46 MB, free: 1.613 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.41/1.41, allocations: 230.4 MB / 254.7 MB, free: 15.02 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2181/0.2181, allocations: 46.92 MB / 357.7 MB, free: 10.17 MB / 286.1 MB " [Timeout remaining time 180] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestMatrices2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_TestMatrices2",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002375/0.002375, allocations: 75.89 kB / 0.4916 GB, free: 7.715 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1182/0.1205, allocations: 66.05 MB / 0.5561 GB, free: 5.543 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices2): time 0.001633/0.1222, allocations: 497 kB / 0.5566 GB, free: 5.051 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.00752/0.1297, allocations: 4.914 MB / 0.5614 GB, free: 108 kB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.609e-05/0.1297, allocations: 0 / 0.5614 GB, free: 108 kB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.123e-05/0.1297, allocations: 0 / 0.5614 GB, free: 108 kB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 7.394e-06/0.1297, allocations: 3.938 kB / 0.5614 GB, free: 104 kB / 414.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.006961/0.1367, allocations: 2.942 MB / 0.5643 GB, free: 13.17 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 4.896e-05/0.1367, allocations: 0 / 0.5643 GB, free: 13.17 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.679e-05/0.1368, allocations: 4 kB / 0.5643 GB, free: 13.17 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.704e-05/0.1368, allocations: 0 / 0.5643 GB, free: 13.17 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.448e-05/0.1368, allocations: 0 / 0.5643 GB, free: 13.17 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 5.53e-06/0.1368, allocations: 0 / 0.5643 GB, free: 13.17 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02868/0.1655, allocations: 19.57 MB / 0.5834 GB, free: 9.578 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 1.373e-05/0.1655, allocations: 0 / 0.5834 GB, free: 9.578 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 3.628e-05/0.1655, allocations: 11.88 kB / 0.5834 GB, free: 9.566 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2845/0.45, allocations: 27.47 MB / 0.6102 GB, free: 21 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.626e-06/0.4501, allocations: 3.734 kB / 0.6102 GB, free: 21 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.4501, allocations: 0 / 0.6102 GB, free: 21 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.415e-05/0.4501, allocations: 0 / 0.6102 GB, free: 21 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.01394/0.464, allocations: 0.6751 MB / 0.6109 GB, free: 20.41 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.995e-05/0.464, allocations: 9.719 kB / 0.6109 GB, free: 20.41 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.348e-05/0.4641, allocations: 1.125 kB / 0.6109 GB, free: 20.41 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.446e-05/0.4641, allocations: 33.44 kB / 0.6109 GB, free: 20.37 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.889e-05/0.4641, allocations: 3.438 kB / 0.6109 GB, free: 20.37 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.754e-05/0.4642, allocations: 168.7 kB / 0.6111 GB, free: 20.17 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.808e-06/0.4642, allocations: 0 / 0.6111 GB, free: 20.17 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.126e-05/0.4642, allocations: 6.406 kB / 0.6111 GB, free: 20.17 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.634e-05/0.4643, allocations: 28.2 kB / 0.6111 GB, free: 20.14 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.093e-06/0.4643, allocations: 3.375 kB / 0.6111 GB, free: 20.14 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.532e-06/0.4643, allocations: 0 / 0.6111 GB, free: 20.14 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.408e-06/0.4643, allocations: 1.938 kB / 0.6111 GB, free: 20.14 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.628e-05/0.4643, allocations: 0 / 0.6111 GB, free: 20.14 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.234e-05/0.4644, allocations: 154.7 kB / 0.6113 GB, free: 19.95 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.736e-05/0.4644, allocations: 18.73 kB / 0.6113 GB, free: 19.93 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.285e-05/0.4644, allocations: 8.234 kB / 0.6113 GB, free: 19.92 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.344e-06/0.4644, allocations: 0 / 0.6113 GB, free: 19.92 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.868e-05/0.4645, allocations: 58.77 kB / 0.6114 GB, free: 19.85 MB / 446.1 MB Notification: Performance of pre-optimization done (n=1): time 8.42e-07/0.4645, allocations: 4.844 kB / 0.6114 GB, free: 19.85 MB / 446.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001506/0.4646, allocations: 66.81 kB / 0.6114 GB, free: 19.79 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.554e-05/0.4646, allocations: 80.98 kB / 0.6115 GB, free: 19.69 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.637e-05/0.4647, allocations: 89.86 kB / 0.6116 GB, free: 19.59 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 6.262e-06/0.4647, allocations: 27.23 kB / 0.6116 GB, free: 19.56 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.706e-06/0.4647, allocations: 80.14 kB / 0.6117 GB, free: 19.48 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.422e-05/0.4647, allocations: 0 / 0.6117 GB, free: 19.48 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.287e-05/0.4647, allocations: 15.94 kB / 0.6117 GB, free: 19.46 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.284e-05/0.4648, allocations: 315.9 kB / 0.612 GB, free: 19.15 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.718e-06/0.4648, allocations: 2.672 kB / 0.612 GB, free: 19.15 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.434e-05/0.4648, allocations: 1.625 kB / 0.612 GB, free: 19.15 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.566e-05/0.4648, allocations: 63.55 kB / 0.6121 GB, free: 19.08 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.442e-06/0.4648, allocations: 0 / 0.6121 GB, free: 19.08 MB / 446.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.522e-05/0.4649, allocations: 69 kB / 0.6122 GB, free: 19.02 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.211e-05/0.4649, allocations: 31.73 kB / 0.6122 GB, free: 18.98 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.917e-06/0.4649, allocations: 0 / 0.6122 GB, free: 18.98 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.359e-05/0.4649, allocations: 7.125 kB / 0.6122 GB, free: 18.98 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.72e-07/0.4649, allocations: 0 / 0.6122 GB, free: 18.98 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.989e-06/0.4649, allocations: 1.312 kB / 0.6122 GB, free: 18.98 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.696e-05/0.4649, allocations: 0 / 0.6122 GB, free: 18.98 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.573e-06/0.4649, allocations: 2.312 kB / 0.6122 GB, free: 18.98 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 4.921e-05/0.465, allocations: 148.1 kB / 0.6123 GB, free: 18.83 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.784e-06/0.465, allocations: 1.375 kB / 0.6123 GB, free: 18.83 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.548e-06/0.465, allocations: 3.125 kB / 0.6123 GB, free: 18.83 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.21e-07/0.465, allocations: 2.312 kB / 0.6123 GB, free: 18.83 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.465, allocations: 0 / 0.6123 GB, free: 18.83 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.585e-06/0.465, allocations: 1.125 kB / 0.6123 GB, free: 18.83 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.926e-05/0.4651, allocations: 152.9 kB / 0.6125 GB, free: 18.64 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.31e-07/0.4651, allocations: 0 / 0.6125 GB, free: 18.64 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.92e-07/0.4651, allocations: 0.5 kB / 0.6125 GB, free: 18.64 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.4651, allocations: 1.125 kB / 0.6125 GB, free: 18.64 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.791e-06/0.4651, allocations: 0 / 0.6125 GB, free: 18.64 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.91e-07/0.4651, allocations: 1.5 kB / 0.6125 GB, free: 18.64 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.4651, allocations: 0.875 kB / 0.6125 GB, free: 18.64 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.536e-05/0.4651, allocations: 101.8 kB / 0.6126 GB, free: 18.54 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.266e-05/0.4652, allocations: 82.81 kB / 0.6127 GB, free: 18.45 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.202e-05/0.4652, allocations: 1.312 kB / 0.6127 GB, free: 18.45 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.558e-06/0.4652, allocations: 0 / 0.6127 GB, free: 18.45 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.437e-05/0.4652, allocations: 1.281 kB / 0.6127 GB, free: 18.45 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.685e-06/0.4652, allocations: 3.188 kB / 0.6127 GB, free: 18.45 MB / 446.1 MB Notification: Performance of sorting global known variables: time 1.086e-05/0.4652, allocations: 77.53 kB / 0.6127 GB, free: 18.37 MB / 446.1 MB Notification: Performance of sort global known variables: time 6e-08/0.4652, allocations: 0 / 0.6127 GB, free: 18.37 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.02093/0.4861, allocations: 3.787 MB / 0.6164 GB, free: 17.5 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.03865/0.5248, allocations: 1.521 MB / 0.6179 GB, free: 16.14 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0001156/0.5249, allocations: 60.81 kB / 0.618 GB, free: 16.07 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.5249, allocations: 0 / 0.618 GB, free: 16.07 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 1.809e-05/0.5249, allocations: 55.41 kB / 0.618 GB, free: 16.01 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001526/0.5251, allocations: 4.406 kB / 0.618 GB, free: 16.01 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01256/0.5376, allocations: 346.2 kB / 0.6184 GB, free: 15.64 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.785e-05/0.5377, allocations: 0.669 MB / 0.619 GB, free: 14.95 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 7.143e-06/0.5377, allocations: 0 / 0.619 GB, free: 14.95 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.188e-05/0.5377, allocations: 11.44 kB / 0.619 GB, free: 14.93 MB / 446.1 MB Notification: Performance of SimCode: time 1.283e-06/0.5377, allocations: 0 / 0.619 GB, free: 14.93 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1802/0.7179, allocations: 113.9 MB / 0.7302 GB, free: 12.98 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.55/15.27, allocations: 11.16 kB / 0.7303 GB, free: 12.97 MB / 0.545 GB " [Timeout remaining time 645] (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) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 18.118150664959103] Failed to read output from testmodel.py, exit status != 0: ['time', 'result'] 15.438380845997017 15.451196949 14.998419836 Calling exit ...