Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001257/0.001257, allocations: 116.9 kB / 18.49 MB, free: 4.559 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00142/0.00142, allocations: 212.7 kB / 21.46 MB, free: 1.605 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.37/1.37, allocations: 230.4 MB / 254.7 MB, free: 15.19 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2102/0.2102, allocations: 46.92 MB / 357.7 MB, free: 10.2 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.TestMatrices,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_TestMatrices",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestMatrices,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_TestMatrices",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002118/0.002118, allocations: 83.88 kB / 0.4916 GB, free: 7.719 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1225/0.1246, allocations: 66.05 MB / 0.5561 GB, free: 5.543 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices): time 0.001543/0.1262, allocations: 493 kB / 0.5566 GB, free: 5.055 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.002115/0.1283, allocations: 1.618 MB / 0.5582 GB, free: 3.418 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.476e-05/0.1283, allocations: 0 / 0.5582 GB, free: 3.418 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.624e-05/0.1283, allocations: 0 / 0.5582 GB, free: 3.418 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 5.059e-06/0.1283, allocations: 0 / 0.5582 GB, free: 3.418 MB / 414.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.0007936/0.1291, allocations: 274 kB / 0.5585 GB, free: 3.152 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 4.059e-05/0.1292, allocations: 4 kB / 0.5585 GB, free: 3.148 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.357e-05/0.1292, allocations: 0 / 0.5585 GB, free: 3.148 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.81e-05/0.1292, allocations: 8 kB / 0.5585 GB, free: 3.141 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.847e-05/0.1292, allocations: 3.984 kB / 0.5585 GB, free: 3.137 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 4.648e-06/0.1292, allocations: 0 / 0.5585 GB, free: 3.137 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006949/0.1299, allocations: 0.5379 MB / 0.559 GB, free: 2.598 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 6.151e-06/0.1299, allocations: 0 / 0.559 GB, free: 2.598 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 1.799e-05/0.13, allocations: 3.938 kB / 0.559 GB, free: 2.594 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003952/0.1304, allocations: 311.3 kB / 0.5593 GB, free: 2.289 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.1304, allocations: 0 / 0.5593 GB, free: 2.289 MB / 414.1 MB Notification: Performance of FrontEnd: time 3.336e-06/0.1304, allocations: 4 kB / 0.5593 GB, free: 2.285 MB / 414.1 MB Notification: Performance of Transformations before backend: time 4.849e-06/0.1304, allocations: 0 / 0.5593 GB, free: 2.285 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.0003948/0.1308, allocations: 376.8 kB / 0.5597 GB, free: 1.863 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.573e-05/0.1308, allocations: 12.03 kB / 0.5597 GB, free: 1.852 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.752e-05/0.1308, allocations: 192 / 0.5597 GB, free: 1.852 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.209e-05/0.1308, allocations: 30.75 kB / 0.5597 GB, free: 1.812 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.979e-05/0.1309, allocations: 0.9375 kB / 0.5597 GB, free: 1.812 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000113/0.131, allocations: 168.4 kB / 0.5599 GB, free: 1.609 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.054e-05/0.131, allocations: 384 / 0.5599 GB, free: 1.609 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.134e-05/0.131, allocations: 8.359 kB / 0.5599 GB, free: 1.602 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.944e-05/0.1311, allocations: 37.62 kB / 0.5599 GB, free: 1.559 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.543e-06/0.1311, allocations: 0 / 0.5599 GB, free: 1.559 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.242e-06/0.1311, allocations: 0 / 0.5599 GB, free: 1.559 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.14e-06/0.1311, allocations: 11.88 kB / 0.5599 GB, free: 1.547 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.52e-05/0.1311, allocations: 0 / 0.5599 GB, free: 1.547 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001376/0.1312, allocations: 145.7 kB / 0.5601 GB, free: 1.355 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.823e-05/0.1313, allocations: 22.55 kB / 0.5601 GB, free: 1.324 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.421e-05/0.1313, allocations: 8.859 kB / 0.5601 GB, free: 1.312 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.387e-06/0.1313, allocations: 3.938 kB / 0.5601 GB, free: 1.309 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.969e-05/0.1314, allocations: 64.25 kB / 0.5602 GB, free: 1.23 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 8.42e-07/0.1314, allocations: 0 / 0.5602 GB, free: 1.23 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001525/0.1315, allocations: 63.41 kB / 0.5602 GB, free: 1.156 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.543e-05/0.1316, allocations: 81.23 kB / 0.5603 GB, free: 1.059 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.65e-05/0.1316, allocations: 97.81 kB / 0.5604 GB, free: 0.9531 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.312e-05/0.1316, allocations: 25.7 kB / 0.5604 GB, free: 0.9219 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.071e-05/0.1317, allocations: 80.14 kB / 0.5605 GB, free: 0.8398 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.869e-05/0.1317, allocations: 3.984 kB / 0.5605 GB, free: 0.8359 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.945e-05/0.1317, allocations: 13.72 kB / 0.5605 GB, free: 0.8164 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001222/0.1318, allocations: 314.8 kB / 0.5608 GB, free: 0.5 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.366e-06/0.1318, allocations: 0 / 0.5608 GB, free: 0.5 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.729e-06/0.1318, allocations: 4 kB / 0.5608 GB, free: 0.4961 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.021e-05/0.1319, allocations: 64.2 kB / 0.5609 GB, free: 428 kB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.1319, allocations: 0 / 0.5609 GB, free: 428 kB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.485e-05/0.132, allocations: 71.33 kB / 0.5609 GB, free: 344 kB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.001e-05/0.132, allocations: 29.7 kB / 0.561 GB, free: 308 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.487e-06/0.132, allocations: 0 / 0.561 GB, free: 308 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.239e-05/0.132, allocations: 0 / 0.561 GB, free: 308 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.445e-06/0.132, allocations: 4 kB / 0.561 GB, free: 304 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.527e-06/0.132, allocations: 0 / 0.561 GB, free: 304 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.38e-05/0.132, allocations: 4.094 kB / 0.561 GB, free: 300 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.799e-06/0.132, allocations: 0 / 0.561 GB, free: 300 kB / 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 8.371e-05/0.1321, allocations: 135.5 kB / 0.5611 GB, free: 148 kB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.103e-05/0.1321, allocations: 7.922 kB / 0.5611 GB, free: 140 kB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.762e-06/0.1321, allocations: 3.125 kB / 0.5611 GB, free: 140 kB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.31e-07/0.1321, allocations: 0 / 0.5611 GB, free: 140 kB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.376e-06/0.1321, allocations: 0 / 0.5611 GB, free: 140 kB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.204e-06/0.1321, allocations: 0 / 0.5611 GB, free: 140 kB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001187/0.1323, allocations: 145.7 kB / 0.5613 GB, free: 15.95 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.61e-07/0.1323, allocations: 4 kB / 0.5613 GB, free: 15.94 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.215e-06/0.1323, allocations: 3.938 kB / 0.5613 GB, free: 15.94 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.916e-06/0.1323, allocations: 3.984 kB / 0.5613 GB, free: 15.93 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.67e-06/0.1323, allocations: 0 / 0.5613 GB, free: 15.93 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.91e-07/0.1323, allocations: 3.938 kB / 0.5613 GB, free: 15.93 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.1323, allocations: 3.938 kB / 0.5613 GB, free: 15.93 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.917e-05/0.1324, allocations: 90.84 kB / 0.5614 GB, free: 15.81 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.999e-05/0.1324, allocations: 88.97 kB / 0.5614 GB, free: 15.71 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.226e-05/0.1324, allocations: 8.031 kB / 0.5614 GB, free: 15.7 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.706e-06/0.1324, allocations: 0 / 0.5614 GB, free: 15.7 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.118e-06/0.1324, allocations: 0 / 0.5614 GB, free: 15.7 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.224e-06/0.1324, allocations: 0 / 0.5614 GB, free: 15.7 MB / 430.1 MB Notification: Performance of sorting global known variables: time 3.626e-05/0.1325, allocations: 75.28 kB / 0.5615 GB, free: 15.62 MB / 430.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1325, allocations: 0 / 0.5615 GB, free: 15.62 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0003205/0.1328, allocations: 63.8 kB / 0.5616 GB, free: 15.56 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.0007164/0.1335, allocations: 0.7246 MB / 0.5623 GB, free: 14.8 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 8.906e-05/0.1336, allocations: 59.41 kB / 0.5623 GB, free: 14.73 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.1336, allocations: 0 / 0.5623 GB, free: 14.73 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 3.837e-05/0.1336, allocations: 55.41 kB / 0.5624 GB, free: 14.67 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001195/0.1338, allocations: 1.719 kB / 0.5624 GB, free: 14.67 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003082/0.1341, allocations: 134.5 kB / 0.5625 GB, free: 14.5 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002718/0.1343, allocations: 0.6769 MB / 0.5632 GB, free: 13.79 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 5.38e-06/0.1343, allocations: 0 / 0.5632 GB, free: 13.79 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.343e-05/0.1344, allocations: 11.38 kB / 0.5632 GB, free: 13.78 MB / 430.1 MB Notification: Performance of SimCode: time 3.3e-07/0.1344, allocations: 3.938 kB / 0.5632 GB, free: 13.78 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01697/0.1513, allocations: 2.131 MB / 0.5653 GB, free: 11.71 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.739/7.891, allocations: 4.062 kB / 0.5653 GB, free: 11.71 MB / 430.1 MB " [Timeout remaining time 652] (rm -f ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Math.TestMatrices_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Math_TestMatrices_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Math_TestMatrices.fmu > ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 10.591540905006696] Failed to read output from testmodel.py, exit status != 0: ['time', 'result'] 8.008417877950706 8.022066523 7.889161772 Calling exit ...