Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices3.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.001315/0.001315, allocations: 111.1 kB / 20.44 MB, free: 1.051 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.001933/0.001933, allocations: 212.4 kB / 23.73 MB, free: 4.152 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.475/1.475, allocations: 230.6 MB / 257.5 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2194/0.2194, allocations: 44.93 MB / 358.8 MB, free: 6.047 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.TestMatrices3,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestMatrices3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestMatrices3,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestMatrices3",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00205/0.00205, allocations: 67.88 kB / 0.493 GB, free: 10.54 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3504/0.3525, allocations: 65.47 MB / 0.5569 GB, free: 7.336 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices3): time 0.001917/0.3544, allocations: 497.3 kB / 0.5574 GB, free: 6.969 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002473/0.3569, allocations: 1.513 MB / 0.5589 GB, free: 5.527 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.166e-05/0.3569, allocations: 0 / 0.5589 GB, free: 5.527 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.651e-05/0.3569, allocations: 4 kB / 0.5589 GB, free: 5.523 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.47e-06/0.3569, allocations: 0 / 0.5589 GB, free: 5.523 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Math.mo:576:3-610:16:writable] Warning: Pure function 'ModelicaTest.Math.Matrices3' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0011/0.358, allocations: 255.3 kB / 0.5591 GB, free: 5.273 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.055e-05/0.3581, allocations: 7.984 kB / 0.5592 GB, free: 5.266 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.455e-05/0.3581, allocations: 0 / 0.5592 GB, free: 5.266 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.548e-05/0.3581, allocations: 3.938 kB / 0.5592 GB, free: 5.262 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.924e-05/0.3582, allocations: 0 / 0.5592 GB, free: 5.262 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.145e-06/0.3582, allocations: 0 / 0.5592 GB, free: 5.262 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00117/0.3593, allocations: 0.6869 MB / 0.5598 GB, free: 4.574 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.757e-06/0.3593, allocations: 0 / 0.5598 GB, free: 4.574 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.499e-05/0.3594, allocations: 0 / 0.5598 GB, free: 4.574 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008802/0.3602, allocations: 0.6218 MB / 0.5604 GB, free: 3.953 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.359e-06/0.3603, allocations: 3.938 kB / 0.5604 GB, free: 3.949 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.3603, allocations: 0 / 0.5604 GB, free: 3.949 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.318e-06/0.3603, allocations: 0 / 0.5604 GB, free: 3.949 MB / 398.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.0005552/0.3608, allocations: 295.8 kB / 0.5607 GB, free: 3.625 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.455e-05/0.3609, allocations: 8.031 kB / 0.5607 GB, free: 3.617 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.346e-05/0.3609, allocations: 30.75 kB / 0.5608 GB, free: 3.578 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.686e-05/0.3609, allocations: 4.938 kB / 0.5608 GB, free: 3.574 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.405e-05/0.361, allocations: 110.5 kB / 0.5609 GB, free: 3.441 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.14e-05/0.361, allocations: 384 / 0.5609 GB, free: 3.441 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.158e-05/0.361, allocations: 384 / 0.5609 GB, free: 3.441 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001086/0.3612, allocations: 63.52 kB / 0.5609 GB, free: 3.367 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.073e-06/0.3612, allocations: 0 / 0.5609 GB, free: 3.367 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.554e-06/0.3612, allocations: 0 / 0.5609 GB, free: 3.367 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.556e-06/0.3612, allocations: 7.984 kB / 0.5609 GB, free: 3.359 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.854e-05/0.3612, allocations: 37.64 kB / 0.561 GB, free: 3.316 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001573/0.3614, allocations: 112.8 kB / 0.5611 GB, free: 3.164 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.535e-05/0.3615, allocations: 48.3 kB / 0.5611 GB, free: 3.102 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.373e-05/0.3615, allocations: 34.56 kB / 0.5612 GB, free: 3.059 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.237e-06/0.3615, allocations: 0 / 0.5612 GB, free: 3.059 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.906e-05/0.3616, allocations: 68.27 kB / 0.5612 GB, free: 2.977 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.82e-07/0.3616, allocations: 0 / 0.5612 GB, free: 2.977 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002342/0.3618, allocations: 118.7 kB / 0.5613 GB, free: 2.836 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.69e-05/0.3619, allocations: 77.11 kB / 0.5614 GB, free: 2.742 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.413e-05/0.3619, allocations: 93.81 kB / 0.5615 GB, free: 2.641 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.527e-05/0.362, allocations: 29.7 kB / 0.5615 GB, free: 2.605 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.586e-05/0.362, allocations: 80.14 kB / 0.5616 GB, free: 2.523 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001011/0.3621, allocations: 4 kB / 0.5616 GB, free: 2.52 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.841e-05/0.3621, allocations: 13.84 kB / 0.5616 GB, free: 2.5 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001563/0.3623, allocations: 310.8 kB / 0.5619 GB, free: 2.188 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.996e-05/0.3623, allocations: 29.7 kB / 0.5619 GB, free: 2.152 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.166e-05/0.3623, allocations: 29.69 kB / 0.562 GB, free: 2.117 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.331e-05/0.3624, allocations: 64.27 kB / 0.562 GB, free: 2.039 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.3624, allocations: 0 / 0.562 GB, free: 2.039 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001033/0.3625, allocations: 89.05 kB / 0.5621 GB, free: 1.934 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.831e-05/0.3626, allocations: 37.62 kB / 0.5622 GB, free: 1.891 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.348e-06/0.3626, allocations: 0 / 0.5622 GB, free: 1.891 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.566e-05/0.3626, allocations: 96 / 0.5622 GB, free: 1.891 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.905e-06/0.3626, allocations: 11.94 kB / 0.5622 GB, free: 1.879 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.638e-06/0.3626, allocations: 0 / 0.5622 GB, free: 1.879 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.504e-05/0.3626, allocations: 0 / 0.5622 GB, free: 1.879 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.921e-06/0.3626, allocations: 0 / 0.5622 GB, free: 1.879 MB / 398.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 0.0001157/0.3627, allocations: 139.5 kB / 0.5623 GB, free: 1.727 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.047e-05/0.3627, allocations: 7.875 kB / 0.5623 GB, free: 1.719 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.213e-05/0.3627, allocations: 3 kB / 0.5623 GB, free: 1.715 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.122e-06/0.3627, allocations: 0 / 0.5623 GB, free: 1.715 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.3628, allocations: 0 / 0.5623 GB, free: 1.715 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.629e-06/0.3628, allocations: 3.984 kB / 0.5623 GB, free: 1.711 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001139/0.3629, allocations: 120.8 kB / 0.5624 GB, free: 1.551 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.3629, allocations: 0 / 0.5624 GB, free: 1.551 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.91e-07/0.3629, allocations: 0 / 0.5624 GB, free: 1.551 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.459e-06/0.3629, allocations: 3.938 kB / 0.5624 GB, free: 1.547 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.694e-06/0.3629, allocations: 0 / 0.5624 GB, free: 1.547 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.3629, allocations: 0 / 0.5624 GB, free: 1.547 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.3629, allocations: 4 kB / 0.5624 GB, free: 1.543 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001279/0.363, allocations: 120.5 kB / 0.5626 GB, free: 1.395 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.993e-06/0.363, allocations: 3.938 kB / 0.5626 GB, free: 1.391 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.14e-05/0.363, allocations: 0 / 0.5626 GB, free: 1.391 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.438e-06/0.363, allocations: 4.031 kB / 0.5626 GB, free: 1.387 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.15e-05/0.3631, allocations: 11.98 kB / 0.5626 GB, free: 1.375 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.775e-06/0.3631, allocations: 0 / 0.5626 GB, free: 1.375 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.018e-05/0.3631, allocations: 80.3 kB / 0.5627 GB, free: 1.297 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3631, allocations: 0 / 0.5627 GB, free: 1.297 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005068/0.3636, allocations: 115.9 kB / 0.5628 GB, free: 1.184 MB / 398.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.00128/0.3649, allocations: 0.739 MB / 0.5635 GB, free: 424 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001517/0.3651, allocations: 110.8 kB / 0.5636 GB, free: 288 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.3651, allocations: 0 / 0.5636 GB, free: 288 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.656e-05/0.3651, allocations: 81.11 kB / 0.5637 GB, free: 188 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000129/0.3652, allocations: 7.875 kB / 0.5637 GB, free: 180 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004889/0.3657, allocations: 164.3 kB / 0.5638 GB, free: 15.97 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.053e-05/0.3658, allocations: 55.36 kB / 0.5639 GB, free: 15.89 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.983e-06/0.3658, allocations: 0 / 0.5639 GB, free: 15.89 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.353e-05/0.3658, allocations: 11.42 kB / 0.5639 GB, free: 15.88 MB / 414.1 MB Notification: Performance of SimCode: time 6.01e-07/0.3658, allocations: 0 / 0.5639 GB, free: 15.88 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03193/0.3978, allocations: 5.262 MB / 0.569 GB, free: 10.74 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.11/11.51, allocations: 3.984 kB / 0.569 GB, free: 10.74 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices3.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices3.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices3.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices3_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Math_TestMatrices3_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Math_TestMatrices3.fmu > ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices3.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.341063869651407] Failed to read output from testmodel.py, exit status != 0: ['time', 'result'] 11.612882938235998 11.628621375 11.265200184 Calling exit ...