Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001836/0.001836, allocations: 105.1 kB / 21.21 MB, free: 0.6523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002431/0.002431, allocations: 212.5 kB / 24.51 MB, free: 3.941 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.495/1.495, allocations: 230.6 MB / 258.3 MB, free: 7.781 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2235/0.2235, allocations: 44.93 MB / 359.6 MB, free: 6.051 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.TestMatrices,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestMatrices",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestMatrices,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestMatrices",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002501/0.002501, allocations: 60.19 kB / 0.4938 GB, free: 10.56 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3402/0.3427, allocations: 65.48 MB / 0.5577 GB, free: 7.34 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices): time 0.001799/0.3445, allocations: 0.4935 MB / 0.5582 GB, free: 6.965 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002321/0.3468, allocations: 1.542 MB / 0.5597 GB, free: 5.488 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.899e-05/0.3468, allocations: 0 / 0.5597 GB, free: 5.488 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.692e-05/0.3468, allocations: 0 / 0.5597 GB, free: 5.488 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.6e-06/0.3469, allocations: 0 / 0.5597 GB, free: 5.488 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/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.001005/0.3479, allocations: 299.2 kB / 0.56 GB, free: 5.195 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.657e-05/0.3479, allocations: 4 kB / 0.56 GB, free: 5.191 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.2e-05/0.348, allocations: 7.938 kB / 0.56 GB, free: 5.184 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.085e-05/0.348, allocations: 8 kB / 0.56 GB, free: 5.176 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.114e-05/0.348, allocations: 0 / 0.56 GB, free: 5.176 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.942e-06/0.348, allocations: 0 / 0.56 GB, free: 5.176 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007195/0.3487, allocations: 437.8 kB / 0.5604 GB, free: 4.75 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.566e-06/0.3487, allocations: 0 / 0.5604 GB, free: 4.75 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.298e-05/0.3488, allocations: 0 / 0.5604 GB, free: 4.75 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004532/0.3492, allocations: 301.1 kB / 0.5607 GB, free: 4.457 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.3492, allocations: 0 / 0.5607 GB, free: 4.457 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.3492, allocations: 0 / 0.5607 GB, free: 4.457 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.242e-05/0.3492, allocations: 4 kB / 0.5607 GB, free: 4.453 MB / 398.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.0003823/0.3496, allocations: 295.7 kB / 0.561 GB, free: 4.129 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.117e-05/0.3497, allocations: 15.97 kB / 0.561 GB, free: 4.113 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.098e-05/0.3497, allocations: 192 / 0.561 GB, free: 4.113 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.577e-05/0.3497, allocations: 30.75 kB / 0.561 GB, free: 4.074 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.348e-05/0.3497, allocations: 4.938 kB / 0.561 GB, free: 4.07 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.664e-05/0.3498, allocations: 110.5 kB / 0.5611 GB, free: 3.938 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.11e-05/0.3498, allocations: 384 / 0.5611 GB, free: 3.938 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.295e-06/0.3498, allocations: 384 / 0.5611 GB, free: 3.938 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001089/0.3499, allocations: 63.28 kB / 0.5612 GB, free: 3.863 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.474e-06/0.35, allocations: 0 / 0.5612 GB, free: 3.863 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.775e-06/0.35, allocations: 0 / 0.5612 GB, free: 3.863 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.987e-06/0.35, allocations: 0 / 0.5612 GB, free: 3.863 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.578e-05/0.35, allocations: 29.7 kB / 0.5612 GB, free: 3.828 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001465/0.3502, allocations: 120.8 kB / 0.5614 GB, free: 3.668 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.192e-05/0.3502, allocations: 48.31 kB / 0.5614 GB, free: 3.605 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.047e-05/0.3503, allocations: 34.55 kB / 0.5614 GB, free: 3.562 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.518e-06/0.3503, allocations: 7.875 kB / 0.5614 GB, free: 3.555 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.171e-05/0.3503, allocations: 60.33 kB / 0.5615 GB, free: 3.48 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.62e-07/0.3503, allocations: 0 / 0.5615 GB, free: 3.48 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001971/0.3505, allocations: 118.8 kB / 0.5616 GB, free: 3.34 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.02e-05/0.3506, allocations: 81.05 kB / 0.5617 GB, free: 3.242 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.742e-05/0.3506, allocations: 93.81 kB / 0.5618 GB, free: 3.141 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.592e-05/0.3506, allocations: 25.7 kB / 0.5618 GB, free: 3.109 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.735e-05/0.3507, allocations: 80.14 kB / 0.5619 GB, free: 3.027 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.89e-05/0.3507, allocations: 4.125 kB / 0.5619 GB, free: 3.023 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.974e-05/0.3507, allocations: 17.72 kB / 0.5619 GB, free: 3 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001306/0.3509, allocations: 314.8 kB / 0.5622 GB, free: 2.684 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.582e-05/0.3509, allocations: 29.7 kB / 0.5622 GB, free: 2.648 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.693e-05/0.3509, allocations: 33.64 kB / 0.5623 GB, free: 2.609 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.889e-05/0.351, allocations: 60.27 kB / 0.5623 GB, free: 2.535 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.351, allocations: 0 / 0.5623 GB, free: 2.535 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.877e-05/0.3511, allocations: 97.03 kB / 0.5624 GB, free: 2.422 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.284e-05/0.3511, allocations: 29.7 kB / 0.5624 GB, free: 2.387 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.99e-06/0.3511, allocations: 4.094 kB / 0.5624 GB, free: 2.383 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.303e-05/0.3511, allocations: 0 / 0.5624 GB, free: 2.383 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.102e-06/0.3511, allocations: 4 kB / 0.5624 GB, free: 2.379 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.338e-06/0.3511, allocations: 0 / 0.5624 GB, free: 2.379 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.458e-05/0.3511, allocations: 3.938 kB / 0.5624 GB, free: 2.375 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.672e-06/0.3512, allocations: 0 / 0.5624 GB, free: 2.375 MB / 398.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.736e-05/0.3512, allocations: 135.5 kB / 0.5626 GB, free: 2.227 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.312e-05/0.3513, allocations: 7.922 kB / 0.5626 GB, free: 2.219 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.34e-05/0.3513, allocations: 10.94 kB / 0.5626 GB, free: 2.207 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.343e-06/0.3513, allocations: 0 / 0.5626 GB, free: 2.207 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.026e-06/0.3513, allocations: 0 / 0.5626 GB, free: 2.207 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.736e-06/0.3513, allocations: 4 kB / 0.5626 GB, free: 2.203 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001193/0.3514, allocations: 120.8 kB / 0.5627 GB, free: 2.043 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.3514, allocations: 0 / 0.5627 GB, free: 2.043 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.395e-06/0.3514, allocations: 3.938 kB / 0.5627 GB, free: 2.039 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.243e-06/0.3514, allocations: 0 / 0.5627 GB, free: 2.039 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.717e-06/0.3514, allocations: 3.984 kB / 0.5627 GB, free: 2.035 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.005e-06/0.3514, allocations: 4 kB / 0.5627 GB, free: 2.031 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.21e-07/0.3514, allocations: 0 / 0.5627 GB, free: 2.031 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001146/0.3515, allocations: 112.5 kB / 0.5628 GB, free: 1.891 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.744e-06/0.3515, allocations: 7.922 kB / 0.5628 GB, free: 1.883 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.137e-05/0.3516, allocations: 4.031 kB / 0.5628 GB, free: 1.879 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.755e-06/0.3516, allocations: 0 / 0.5628 GB, free: 1.879 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.453e-05/0.3516, allocations: 4 kB / 0.5628 GB, free: 1.875 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.465e-06/0.3516, allocations: 0 / 0.5628 GB, free: 1.875 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.773e-05/0.3516, allocations: 75.28 kB / 0.5629 GB, free: 1.801 MB / 398.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3516, allocations: 0 / 0.5629 GB, free: 1.801 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003247/0.3519, allocations: 71.73 kB / 0.563 GB, free: 1.73 MB / 398.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.0008183/0.3528, allocations: 0.7504 MB / 0.5637 GB, free: 0.9492 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001347/0.3529, allocations: 114.8 kB / 0.5638 GB, free: 0.8125 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.3529, allocations: 0 / 0.5638 GB, free: 0.8125 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.592e-05/0.353, allocations: 93.09 kB / 0.5639 GB, free: 0.7031 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001294/0.3531, allocations: 4 kB / 0.5639 GB, free: 0.6992 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003691/0.3534, allocations: 156.2 kB / 0.5641 GB, free: 0.5 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.728e-05/0.3535, allocations: 55.36 kB / 0.5641 GB, free: 436 kB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.041e-06/0.3535, allocations: 0 / 0.5641 GB, free: 436 kB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.408e-05/0.3535, allocations: 7.438 kB / 0.5641 GB, free: 428 kB / 398.1 MB Notification: Performance of SimCode: time 2.71e-07/0.3535, allocations: 0 / 0.5641 GB, free: 428 kB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02172/0.3752, allocations: 2.302 MB / 0.5664 GB, free: 14.25 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.9/11.28, allocations: 11.98 kB / 0.5664 GB, free: 14.24 MB / 414.1 MB " [Timeout remaining time 649] (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Math_TestMatrices_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Math_TestMatrices.fmu > ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.196760436985642] Failed to read output from testmodel.py, exit status != 0: ['time', 'result'] 11.441705083008856 11.4574473 11.104889872 Calling exit ...