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.001362/0.001362, allocations: 119.1 kB / 20.45 MB, free: 1.176 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.001529/0.001529, allocations: 206.4 kB / 23.73 MB, free: 4.391 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.445/1.445, allocations: 230.5 MB / 257.4 MB, free: 7.73 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.241/0.241, allocations: 46.94 MB / 360.8 MB, free: 3.941 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestMatrices2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_TestMatrices2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002316/0.002316, allocations: 83.88 kB / 0.4961 GB, free: 7.578 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3/0.3023, allocations: 66.08 MB / 0.5607 GB, free: 4.059 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices2): time 0.001596/0.3039, allocations: 493.1 kB / 0.5611 GB, free: 3.578 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.007271/0.3112, allocations: 4.578 MB / 0.5656 GB, free: 14.98 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.254e-05/0.3112, allocations: 0 / 0.5656 GB, free: 14.98 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.376e-05/0.3112, allocations: 3.938 kB / 0.5656 GB, free: 14.97 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 7.093e-06/0.3112, allocations: 0 / 0.5656 GB, free: 14.97 MB / 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.007848/0.3191, allocations: 3.267 MB / 0.5688 GB, free: 11.71 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 5.276e-05/0.3191, allocations: 0 / 0.5688 GB, free: 11.71 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.841e-05/0.3192, allocations: 0 / 0.5688 GB, free: 11.71 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.582e-05/0.3192, allocations: 0 / 0.5688 GB, free: 11.71 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.066e-05/0.3192, allocations: 8 kB / 0.5688 GB, free: 11.7 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 7.654e-06/0.3192, allocations: 0 / 0.5688 GB, free: 11.7 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02958/0.3488, allocations: 19.8 MB / 0.5882 GB, free: 7.879 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 1.21e-05/0.3488, allocations: 0 / 0.5882 GB, free: 7.879 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 2.268e-05/0.3488, allocations: 0 / 0.5882 GB, free: 7.879 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03568/0.3845, allocations: 26.13 MB / 0.6137 GB, free: 13.7 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.07e-05/0.3845, allocations: 7.938 kB / 0.6137 GB, free: 13.7 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.745e-06/0.3845, allocations: 0 / 0.6137 GB, free: 13.7 MB / 462.1 MB Notification: Performance of Transformations before backend: time 6.833e-06/0.3845, allocations: 0 / 0.6137 GB, free: 13.7 MB / 462.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.007291/0.3918, allocations: 0.5932 MB / 0.6143 GB, free: 13.07 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.992e-05/0.3919, allocations: 16.03 kB / 0.6143 GB, free: 13.05 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.957e-05/0.3919, allocations: 30.75 kB / 0.6143 GB, free: 13.02 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.044e-05/0.392, allocations: 0.9375 kB / 0.6143 GB, free: 13.02 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.18e-05/0.392, allocations: 109.7 kB / 0.6144 GB, free: 12.88 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.133e-05/0.3921, allocations: 0 / 0.6144 GB, free: 12.88 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.033e-05/0.3921, allocations: 4 kB / 0.6144 GB, free: 12.88 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001073/0.3922, allocations: 55.39 kB / 0.6145 GB, free: 12.81 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.253e-05/0.3922, allocations: 3.984 kB / 0.6145 GB, free: 12.81 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.014e-05/0.3922, allocations: 4 kB / 0.6145 GB, free: 12.8 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.639e-06/0.3922, allocations: 0 / 0.6145 GB, free: 12.8 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.088e-05/0.3922, allocations: 29.64 kB / 0.6145 GB, free: 12.77 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001437/0.3924, allocations: 128.6 kB / 0.6146 GB, free: 12.6 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.845e-05/0.3925, allocations: 48.22 kB / 0.6147 GB, free: 12.54 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.294e-05/0.3925, allocations: 42.58 kB / 0.6147 GB, free: 12.49 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.254e-06/0.3925, allocations: 0 / 0.6147 GB, free: 12.49 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.141e-05/0.3925, allocations: 56.27 kB / 0.6148 GB, free: 12.42 MB / 462.1 MB Notification: Performance of pre-optimization done (n=1): time 8.22e-07/0.3925, allocations: 0 / 0.6148 GB, free: 12.42 MB / 462.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002949/0.3928, allocations: 122.7 kB / 0.6149 GB, free: 12.27 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.059e-05/0.3929, allocations: 81.09 kB / 0.615 GB, free: 12.18 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.461e-05/0.3929, allocations: 93.86 kB / 0.615 GB, free: 12.07 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 2.296e-05/0.393, allocations: 25.83 kB / 0.6151 GB, free: 12.04 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.562e-05/0.393, allocations: 84.14 kB / 0.6152 GB, free: 11.96 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.928e-05/0.393, allocations: 0 / 0.6152 GB, free: 11.96 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.679e-05/0.3931, allocations: 13.72 kB / 0.6152 GB, free: 11.94 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001406/0.3932, allocations: 318.8 kB / 0.6155 GB, free: 11.62 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.376e-05/0.3932, allocations: 25.7 kB / 0.6155 GB, free: 11.59 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.681e-05/0.3932, allocations: 29.7 kB / 0.6155 GB, free: 11.55 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.01e-05/0.3933, allocations: 60.25 kB / 0.6156 GB, free: 11.48 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.263e-06/0.3933, allocations: 4 kB / 0.6156 GB, free: 11.47 MB / 462.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.445e-05/0.3934, allocations: 89.14 kB / 0.6157 GB, free: 11.37 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.174e-05/0.3934, allocations: 37.7 kB / 0.6157 GB, free: 11.32 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.977e-06/0.3934, allocations: 0 / 0.6157 GB, free: 11.32 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.212e-05/0.3934, allocations: 0 / 0.6157 GB, free: 11.32 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.705e-06/0.3934, allocations: 3.984 kB / 0.6157 GB, free: 11.32 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.657e-06/0.3934, allocations: 0 / 0.6157 GB, free: 11.32 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.469e-05/0.3935, allocations: 0 / 0.6157 GB, free: 11.32 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.335e-06/0.3935, allocations: 4 kB / 0.6157 GB, free: 11.32 MB / 462.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.058e-05/0.3936, allocations: 135.5 kB / 0.6158 GB, free: 11.17 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.254e-06/0.3936, allocations: 0 / 0.6158 GB, free: 11.17 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.636e-06/0.3936, allocations: 7 kB / 0.6158 GB, free: 11.16 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.82e-07/0.3936, allocations: 4 kB / 0.6159 GB, free: 11.16 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.3936, allocations: 4 kB / 0.6159 GB, free: 11.15 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.573e-06/0.3936, allocations: 0 / 0.6159 GB, free: 11.15 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.658e-05/0.3937, allocations: 120.7 kB / 0.616 GB, free: 10.99 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.078e-06/0.3937, allocations: 4 kB / 0.616 GB, free: 10.99 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.01e-07/0.3937, allocations: 0 / 0.616 GB, free: 10.99 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.192e-06/0.3937, allocations: 0 / 0.616 GB, free: 10.99 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.274e-06/0.3937, allocations: 4 kB / 0.616 GB, free: 10.98 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.21e-07/0.3937, allocations: 0 / 0.616 GB, free: 10.98 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.3937, allocations: 3.938 kB / 0.616 GB, free: 10.98 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001226/0.3938, allocations: 128.4 kB / 0.6161 GB, free: 10.82 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.477e-06/0.3938, allocations: 0 / 0.6161 GB, free: 10.82 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.522e-05/0.3938, allocations: 4 kB / 0.6161 GB, free: 10.82 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.085e-06/0.3938, allocations: 0 / 0.6161 GB, free: 10.82 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.626e-06/0.3938, allocations: 3.938 kB / 0.6161 GB, free: 10.82 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.255e-06/0.3938, allocations: 0 / 0.6161 GB, free: 10.82 MB / 462.1 MB Notification: Performance of sorting global known variables: time 3.172e-05/0.3939, allocations: 75.28 kB / 0.6162 GB, free: 10.74 MB / 462.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3939, allocations: 4 kB / 0.6162 GB, free: 10.74 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.01021/0.4041, allocations: 3.784 MB / 0.6199 GB, free: 6.953 MB / 462.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.0189/0.423, allocations: 1.551 MB / 0.6214 GB, free: 5.375 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0001794/0.4232, allocations: 114.8 kB / 0.6215 GB, free: 5.238 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.4232, allocations: 0 / 0.6215 GB, free: 5.238 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 5.462e-05/0.4232, allocations: 81.11 kB / 0.6216 GB, free: 5.141 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000127/0.4234, allocations: 0 / 0.6216 GB, free: 5.141 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005617/0.429, allocations: 386.4 kB / 0.622 GB, free: 4.715 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.402e-05/0.429, allocations: 55.36 kB / 0.622 GB, free: 4.641 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 5.15e-06/0.429, allocations: 0 / 0.622 GB, free: 4.641 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.573e-05/0.4291, allocations: 19.55 kB / 0.622 GB, free: 4.621 MB / 462.1 MB Notification: Performance of SimCode: time 6.51e-07/0.4291, allocations: 0 / 0.622 GB, free: 4.621 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1917/0.6208, allocations: 114.4 MB / 0.7337 GB, free: 2.141 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.41/19.03, allocations: 11.83 kB / 0.7337 GB, free: 2.129 MB / 0.5606 GB " [Timeout remaining time 641] (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: 22.38550930703059] Failed to read output from testmodel.py, exit status != 0: ['time', 'result'] 19.17940937075764 19.475091193 19.088323181 Calling exit ...