Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Math.TestMatrices2.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.001648/0.001648, allocations: 112.2 kB / 21.22 MB, free: 0.75 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.00212/0.00212, allocations: 206.1 kB / 24.52 MB, free: 4.156 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.409/1.409, allocations: 230.6 MB / 258.3 MB, free: 8.008 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2227/0.2227, allocations: 46.94 MB / 361.7 MB, free: 4.238 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.TestMatrices2,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Math_TestMatrices2",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestMatrices2,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Math_TestMatrices2",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001963/0.001963, allocations: 59.89 kB / 0.4969 GB, free: 7.887 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3131/0.315, allocations: 66.04 MB / 0.5614 GB, free: 4.469 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices2): time 0.001531/0.3166, allocations: 493 kB / 0.5619 GB, free: 3.984 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.008148/0.3247, allocations: 4.959 MB / 0.5667 GB, free: 15 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.126e-05/0.3247, allocations: 0 / 0.5667 GB, free: 15 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 2.018e-05/0.3247, allocations: 0 / 0.5667 GB, free: 15 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 6.191e-06/0.3247, allocations: 0 / 0.5667 GB, free: 15 MB / 414.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/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.008224/0.333, allocations: 3.259 MB / 0.5699 GB, free: 11.75 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 6.327e-05/0.333, allocations: 8 kB / 0.5699 GB, free: 11.74 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.041e-05/0.3331, allocations: 3.984 kB / 0.5699 GB, free: 11.73 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.334e-05/0.3331, allocations: 0 / 0.5699 GB, free: 11.73 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.491e-05/0.3331, allocations: 4 kB / 0.5699 GB, free: 11.73 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.49e-06/0.3331, allocations: 0 / 0.5699 GB, free: 11.73 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03006/0.3632, allocations: 21.05 MB / 0.5905 GB, free: 6.656 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 1.172e-05/0.3632, allocations: 0 / 0.5905 GB, free: 6.656 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 2.985e-05/0.3632, allocations: 7.938 kB / 0.5905 GB, free: 6.648 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03748/0.4007, allocations: 27.6 MB / 0.6174 GB, free: 11 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.798e-06/0.4007, allocations: 0 / 0.6174 GB, free: 11 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.575e-06/0.4007, allocations: 0 / 0.6174 GB, free: 11 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.033e-05/0.4007, allocations: 0 / 0.6174 GB, free: 11 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.008779/0.4095, allocations: 0.6022 MB / 0.618 GB, free: 10.36 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.809e-05/0.4095, allocations: 8.031 kB / 0.618 GB, free: 10.35 MB / 462.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.501e-05/0.4095, allocations: 4.125 kB / 0.618 GB, free: 10.35 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.772e-05/0.4096, allocations: 30.75 kB / 0.6181 GB, free: 10.31 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.783e-05/0.4096, allocations: 12.62 kB / 0.6181 GB, free: 10.3 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.856e-05/0.4097, allocations: 105.2 kB / 0.6182 GB, free: 10.17 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.598e-06/0.4097, allocations: 0 / 0.6182 GB, free: 10.17 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.017e-05/0.4097, allocations: 0 / 0.6182 GB, free: 10.17 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.352e-05/0.4098, allocations: 33.69 kB / 0.6182 GB, free: 10.13 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.382e-06/0.4098, allocations: 4 kB / 0.6182 GB, free: 10.12 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.005e-06/0.4098, allocations: 0 / 0.6182 GB, free: 10.12 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.108e-06/0.4098, allocations: 0 / 0.6182 GB, free: 10.12 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.201e-05/0.4098, allocations: 7.875 kB / 0.6182 GB, free: 10.12 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001273/0.41, allocations: 120.7 kB / 0.6183 GB, free: 9.957 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.802e-05/0.41, allocations: 18.58 kB / 0.6184 GB, free: 9.93 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.947e-05/0.41, allocations: 12.94 kB / 0.6184 GB, free: 9.914 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.632e-06/0.41, allocations: 0 / 0.6184 GB, free: 9.914 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.86e-05/0.4101, allocations: 60.27 kB / 0.6184 GB, free: 9.84 MB / 462.1 MB Notification: Performance of pre-optimization done (n=1): time 8.52e-07/0.4101, allocations: 0 / 0.6184 GB, free: 9.84 MB / 462.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001834/0.4103, allocations: 63.34 kB / 0.6185 GB, free: 9.766 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.749e-05/0.4103, allocations: 81.11 kB / 0.6186 GB, free: 9.668 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.851e-05/0.4104, allocations: 97.78 kB / 0.6187 GB, free: 9.562 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 1.472e-05/0.4104, allocations: 25.7 kB / 0.6187 GB, free: 9.531 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.676e-05/0.4104, allocations: 80.14 kB / 0.6188 GB, free: 9.449 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.655e-05/0.4105, allocations: 4.125 kB / 0.6188 GB, free: 9.445 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.493e-05/0.4105, allocations: 13.72 kB / 0.6188 GB, free: 9.426 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001296/0.4106, allocations: 310.8 kB / 0.6191 GB, free: 9.113 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.23e-05/0.4106, allocations: 4 kB / 0.6191 GB, free: 9.109 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.766e-06/0.4106, allocations: 4 kB / 0.6191 GB, free: 9.105 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.617e-05/0.4107, allocations: 64.27 kB / 0.6191 GB, free: 9.027 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.4107, allocations: 0 / 0.6191 GB, free: 9.027 MB / 462.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.551e-05/0.4108, allocations: 63.33 kB / 0.6192 GB, free: 8.953 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.105e-05/0.4108, allocations: 37.8 kB / 0.6192 GB, free: 8.91 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.078e-06/0.4108, allocations: 0 / 0.6192 GB, free: 8.91 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.229e-05/0.4108, allocations: 0 / 0.6192 GB, free: 8.91 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.715e-06/0.4108, allocations: 3.984 kB / 0.6192 GB, free: 8.906 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.029e-06/0.4108, allocations: 0 / 0.6192 GB, free: 8.906 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.835e-05/0.4108, allocations: 3.938 kB / 0.6192 GB, free: 8.902 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.592e-06/0.4108, allocations: 7.938 kB / 0.6193 GB, free: 8.895 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.705e-05/0.4109, allocations: 139.5 kB / 0.6194 GB, free: 8.742 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.645e-06/0.4109, allocations: 0 / 0.6194 GB, free: 8.742 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.118e-05/0.411, allocations: 11 kB / 0.6194 GB, free: 8.73 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.72e-07/0.411, allocations: 0 / 0.6194 GB, free: 8.73 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.411, allocations: 0 / 0.6194 GB, free: 8.73 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.027e-06/0.411, allocations: 3.938 kB / 0.6194 GB, free: 8.727 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.84e-05/0.4111, allocations: 112.8 kB / 0.6195 GB, free: 8.574 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.957e-06/0.4111, allocations: 7.938 kB / 0.6195 GB, free: 8.566 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.114e-06/0.4111, allocations: 3.984 kB / 0.6195 GB, free: 8.562 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.382e-06/0.4111, allocations: 0 / 0.6195 GB, free: 8.562 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.563e-06/0.4111, allocations: 0 / 0.6195 GB, free: 8.562 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.12e-07/0.4111, allocations: 0 / 0.6195 GB, free: 8.562 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.12e-07/0.4111, allocations: 0 / 0.6195 GB, free: 8.562 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001066/0.4112, allocations: 102.7 kB / 0.6196 GB, free: 8.438 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.807e-06/0.4112, allocations: 0 / 0.6196 GB, free: 8.438 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.07e-05/0.4112, allocations: 0 / 0.6196 GB, free: 8.438 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.018e-05/0.4112, allocations: 4 kB / 0.6196 GB, free: 8.434 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.527e-05/0.4112, allocations: 3.938 kB / 0.6196 GB, free: 8.43 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.354e-06/0.4112, allocations: 0 / 0.6196 GB, free: 8.43 MB / 462.1 MB Notification: Performance of sorting global known variables: time 3.247e-05/0.4113, allocations: 75.28 kB / 0.6197 GB, free: 8.355 MB / 462.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4113, allocations: 4.031 kB / 0.6197 GB, free: 8.352 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.01029/0.4215, allocations: 3.787 MB / 0.6234 GB, free: 4.562 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.01889/0.4404, allocations: 1.513 MB / 0.6249 GB, free: 3.035 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0001538/0.4406, allocations: 59.41 kB / 0.6249 GB, free: 2.965 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.524e-06/0.4406, allocations: 0 / 0.6249 GB, free: 2.965 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 4.373e-05/0.4406, allocations: 63.39 kB / 0.625 GB, free: 2.891 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001437/0.4408, allocations: 3.938 kB / 0.625 GB, free: 2.887 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007062/0.4478, allocations: 344.9 kB / 0.6253 GB, free: 2.508 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003021/0.4481, allocations: 0.6768 MB / 0.626 GB, free: 1.805 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 7.164e-06/0.4481, allocations: 0 / 0.626 GB, free: 1.805 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.437e-05/0.4482, allocations: 11.56 kB / 0.626 GB, free: 1.793 MB / 462.1 MB Notification: Performance of SimCode: time 1.273e-06/0.4482, allocations: 4 kB / 0.626 GB, free: 1.789 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4028/0.851, allocations: 114 MB / 0.7373 GB, free: 158.2 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.76/18.61, allocations: 7.016 kB / 0.7373 GB, free: 158.2 MB / 0.5606 GB " [Timeout remaining time 641] (rm -f ModelicaTest_4.1.0_ModelicaTest.Math.TestMatrices2.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Math.TestMatrices2.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Math.TestMatrices2.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Math.TestMatrices2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Math.TestMatrices2_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Math_TestMatrices2_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Math_TestMatrices2.fmu > ModelicaTest_4.1.0_ModelicaTest.Math.TestMatrices2.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 21.437254032993224] Failed to read output from testmodel.py, exit status != 0: ['time', 'result'] 18.814706779026892 18.835714797 18.431418536 Calling exit ...