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.001327/0.001327, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.00163/0.00163, allocations: 209.7 kB / 23.73 MB, free: 4.387 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.481/1.481, allocations: 230.6 MB / 257.5 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.23/0.23, allocations: 44.94 MB / 358.8 MB, free: 6.027 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestMatrices,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestMatrices",fmuType="me",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.002065/0.002065, allocations: 71.89 kB / 0.493 GB, free: 10.53 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3662/0.3683, allocations: 65.47 MB / 0.5569 GB, free: 7.332 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices): time 0.001722/0.37, allocations: 0.4934 MB / 0.5574 GB, free: 6.961 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002405/0.3724, allocations: 1.546 MB / 0.5589 GB, free: 5.484 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.413e-05/0.3724, allocations: 0 / 0.5589 GB, free: 5.484 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.139e-05/0.3725, allocations: 0 / 0.5589 GB, free: 5.484 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.919e-06/0.3725, allocations: 0 / 0.5589 GB, free: 5.484 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.0009572/0.3734, allocations: 287.2 kB / 0.5592 GB, free: 5.203 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.619e-05/0.3735, allocations: 4 kB / 0.5592 GB, free: 5.199 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.828e-05/0.3735, allocations: 11.98 kB / 0.5592 GB, free: 5.188 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.468e-05/0.3735, allocations: 0 / 0.5592 GB, free: 5.188 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.934e-05/0.3735, allocations: 3.938 kB / 0.5592 GB, free: 5.184 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.25e-06/0.3735, allocations: 0 / 0.5592 GB, free: 5.184 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007025/0.3742, allocations: 427 kB / 0.5596 GB, free: 4.766 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.584e-06/0.3743, allocations: 4 kB / 0.5596 GB, free: 4.762 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.242e-05/0.3743, allocations: 0 / 0.5596 GB, free: 4.762 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004225/0.3747, allocations: 309 kB / 0.5599 GB, free: 4.461 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.01e-06/0.3747, allocations: 0 / 0.5599 GB, free: 4.461 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.3747, allocations: 0 / 0.5599 GB, free: 4.461 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.611e-06/0.3747, allocations: 0 / 0.5599 GB, free: 4.461 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.0003827/0.3751, allocations: 299.7 kB / 0.5602 GB, free: 4.133 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.848e-05/0.3751, allocations: 12.03 kB / 0.5602 GB, free: 4.121 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.183e-05/0.3752, allocations: 34.69 kB / 0.5603 GB, free: 4.078 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.721e-05/0.3752, allocations: 4.938 kB / 0.5603 GB, free: 4.074 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.969e-05/0.3753, allocations: 102.5 kB / 0.5604 GB, free: 3.949 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.247e-05/0.3753, allocations: 4.375 kB / 0.5604 GB, free: 3.945 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.831e-06/0.3753, allocations: 4.312 kB / 0.5604 GB, free: 3.941 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001053/0.3754, allocations: 63.52 kB / 0.5604 GB, free: 3.867 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.656e-06/0.3754, allocations: 3.984 kB / 0.5604 GB, free: 3.863 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.802e-06/0.3754, allocations: 0 / 0.5604 GB, free: 3.863 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.717e-06/0.3754, allocations: 0 / 0.5604 GB, free: 3.863 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.636e-05/0.3755, allocations: 33.64 kB / 0.5605 GB, free: 3.824 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001338/0.3756, allocations: 120.8 kB / 0.5606 GB, free: 3.664 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.057e-05/0.3756, allocations: 48.3 kB / 0.5606 GB, free: 3.602 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.855e-05/0.3757, allocations: 30.56 kB / 0.5607 GB, free: 3.562 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.872e-06/0.3757, allocations: 0 / 0.5607 GB, free: 3.562 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.972e-05/0.3757, allocations: 64.27 kB / 0.5607 GB, free: 3.484 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.42e-07/0.3757, allocations: 0 / 0.5607 GB, free: 3.484 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.000197/0.3759, allocations: 122.7 kB / 0.5608 GB, free: 3.34 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.659e-05/0.376, allocations: 77.11 kB / 0.5609 GB, free: 3.246 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.037e-05/0.376, allocations: 93.81 kB / 0.561 GB, free: 3.145 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.457e-05/0.3761, allocations: 25.83 kB / 0.561 GB, free: 3.113 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.369e-05/0.3761, allocations: 84.14 kB / 0.5611 GB, free: 3.027 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.518e-05/0.3761, allocations: 4 kB / 0.5611 GB, free: 3.023 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.887e-05/0.3761, allocations: 13.72 kB / 0.5611 GB, free: 3.004 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001442/0.3763, allocations: 310.8 kB / 0.5614 GB, free: 2.691 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.172e-05/0.3763, allocations: 29.7 kB / 0.5615 GB, free: 2.656 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.095e-05/0.3763, allocations: 29.69 kB / 0.5615 GB, free: 2.621 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.081e-05/0.3764, allocations: 60.27 kB / 0.5615 GB, free: 2.547 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.3764, allocations: 0 / 0.5615 GB, free: 2.547 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.386e-05/0.3765, allocations: 93.05 kB / 0.5616 GB, free: 2.438 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.604e-05/0.3765, allocations: 41.72 kB / 0.5617 GB, free: 2.391 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.328e-06/0.3765, allocations: 0 / 0.5617 GB, free: 2.391 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.192e-05/0.3765, allocations: 4 kB / 0.5617 GB, free: 2.387 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.21e-07/0.3765, allocations: 0 / 0.5617 GB, free: 2.387 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.148e-06/0.3765, allocations: 0 / 0.5617 GB, free: 2.387 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.404e-05/0.3765, allocations: 0 / 0.5617 GB, free: 2.387 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.22e-06/0.3765, allocations: 0 / 0.5617 GB, free: 2.387 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.737e-05/0.3766, allocations: 135.5 kB / 0.5618 GB, free: 2.238 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.258e-06/0.3767, allocations: 3.938 kB / 0.5618 GB, free: 2.234 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.738e-06/0.3767, allocations: 3 kB / 0.5618 GB, free: 2.23 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.052e-06/0.3767, allocations: 4 kB / 0.5618 GB, free: 2.227 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.3767, allocations: 7.922 kB / 0.5618 GB, free: 2.219 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.755e-06/0.3767, allocations: 4 kB / 0.5618 GB, free: 2.215 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.598e-05/0.3768, allocations: 124.7 kB / 0.5619 GB, free: 2.051 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.62e-07/0.3768, allocations: 0 / 0.5619 GB, free: 2.051 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.11e-07/0.3768, allocations: 0 / 0.5619 GB, free: 2.051 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.416e-06/0.3768, allocations: 3.938 kB / 0.5619 GB, free: 2.047 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.548e-06/0.3768, allocations: 4 kB / 0.562 GB, free: 2.043 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.3768, allocations: 0 / 0.562 GB, free: 2.043 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.31e-07/0.3768, allocations: 0 / 0.562 GB, free: 2.043 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001195/0.3769, allocations: 124.5 kB / 0.5621 GB, free: 1.891 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.61e-06/0.3769, allocations: 3.938 kB / 0.5621 GB, free: 1.887 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.268e-05/0.3769, allocations: 4 kB / 0.5621 GB, free: 1.883 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.979e-06/0.3769, allocations: 4 kB / 0.5621 GB, free: 1.879 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.299e-05/0.3769, allocations: 3.984 kB / 0.5621 GB, free: 1.875 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.013e-06/0.3769, allocations: 0 / 0.5621 GB, free: 1.875 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.295e-05/0.377, allocations: 75.28 kB / 0.5622 GB, free: 1.801 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.377, allocations: 0 / 0.5622 GB, free: 1.801 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000297/0.3773, allocations: 63.81 kB / 0.5622 GB, free: 1.738 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.0007878/0.3781, allocations: 0.7542 MB / 0.563 GB, free: 0.9531 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001307/0.3782, allocations: 118.8 kB / 0.5631 GB, free: 0.8125 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.3782, allocations: 0 / 0.5631 GB, free: 0.8125 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 6.344e-05/0.3783, allocations: 81.11 kB / 0.5631 GB, free: 0.7148 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001206/0.3784, allocations: 4 kB / 0.5631 GB, free: 0.7109 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003662/0.3787, allocations: 156.2 kB / 0.5633 GB, free: 0.5117 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.751e-05/0.3788, allocations: 59.3 kB / 0.5634 GB, free: 444 kB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.44e-06/0.3788, allocations: 0 / 0.5634 GB, free: 444 kB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.441e-05/0.3788, allocations: 7.438 kB / 0.5634 GB, free: 436 kB / 398.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3788, allocations: 3.938 kB / 0.5634 GB, free: 432 kB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02879/0.4076, allocations: 2.652 MB / 0.566 GB, free: 13.89 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.91/11.32, allocations: 3.438 kB / 0.566 GB, free: 13.89 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.15416903886944] Failed to read output from testmodel.py, exit status != 0: ['time', 'result'] 11.426422919612378 11.441781276 11.063998964 Calling exit ...