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.001248/0.001248, allocations: 121 kB / 18.5 MB, free: 4.562 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.001373/0.001373, allocations: 213.5 kB / 21.45 MB, free: 1.617 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.401/1.401, allocations: 230.6 MB / 254.8 MB, free: 15.08 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.2358/0.2358, allocations: 46.92 MB / 357.8 MB, free: 10.3 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.001857/0.001857, allocations: 63.91 kB / 0.4916 GB, free: 7.973 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1182/0.12, allocations: 65.99 MB / 0.556 GB, free: 5.852 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices2): time 0.00152/0.1215, allocations: 499 kB / 0.5565 GB, free: 5.363 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.007512/0.129, allocations: 4.918 MB / 0.5613 GB, free: 424 kB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.104e-05/0.1291, allocations: 0 / 0.5613 GB, free: 424 kB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 2.052e-05/0.1291, allocations: 0 / 0.5613 GB, free: 424 kB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 6.542e-06/0.1291, allocations: 0 / 0.5613 GB, free: 424 kB / 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.007781/0.1369, allocations: 2.931 MB / 0.5642 GB, free: 13.5 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 5.927e-05/0.1369, allocations: 0 / 0.5642 GB, free: 13.5 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.156e-05/0.137, allocations: 4 kB / 0.5642 GB, free: 13.49 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.995e-05/0.137, allocations: 0 / 0.5642 GB, free: 13.49 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.027e-05/0.137, allocations: 3.938 kB / 0.5642 GB, free: 13.49 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 7.133e-06/0.137, allocations: 4 kB / 0.5642 GB, free: 13.48 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02643/0.1635, allocations: 19.56 MB / 0.5833 GB, free: 9.902 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 1.071e-05/0.1635, allocations: 0 / 0.5833 GB, free: 9.902 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 2.637e-05/0.1635, allocations: 11.92 kB / 0.5833 GB, free: 9.891 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2707/0.4342, allocations: 27.47 MB / 0.6101 GB, free: 21.03 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.637e-06/0.4342, allocations: 1.406 kB / 0.6101 GB, free: 21.03 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.4342, allocations: 0 / 0.6101 GB, free: 21.03 MB / 446.1 MB Notification: Performance of Transformations before backend: time 8.296e-06/0.4342, allocations: 0 / 0.6101 GB, free: 21.03 MB / 446.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.01584/0.4501, allocations: 0.6749 MB / 0.6108 GB, free: 20.44 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.693e-05/0.4501, allocations: 10.38 kB / 0.6108 GB, free: 20.44 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.54e-05/0.4501, allocations: 1.984 kB / 0.6108 GB, free: 20.44 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.642e-05/0.4502, allocations: 39.22 kB / 0.6108 GB, free: 20.4 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.172e-05/0.4502, allocations: 3.531 kB / 0.6108 GB, free: 20.4 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.127e-05/0.4502, allocations: 170 kB / 0.611 GB, free: 20.2 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.211e-05/0.4503, allocations: 0 / 0.611 GB, free: 20.2 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.784e-06/0.4503, allocations: 3.688 kB / 0.611 GB, free: 20.2 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.526e-05/0.4504, allocations: 30.7 kB / 0.611 GB, free: 20.17 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.406e-06/0.4504, allocations: 0 / 0.611 GB, free: 20.17 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.195e-06/0.4504, allocations: 0 / 0.611 GB, free: 20.17 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.398e-06/0.4504, allocations: 1.906 kB / 0.611 GB, free: 20.17 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.846e-05/0.4504, allocations: 1.781 kB / 0.611 GB, free: 20.17 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.935e-05/0.4505, allocations: 152.3 kB / 0.6112 GB, free: 19.98 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.021e-05/0.4505, allocations: 24.83 kB / 0.6112 GB, free: 19.95 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.297e-05/0.4505, allocations: 6.641 kB / 0.6112 GB, free: 19.95 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.566e-06/0.4506, allocations: 0 / 0.6112 GB, free: 19.95 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.303e-05/0.4506, allocations: 61.67 kB / 0.6113 GB, free: 19.88 MB / 446.1 MB Notification: Performance of pre-optimization done (n=1): time 7.91e-07/0.4506, allocations: 0 / 0.6113 GB, free: 19.88 MB / 446.1 MB Notification: Performance of matching and sorting (n=1): time 0.000179/0.4508, allocations: 67.66 kB / 0.6113 GB, free: 19.81 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.488e-05/0.4508, allocations: 77.11 kB / 0.6114 GB, free: 19.72 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.183e-05/0.4508, allocations: 92.86 kB / 0.6115 GB, free: 19.62 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 5.831e-06/0.4508, allocations: 25.7 kB / 0.6115 GB, free: 19.59 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.809e-06/0.4508, allocations: 81.36 kB / 0.6116 GB, free: 19.51 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.103e-05/0.4509, allocations: 0.75 kB / 0.6116 GB, free: 19.51 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.452e-05/0.4509, allocations: 20.88 kB / 0.6116 GB, free: 19.49 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.525e-05/0.4509, allocations: 316.4 kB / 0.6119 GB, free: 19.18 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.072e-05/0.4509, allocations: 1.5 kB / 0.6119 GB, free: 19.18 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.013e-06/0.4509, allocations: 2.672 kB / 0.6119 GB, free: 19.18 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.29e-05/0.451, allocations: 64.77 kB / 0.612 GB, free: 19.11 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.451, allocations: 1.625 kB / 0.612 GB, free: 19.11 MB / 446.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.44e-05/0.451, allocations: 62.22 kB / 0.6121 GB, free: 19.04 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.855e-05/0.4511, allocations: 31.61 kB / 0.6121 GB, free: 19.01 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-06/0.4511, allocations: 5.281 kB / 0.6121 GB, free: 19.01 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.375e-05/0.4511, allocations: 1.469 kB / 0.6121 GB, free: 19.01 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.51e-07/0.4511, allocations: 0 / 0.6121 GB, free: 19.01 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.909e-06/0.4511, allocations: 0 / 0.6121 GB, free: 19.01 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.687e-05/0.4511, allocations: 1.438 kB / 0.6121 GB, free: 19.01 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.084e-06/0.4511, allocations: 0 / 0.6121 GB, free: 19.01 MB / 446.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 5.594e-05/0.4512, allocations: 155.8 kB / 0.6122 GB, free: 18.86 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.035e-06/0.4512, allocations: 1.312 kB / 0.6122 GB, free: 18.86 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.315e-05/0.4512, allocations: 3.125 kB / 0.6122 GB, free: 18.86 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.4512, allocations: 1.766 kB / 0.6122 GB, free: 18.86 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.4512, allocations: 2.75 kB / 0.6123 GB, free: 18.86 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.986e-06/0.4512, allocations: 1.719 kB / 0.6123 GB, free: 18.86 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.8e-05/0.4513, allocations: 150.5 kB / 0.6124 GB, free: 18.66 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.61e-07/0.4513, allocations: 1.531 kB / 0.6124 GB, free: 18.66 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.5e-07/0.4513, allocations: 0 / 0.6124 GB, free: 18.66 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.183e-06/0.4513, allocations: 0 / 0.6124 GB, free: 18.66 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.051e-06/0.4513, allocations: 1.406 kB / 0.6124 GB, free: 18.66 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.21e-07/0.4513, allocations: 1.219 kB / 0.6124 GB, free: 18.66 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.4513, allocations: 2.188 kB / 0.6124 GB, free: 18.66 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.292e-05/0.4513, allocations: 101.1 kB / 0.6125 GB, free: 18.57 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.214e-05/0.4513, allocations: 80.14 kB / 0.6126 GB, free: 18.47 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.211e-05/0.4513, allocations: 3.906 kB / 0.6126 GB, free: 18.47 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.227e-06/0.4514, allocations: 0 / 0.6126 GB, free: 18.47 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.947e-06/0.4514, allocations: 1.094 kB / 0.6126 GB, free: 18.47 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.008e-06/0.4514, allocations: 6.25 kB / 0.6126 GB, free: 18.47 MB / 446.1 MB Notification: Performance of sorting global known variables: time 9.548e-06/0.4514, allocations: 79.53 kB / 0.6127 GB, free: 18.39 MB / 446.1 MB Notification: Performance of sort global known variables: time 5e-08/0.4514, allocations: 0 / 0.6127 GB, free: 18.39 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.01993/0.4713, allocations: 3.788 MB / 0.6164 GB, free: 17.64 MB / 446.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.03925/0.5106, allocations: 1.514 MB / 0.6178 GB, free: 16.34 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0001284/0.5107, allocations: 65.69 kB / 0.6179 GB, free: 16.27 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.5107, allocations: 0 / 0.6179 GB, free: 16.27 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 1.864e-05/0.5107, allocations: 52.25 kB / 0.618 GB, free: 16.21 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001589/0.5109, allocations: 4 kB / 0.618 GB, free: 16.21 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01328/0.5241, allocations: 340.8 kB / 0.6183 GB, free: 15.87 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.37e-05/0.5242, allocations: 0.6754 MB / 0.6189 GB, free: 15.17 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 6.793e-06/0.5242, allocations: 0 / 0.6189 GB, free: 15.17 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.483e-05/0.5243, allocations: 15.5 kB / 0.619 GB, free: 15.16 MB / 446.1 MB Notification: Performance of SimCode: time 1.142e-06/0.5243, allocations: 0 / 0.619 GB, free: 15.16 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1767/0.701, allocations: 113.9 MB / 0.7301 GB, free: 13.3 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.69/15.39, allocations: 23.12 kB / 0.7302 GB, free: 13.29 MB / 0.545 GB " [Timeout remaining time 644] (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: 18.234193758049514] Failed to read output from testmodel.py, exit status != 0: ['time', 'result'] 15.553479554946534 15.56837901 15.131215833 Calling exit ...