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.001724/0.001724, allocations: 115.8 kB / 20.43 MB, free: 1.457 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.002117/0.002117, allocations: 213.3 kB / 23.75 MB, free: 4.668 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.442/1.442, allocations: 230.6 MB / 257.5 MB, free: 8.012 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.2437/0.2437, allocations: 46.93 MB / 360.9 MB, free: 4.27 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestMatrices2,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Math_TestMatrices2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001979/0.001979, allocations: 67.88 kB / 0.4961 GB, free: 7.906 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3501/0.3521, allocations: 66.04 MB / 0.5606 GB, free: 4.473 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices2): time 0.001657/0.3538, allocations: 493 kB / 0.5611 GB, free: 3.988 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.008278/0.362, allocations: 4.946 MB / 0.5659 GB, free: 15.02 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.427e-05/0.3621, allocations: 0 / 0.5659 GB, free: 15.02 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 2.069e-05/0.3621, allocations: 3.938 kB / 0.5659 GB, free: 15.01 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 7.564e-06/0.3621, allocations: 0 / 0.5659 GB, free: 15.01 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.009117/0.3712, allocations: 3.263 MB / 0.5691 GB, free: 11.75 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 5.792e-05/0.3713, allocations: 3.984 kB / 0.5691 GB, free: 11.75 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.199e-05/0.3713, allocations: 0 / 0.5691 GB, free: 11.75 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.796e-05/0.3713, allocations: 0 / 0.5691 GB, free: 11.75 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.316e-05/0.3713, allocations: 8 kB / 0.5691 GB, free: 11.74 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.861e-06/0.3713, allocations: 0 / 0.5691 GB, free: 11.74 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03215/0.4035, allocations: 21.06 MB / 0.5897 GB, free: 6.66 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 1.037e-05/0.4035, allocations: 4 kB / 0.5897 GB, free: 6.656 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 3.413e-05/0.4035, allocations: 3.938 kB / 0.5897 GB, free: 6.652 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03908/0.4426, allocations: 27.6 MB / 0.6167 GB, free: 11.01 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.596e-06/0.4426, allocations: 0 / 0.6167 GB, free: 11.01 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.665e-06/0.4426, allocations: 0 / 0.6167 GB, free: 11.01 MB / 462.1 MB Notification: Performance of Transformations before backend: time 8.866e-06/0.4426, allocations: 0 / 0.6167 GB, free: 11.01 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.00754/0.4502, allocations: 0.5982 MB / 0.6172 GB, free: 10.37 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.51e-05/0.4502, allocations: 8.031 kB / 0.6173 GB, free: 10.36 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.355e-05/0.4503, allocations: 34.75 kB / 0.6173 GB, free: 10.32 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.328e-05/0.4503, allocations: 4.938 kB / 0.6173 GB, free: 10.32 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.856e-05/0.4504, allocations: 105.2 kB / 0.6174 GB, free: 10.19 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.337e-05/0.4504, allocations: 3.938 kB / 0.6174 GB, free: 10.18 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.036e-05/0.4504, allocations: 4 kB / 0.6174 GB, free: 10.18 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.742e-05/0.4505, allocations: 33.69 kB / 0.6174 GB, free: 10.14 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.943e-06/0.4505, allocations: 0 / 0.6174 GB, free: 10.14 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.244e-06/0.4505, allocations: 0 / 0.6174 GB, free: 10.14 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.998e-06/0.4505, allocations: 0 / 0.6174 GB, free: 10.14 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.899e-05/0.4505, allocations: 4 kB / 0.6174 GB, free: 10.14 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001339/0.4507, allocations: 124.6 kB / 0.6176 GB, free: 9.973 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.411e-05/0.4507, allocations: 18.52 kB / 0.6176 GB, free: 9.945 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.96e-05/0.4507, allocations: 16.94 kB / 0.6176 GB, free: 9.926 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.707e-06/0.4507, allocations: 0 / 0.6176 GB, free: 9.926 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.552e-05/0.4508, allocations: 56.27 kB / 0.6176 GB, free: 9.855 MB / 462.1 MB Notification: Performance of pre-optimization done (n=1): time 8.42e-07/0.4508, allocations: 0 / 0.6176 GB, free: 9.855 MB / 462.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001769/0.451, allocations: 67.39 kB / 0.6177 GB, free: 9.777 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.666e-05/0.451, allocations: 81.09 kB / 0.6178 GB, free: 9.68 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.065e-05/0.4511, allocations: 89.86 kB / 0.6179 GB, free: 9.582 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 1.619e-05/0.4511, allocations: 25.7 kB / 0.6179 GB, free: 9.551 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.394e-05/0.4511, allocations: 88.14 kB / 0.618 GB, free: 9.461 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.894e-05/0.4512, allocations: 0 / 0.618 GB, free: 9.461 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.878e-05/0.4512, allocations: 9.719 kB / 0.618 GB, free: 9.445 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001369/0.4513, allocations: 314.8 kB / 0.6183 GB, free: 9.129 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.658e-06/0.4513, allocations: 12.06 kB / 0.6183 GB, free: 9.117 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.789e-06/0.4513, allocations: 0 / 0.6183 GB, free: 9.117 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.594e-05/0.4514, allocations: 64.27 kB / 0.6184 GB, free: 9.039 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.824e-06/0.4514, allocations: 0 / 0.6184 GB, free: 9.039 MB / 462.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.591e-05/0.4515, allocations: 67.39 kB / 0.6184 GB, free: 8.961 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.55e-05/0.4515, allocations: 29.7 kB / 0.6185 GB, free: 8.926 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.508e-06/0.4515, allocations: 0 / 0.6185 GB, free: 8.926 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.32e-05/0.4515, allocations: 0 / 0.6185 GB, free: 8.926 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.32e-07/0.4515, allocations: 96 / 0.6185 GB, free: 8.926 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.422e-06/0.4515, allocations: 11.92 kB / 0.6185 GB, free: 8.914 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.823e-05/0.4515, allocations: 11.88 kB / 0.6185 GB, free: 8.902 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.602e-06/0.4516, allocations: 0 / 0.6185 GB, free: 8.902 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.529e-05/0.4517, allocations: 139.5 kB / 0.6186 GB, free: 8.75 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.729e-06/0.4517, allocations: 4 kB / 0.6186 GB, free: 8.746 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.128e-05/0.4517, allocations: 3 kB / 0.6186 GB, free: 8.742 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.82e-07/0.4517, allocations: 0 / 0.6186 GB, free: 8.742 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.4517, allocations: 0 / 0.6186 GB, free: 8.742 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.389e-06/0.4517, allocations: 3.938 kB / 0.6186 GB, free: 8.738 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001035/0.4518, allocations: 132.7 kB / 0.6187 GB, free: 8.566 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.01e-07/0.4518, allocations: 0 / 0.6187 GB, free: 8.566 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.91e-07/0.4518, allocations: 0 / 0.6187 GB, free: 8.566 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.022e-06/0.4518, allocations: 0 / 0.6187 GB, free: 8.566 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.162e-06/0.4518, allocations: 0 / 0.6187 GB, free: 8.566 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.02e-07/0.4518, allocations: 0 / 0.6187 GB, free: 8.566 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.61e-07/0.4518, allocations: 0 / 0.6187 GB, free: 8.566 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001027/0.4519, allocations: 94.77 kB / 0.6188 GB, free: 8.449 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.246e-06/0.4519, allocations: 4.031 kB / 0.6188 GB, free: 8.445 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.383e-05/0.4519, allocations: 4 kB / 0.6188 GB, free: 8.441 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.826e-06/0.4519, allocations: 0 / 0.6188 GB, free: 8.441 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.011e-05/0.4519, allocations: 0 / 0.6188 GB, free: 8.441 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.087e-06/0.4519, allocations: 7.875 kB / 0.6189 GB, free: 8.434 MB / 462.1 MB Notification: Performance of sorting global known variables: time 3.472e-05/0.452, allocations: 75.28 kB / 0.6189 GB, free: 8.359 MB / 462.1 MB Notification: Performance of sort global known variables: time 6e-08/0.452, allocations: 0 / 0.6189 GB, free: 8.359 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.01161/0.4636, allocations: 3.787 MB / 0.6226 GB, free: 4.57 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.02154/0.4851, allocations: 1.51 MB / 0.6241 GB, free: 3.047 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0001528/0.4853, allocations: 59.34 kB / 0.6242 GB, free: 2.977 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.4853, allocations: 0 / 0.6242 GB, free: 2.977 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 5.304e-05/0.4853, allocations: 63.45 kB / 0.6242 GB, free: 2.902 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001514/0.4855, allocations: 7.875 kB / 0.6242 GB, free: 2.895 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006716/0.4922, allocations: 344.9 kB / 0.6246 GB, free: 2.516 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003275/0.4925, allocations: 0.6729 MB / 0.6252 GB, free: 1.816 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 7.965e-06/0.4925, allocations: 4 kB / 0.6252 GB, free: 1.812 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.682e-05/0.4926, allocations: 7.438 kB / 0.6252 GB, free: 1.805 MB / 462.1 MB Notification: Performance of SimCode: time 1.603e-06/0.4926, allocations: 0 / 0.6252 GB, free: 1.805 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4889/0.9815, allocations: 113.9 MB / 0.7365 GB, free: 158.2 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.38/19.36, allocations: 9.906 kB / 0.7365 GB, free: 158.2 MB / 0.5606 GB " [Timeout remaining time 640] (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: 22.215484506916255] Failed to read output from testmodel.py, exit status != 0: ['time', 'result'] 19.502272085053846 19.513493275 19.068381615 Calling exit ...