Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2.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.001191/0.001191, allocations: 109.1 kB / 21.22 MB, free: 0.6484 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.001347/0.001347, allocations: 208.7 kB / 24.51 MB, free: 3.941 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.368/1.368, allocations: 230.5 MB / 258.2 MB, free: 7.809 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.2111/0.2111, allocations: 46.95 MB / 361.6 MB, free: 4.043 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.TestMatrices2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_TestMatrices2",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestMatrices2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_TestMatrices2",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002163/0.002163, allocations: 79.88 kB / 0.4969 GB, free: 7.609 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2875/0.2897, allocations: 66.09 MB / 0.5614 GB, free: 4.055 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices2): time 0.001586/0.2913, allocations: 497 kB / 0.5619 GB, free: 3.57 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00699/0.2983, allocations: 4.568 MB / 0.5664 GB, free: 14.98 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.992e-05/0.2983, allocations: 0 / 0.5664 GB, free: 14.98 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.463e-05/0.2983, allocations: 0 / 0.5664 GB, free: 14.98 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 5.199e-06/0.2983, allocations: 4 kB / 0.5664 GB, free: 14.97 MB / 414.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.007065/0.3054, allocations: 3.273 MB / 0.5696 GB, free: 11.71 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 3.991e-05/0.3054, allocations: 0 / 0.5696 GB, free: 11.71 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.641e-05/0.3055, allocations: 7.984 kB / 0.5696 GB, free: 11.7 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.366e-05/0.3055, allocations: 3.984 kB / 0.5696 GB, free: 11.7 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.264e-05/0.3055, allocations: 0 / 0.5696 GB, free: 11.7 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.601e-06/0.3055, allocations: 4 kB / 0.5696 GB, free: 11.69 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03126/0.3367, allocations: 19.97 MB / 0.5891 GB, free: 7.695 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 1.332e-05/0.3368, allocations: 0 / 0.5891 GB, free: 7.695 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 2.797e-05/0.3368, allocations: 4 kB / 0.5891 GB, free: 7.691 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03517/0.372, allocations: 26.13 MB / 0.6146 GB, free: 13.51 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.957e-06/0.372, allocations: 0 / 0.6146 GB, free: 13.51 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.405e-06/0.372, allocations: 0 / 0.6146 GB, free: 13.51 MB / 462.1 MB Notification: Performance of Transformations before backend: time 9.398e-06/0.372, allocations: 0 / 0.6146 GB, free: 13.51 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.007373/0.3794, allocations: 0.597 MB / 0.6152 GB, free: 12.88 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.26e-05/0.3794, allocations: 8.031 kB / 0.6152 GB, free: 12.88 MB / 462.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.213e-05/0.3794, allocations: 4.188 kB / 0.6152 GB, free: 12.87 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.713e-05/0.3794, allocations: 34.75 kB / 0.6152 GB, free: 12.83 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.789e-05/0.3795, allocations: 8.875 kB / 0.6152 GB, free: 12.82 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.882e-05/0.3795, allocations: 109.5 kB / 0.6153 GB, free: 12.69 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.771e-06/0.3795, allocations: 0 / 0.6153 GB, free: 12.69 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.067e-06/0.3796, allocations: 0 / 0.6153 GB, free: 12.69 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.678e-05/0.3797, allocations: 63.33 kB / 0.6154 GB, free: 12.61 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.241e-06/0.3797, allocations: 0 / 0.6154 GB, free: 12.61 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.462e-06/0.3797, allocations: 0 / 0.6154 GB, free: 12.61 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.577e-06/0.3797, allocations: 0 / 0.6154 GB, free: 12.61 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.039e-05/0.3797, allocations: 29.7 kB / 0.6154 GB, free: 12.58 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001196/0.3798, allocations: 124.6 kB / 0.6155 GB, free: 12.41 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.275e-05/0.3799, allocations: 52.3 kB / 0.6156 GB, free: 12.35 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.659e-05/0.3799, allocations: 30.56 kB / 0.6156 GB, free: 12.31 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.296e-06/0.3799, allocations: 4 kB / 0.6156 GB, free: 12.3 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.763e-05/0.38, allocations: 60.27 kB / 0.6157 GB, free: 12.23 MB / 462.1 MB Notification: Performance of pre-optimization done (n=1): time 8.11e-07/0.38, allocations: 0 / 0.6157 GB, free: 12.23 MB / 462.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001841/0.3801, allocations: 122.7 kB / 0.6158 GB, free: 12.09 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.856e-05/0.3802, allocations: 77.11 kB / 0.6159 GB, free: 11.99 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.629e-05/0.3802, allocations: 89.86 kB / 0.616 GB, free: 11.89 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 1.567e-05/0.3802, allocations: 33.83 kB / 0.616 GB, free: 11.86 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.194e-05/0.3803, allocations: 80.14 kB / 0.6161 GB, free: 11.77 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.692e-05/0.3803, allocations: 0 / 0.6161 GB, free: 11.77 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.398e-05/0.3803, allocations: 9.719 kB / 0.6161 GB, free: 11.76 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001268/0.3804, allocations: 322.8 kB / 0.6164 GB, free: 11.43 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.005e-05/0.3805, allocations: 25.7 kB / 0.6164 GB, free: 11.4 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.114e-05/0.3805, allocations: 33.62 kB / 0.6164 GB, free: 11.36 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.28e-05/0.3805, allocations: 60.27 kB / 0.6165 GB, free: 11.29 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.412e-06/0.3805, allocations: 0 / 0.6165 GB, free: 11.29 MB / 462.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.173e-05/0.3806, allocations: 89.2 kB / 0.6166 GB, free: 11.18 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.36e-05/0.3807, allocations: 41.69 kB / 0.6166 GB, free: 11.14 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.526e-06/0.3807, allocations: 0 / 0.6166 GB, free: 11.14 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.239e-05/0.3807, allocations: 0 / 0.6166 GB, free: 11.14 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.61e-07/0.3807, allocations: 0 / 0.6166 GB, free: 11.14 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.958e-06/0.3807, allocations: 0 / 0.6166 GB, free: 11.14 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.469e-05/0.3807, allocations: 0 / 0.6166 GB, free: 11.14 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.881e-06/0.3807, allocations: 0 / 0.6166 GB, free: 11.14 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 8.679e-05/0.3808, allocations: 140.8 kB / 0.6168 GB, free: 10.98 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.154e-06/0.3808, allocations: 0 / 0.6168 GB, free: 10.98 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.021e-05/0.3808, allocations: 3 kB / 0.6168 GB, free: 10.98 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.547e-06/0.3808, allocations: 11.94 kB / 0.6168 GB, free: 10.97 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.3808, allocations: 3.984 kB / 0.6168 GB, free: 10.96 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.552e-06/0.3808, allocations: 0 / 0.6168 GB, free: 10.96 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.53e-05/0.3809, allocations: 116.7 kB / 0.6169 GB, free: 10.81 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.41e-07/0.3809, allocations: 3.938 kB / 0.6169 GB, free: 10.8 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.41e-07/0.3809, allocations: 0 / 0.6169 GB, free: 10.8 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/0.3809, allocations: 4 kB / 0.6169 GB, free: 10.8 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.164e-06/0.3809, allocations: 4 kB / 0.6169 GB, free: 10.8 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.51e-07/0.3809, allocations: 0 / 0.6169 GB, free: 10.8 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.3809, allocations: 4 kB / 0.6169 GB, free: 10.79 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001131/0.381, allocations: 128.5 kB / 0.617 GB, free: 10.64 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.206e-06/0.381, allocations: 0 / 0.617 GB, free: 10.64 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.242e-05/0.3811, allocations: 4 kB / 0.617 GB, free: 10.63 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.115e-06/0.3811, allocations: 3.938 kB / 0.617 GB, free: 10.63 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.403e-05/0.3811, allocations: 3.984 kB / 0.617 GB, free: 10.62 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.415e-06/0.3811, allocations: 0 / 0.617 GB, free: 10.62 MB / 462.1 MB Notification: Performance of sorting global known variables: time 3.053e-05/0.3811, allocations: 75.28 kB / 0.6171 GB, free: 10.55 MB / 462.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3811, allocations: 0 / 0.6171 GB, free: 10.55 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.009617/0.3907, allocations: 3.791 MB / 0.6208 GB, free: 6.758 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.01789/0.4086, allocations: 1.543 MB / 0.6223 GB, free: 5.188 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0001724/0.4088, allocations: 114.8 kB / 0.6224 GB, free: 5.051 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.4088, allocations: 3.938 kB / 0.6224 GB, free: 5.047 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 5.646e-05/0.4088, allocations: 85.09 kB / 0.6225 GB, free: 4.945 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001332/0.409, allocations: 0 / 0.6225 GB, free: 4.945 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005959/0.4149, allocations: 378.5 kB / 0.6229 GB, free: 4.527 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.614e-05/0.415, allocations: 59.34 kB / 0.6229 GB, free: 4.449 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 5.51e-06/0.415, allocations: 128 / 0.6229 GB, free: 4.449 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.416e-05/0.415, allocations: 15.44 kB / 0.6229 GB, free: 4.434 MB / 462.1 MB Notification: Performance of SimCode: time 1.413e-06/0.415, allocations: 0 / 0.6229 GB, free: 4.434 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1669/0.5819, allocations: 114 MB / 0.7343 GB, free: 2.309 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.3/17.88, allocations: 7.875 kB / 0.7343 GB, free: 2.301 MB / 0.5606 GB " [Timeout remaining time 642] (rm -f ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Math_TestMatrices2_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Math_TestMatrices2.fmu > ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 20.755415153107606] Failed to read output from testmodel.py, exit status != 0: ['time', 'result'] 18.072481221985072 18.28055977 17.906255565 Calling exit ...