Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001261/0.001261, allocations: 120.1 kB / 18.49 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.00132/0.00132, allocations: 215.1 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.398/1.398, allocations: 230.6 MB / 254.8 MB, free: 15.11 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.2335/0.2335, allocations: 46.92 MB / 357.8 MB, free: 10.33 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.TestMatrices,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Math_TestMatrices",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestMatrices,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Math_TestMatrices",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001852/0.001852, allocations: 67.89 kB / 0.4916 GB, free: 8 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.125/0.1269, allocations: 65.99 MB / 0.556 GB, free: 5.891 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices): time 0.00161/0.1285, allocations: 497 kB / 0.5565 GB, free: 5.402 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.002218/0.1307, allocations: 1.618 MB / 0.5581 GB, free: 3.766 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.531e-05/0.1307, allocations: 0 / 0.5581 GB, free: 3.766 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.718e-05/0.1307, allocations: 0 / 0.5581 GB, free: 3.766 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 5.691e-06/0.1308, allocations: 0 / 0.5581 GB, free: 3.766 MB / 414.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.0007985/0.1315, allocations: 271.3 kB / 0.5584 GB, free: 3.5 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 4.895e-05/0.1316, allocations: 7.984 kB / 0.5584 GB, free: 3.492 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.672e-05/0.1316, allocations: 0 / 0.5584 GB, free: 3.492 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.484e-05/0.1317, allocations: 7.938 kB / 0.5584 GB, free: 3.484 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.783e-05/0.1317, allocations: 0 / 0.5584 GB, free: 3.484 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.12e-06/0.1317, allocations: 0 / 0.5584 GB, free: 3.484 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007232/0.1324, allocations: 0.5355 MB / 0.5589 GB, free: 2.949 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 6.061e-06/0.1324, allocations: 3.938 kB / 0.5589 GB, free: 2.945 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 1.98e-05/0.1324, allocations: 7.922 kB / 0.5589 GB, free: 2.938 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004173/0.1328, allocations: 311.3 kB / 0.5592 GB, free: 2.633 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.1328, allocations: 0 / 0.5592 GB, free: 2.633 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.1328, allocations: 4 kB / 0.5592 GB, free: 2.629 MB / 414.1 MB Notification: Performance of Transformations before backend: time 4.599e-06/0.1328, allocations: 0 / 0.5592 GB, free: 2.629 MB / 414.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.0003956/0.1332, allocations: 372.8 kB / 0.5596 GB, free: 2.211 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.717e-05/0.1333, allocations: 12.03 kB / 0.5596 GB, free: 2.199 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.869e-05/0.1333, allocations: 4.188 kB / 0.5596 GB, free: 2.195 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.771e-05/0.1333, allocations: 34.75 kB / 0.5596 GB, free: 2.152 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.077e-05/0.1333, allocations: 0.9375 kB / 0.5596 GB, free: 2.152 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001074/0.1335, allocations: 164.4 kB / 0.5598 GB, free: 1.953 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.016e-05/0.1335, allocations: 384 / 0.5598 GB, free: 1.953 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.039e-05/0.1335, allocations: 4.375 kB / 0.5598 GB, free: 1.949 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.597e-05/0.1336, allocations: 33.64 kB / 0.5598 GB, free: 1.91 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.394e-06/0.1336, allocations: 0 / 0.5598 GB, free: 1.91 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.6e-06/0.1336, allocations: 0 / 0.5598 GB, free: 1.91 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.707e-06/0.1336, allocations: 8 kB / 0.5598 GB, free: 1.902 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.223e-05/0.1336, allocations: 7.922 kB / 0.5598 GB, free: 1.895 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001441/0.1337, allocations: 141.7 kB / 0.56 GB, free: 1.707 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.939e-05/0.1338, allocations: 18.61 kB / 0.56 GB, free: 1.68 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.522e-05/0.1338, allocations: 8.797 kB / 0.56 GB, free: 1.668 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.888e-06/0.1338, allocations: 7.875 kB / 0.56 GB, free: 1.66 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.008e-05/0.1339, allocations: 64.27 kB / 0.56 GB, free: 1.582 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 9.02e-07/0.1339, allocations: 0 / 0.56 GB, free: 1.582 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001679/0.134, allocations: 67.39 kB / 0.5601 GB, free: 1.504 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.148e-05/0.1341, allocations: 81.11 kB / 0.5602 GB, free: 1.406 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.576e-05/0.1341, allocations: 93.81 kB / 0.5603 GB, free: 1.305 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.515e-05/0.1342, allocations: 25.7 kB / 0.5603 GB, free: 1.273 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.243e-05/0.1342, allocations: 80.14 kB / 0.5604 GB, free: 1.191 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.173e-05/0.1342, allocations: 4 kB / 0.5604 GB, free: 1.188 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.866e-05/0.1342, allocations: 13.84 kB / 0.5604 GB, free: 1.168 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001476/0.1344, allocations: 318.8 kB / 0.5607 GB, free: 0.8477 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.819e-06/0.1344, allocations: 0 / 0.5607 GB, free: 0.8477 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.758e-06/0.1344, allocations: 0 / 0.5607 GB, free: 0.8477 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.246e-05/0.1345, allocations: 60.27 kB / 0.5608 GB, free: 0.7734 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.1345, allocations: 0 / 0.5608 GB, free: 0.7734 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.474e-05/0.1345, allocations: 71.28 kB / 0.5608 GB, free: 0.6914 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.272e-05/0.1346, allocations: 33.69 kB / 0.5609 GB, free: 0.6523 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.848e-06/0.1346, allocations: 96 / 0.5609 GB, free: 0.6523 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.296e-05/0.1346, allocations: 4 kB / 0.5609 GB, free: 0.6484 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.615e-06/0.1346, allocations: 7.984 kB / 0.5609 GB, free: 0.6406 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.127e-06/0.1346, allocations: 0 / 0.5609 GB, free: 0.6406 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.433e-05/0.1346, allocations: 0 / 0.5609 GB, free: 0.6406 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.201e-06/0.1346, allocations: 0 / 0.5609 GB, free: 0.6406 MB / 414.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.664e-05/0.1347, allocations: 137.7 kB / 0.561 GB, free: 0.4922 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.188e-06/0.1347, allocations: 3.938 kB / 0.561 GB, free: 500 kB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.504e-06/0.1347, allocations: 3.125 kB / 0.561 GB, free: 500 kB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.946e-06/0.1347, allocations: 3.984 kB / 0.561 GB, free: 496 kB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/0.1347, allocations: 4 kB / 0.561 GB, free: 492 kB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.984e-06/0.1347, allocations: 0 / 0.561 GB, free: 492 kB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001122/0.1348, allocations: 149.7 kB / 0.5612 GB, free: 292 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.72e-07/0.1348, allocations: 0 / 0.5612 GB, free: 292 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.645e-06/0.1348, allocations: 3.938 kB / 0.5612 GB, free: 288 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.122e-06/0.1349, allocations: 0 / 0.5612 GB, free: 288 kB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.801e-06/0.1349, allocations: 0 / 0.5612 GB, free: 288 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/0.1349, allocations: 4 kB / 0.5612 GB, free: 284 kB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.1349, allocations: 3.938 kB / 0.5612 GB, free: 280 kB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001068/0.135, allocations: 98.77 kB / 0.5613 GB, free: 156 kB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.134e-05/0.135, allocations: 81.05 kB / 0.5613 GB, free: 56 kB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.419e-05/0.135, allocations: 7.984 kB / 0.5613 GB, free: 48 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.416e-06/0.135, allocations: 0 / 0.5613 GB, free: 48 kB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.024e-05/0.135, allocations: 0 / 0.5613 GB, free: 48 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.354e-06/0.135, allocations: 0 / 0.5613 GB, free: 48 kB / 414.1 MB Notification: Performance of sorting global known variables: time 5.17e-05/0.1351, allocations: 79.22 kB / 0.5614 GB, free: 15.97 MB / 430.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1351, allocations: 0 / 0.5614 GB, free: 15.97 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0003028/0.1354, allocations: 67.83 kB / 0.5615 GB, free: 15.9 MB / 430.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.0007283/0.1361, allocations: 0.7206 MB / 0.5622 GB, free: 15.15 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 8.576e-05/0.1362, allocations: 55.41 kB / 0.5622 GB, free: 15.09 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.1362, allocations: 0 / 0.5622 GB, free: 15.09 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 3.564e-05/0.1362, allocations: 55.41 kB / 0.5623 GB, free: 15.02 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001195/0.1364, allocations: 6.156 kB / 0.5623 GB, free: 15.02 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003224/0.1367, allocations: 134.5 kB / 0.5624 GB, free: 14.84 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002802/0.137, allocations: 0.6729 MB / 0.5631 GB, free: 14.14 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 4.779e-06/0.137, allocations: 0 / 0.5631 GB, free: 14.14 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.2e-05/0.137, allocations: 7.438 kB / 0.5631 GB, free: 14.14 MB / 430.1 MB Notification: Performance of SimCode: time 3e-07/0.137, allocations: 0 / 0.5631 GB, free: 14.14 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01738/0.1544, allocations: 2.156 MB / 0.5652 GB, free: 12.07 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.831/7.986, allocations: 4.062 kB / 0.5652 GB, free: 12.06 MB / 430.1 MB " [Timeout remaining time 652] (rm -f ModelicaTest_4.1.0_ModelicaTest.Math.TestMatrices.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Math.TestMatrices.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Math.TestMatrices.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Math.TestMatrices.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Math.TestMatrices_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Math_TestMatrices_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Math_TestMatrices.fmu > ModelicaTest_4.1.0_ModelicaTest.Math.TestMatrices.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 10.747167676978279] Failed to read output from testmodel.py, exit status != 0: ['time', 'result'] 8.106915543030482 8.121684581 7.986104534 Calling exit ...