Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.001328/0.001328, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.001693/0.001693, allocations: 209.2 kB / 23.73 MB, free: 4.387 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.557/1.557, allocations: 230.6 MB / 257.5 MB, free: 7.77 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.2184/0.2184, allocations: 44.93 MB / 358.8 MB, free: 6.012 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.TestMatrices2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestMatrices2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestMatrices2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestMatrices2",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.002072/0.002072, allocations: 67.91 kB / 0.493 GB, free: 10.52 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3586/0.3607, allocations: 65.47 MB / 0.557 GB, free: 7.316 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices2): time 0.002072/0.3628, allocations: 0.4927 MB / 0.5574 GB, free: 6.941 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.008709/0.3715, allocations: 4.565 MB / 0.5619 GB, free: 2.418 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.717e-05/0.3715, allocations: 0 / 0.5619 GB, free: 2.418 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.557e-05/0.3715, allocations: 0 / 0.5619 GB, free: 2.418 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 8.666e-06/0.3715, allocations: 4 kB / 0.5619 GB, free: 2.414 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.008064/0.3796, allocations: 3.27 MB / 0.5651 GB, free: 15.15 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 5.274e-05/0.3796, allocations: 0 / 0.5651 GB, free: 15.15 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.624e-05/0.3797, allocations: 0 / 0.5651 GB, free: 15.15 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.137e-05/0.3797, allocations: 4 kB / 0.5651 GB, free: 15.15 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.83e-05/0.3797, allocations: 7.922 kB / 0.5651 GB, free: 15.14 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.191e-06/0.3797, allocations: 0 / 0.5651 GB, free: 15.14 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03151/0.4112, allocations: 19.8 MB / 0.5844 GB, free: 11.32 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 1.94e-05/0.4112, allocations: 0 / 0.5844 GB, free: 11.32 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 3.217e-05/0.4113, allocations: 0 / 0.5844 GB, free: 11.32 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03952/0.4508, allocations: 26.14 MB / 0.61 GB, free: 1.145 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.684e-06/0.4508, allocations: 4 kB / 0.61 GB, free: 1.141 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.635e-06/0.4508, allocations: 0 / 0.61 GB, free: 1.141 MB / 446.1 MB Notification: Performance of Transformations before backend: time 8.806e-06/0.4508, allocations: 4 kB / 0.61 GB, free: 1.137 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.009488/0.4603, allocations: 0.5982 MB / 0.6106 GB, free: 0.5 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.217e-05/0.4603, allocations: 8.031 kB / 0.6106 GB, free: 0.4922 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.452e-05/0.4604, allocations: 30.75 kB / 0.6106 GB, free: 464 kB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.647e-05/0.4604, allocations: 0.9375 kB / 0.6106 GB, free: 464 kB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.93e-05/0.4605, allocations: 113.1 kB / 0.6107 GB, free: 324 kB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.226e-05/0.4605, allocations: 0 / 0.6107 GB, free: 324 kB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.173e-06/0.4605, allocations: 0 / 0.6107 GB, free: 324 kB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000109/0.4606, allocations: 59.39 kB / 0.6108 GB, free: 252 kB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.726e-06/0.4607, allocations: 4 kB / 0.6108 GB, free: 248 kB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.005e-06/0.4607, allocations: 0 / 0.6108 GB, free: 248 kB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.298e-06/0.4607, allocations: 0 / 0.6108 GB, free: 248 kB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.29e-05/0.4607, allocations: 25.7 kB / 0.6108 GB, free: 216 kB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001507/0.4609, allocations: 128.6 kB / 0.6109 GB, free: 44 kB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.961e-05/0.4609, allocations: 44.31 kB / 0.6109 GB, free: 15.98 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.103e-05/0.461, allocations: 38.55 kB / 0.611 GB, free: 15.94 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.955e-06/0.461, allocations: 0 / 0.611 GB, free: 15.94 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.157e-05/0.461, allocations: 56.27 kB / 0.611 GB, free: 15.87 MB / 462.1 MB Notification: Performance of pre-optimization done (n=1): time 1.022e-06/0.461, allocations: 0 / 0.611 GB, free: 15.87 MB / 462.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002157/0.4613, allocations: 122.8 kB / 0.6112 GB, free: 15.72 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.301e-05/0.4613, allocations: 81.09 kB / 0.6112 GB, free: 15.62 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.428e-05/0.4614, allocations: 89.86 kB / 0.6113 GB, free: 15.53 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 1.571e-05/0.4614, allocations: 25.7 kB / 0.6113 GB, free: 15.5 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.747e-05/0.4614, allocations: 84.08 kB / 0.6114 GB, free: 15.41 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.75e-05/0.4614, allocations: 0 / 0.6114 GB, free: 15.41 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.527e-05/0.4615, allocations: 17.72 kB / 0.6114 GB, free: 15.39 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001466/0.4616, allocations: 314.8 kB / 0.6117 GB, free: 15.07 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.413e-05/0.4617, allocations: 25.7 kB / 0.6118 GB, free: 15.04 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.225e-05/0.4617, allocations: 29.7 kB / 0.6118 GB, free: 15 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.263e-05/0.4617, allocations: 72.44 kB / 0.6119 GB, free: 14.92 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.4617, allocations: 0 / 0.6119 GB, free: 14.92 MB / 462.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.876e-05/0.4618, allocations: 85.11 kB / 0.6119 GB, free: 14.82 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.677e-05/0.4619, allocations: 32.67 kB / 0.612 GB, free: 14.78 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.328e-06/0.4619, allocations: 3.938 kB / 0.612 GB, free: 14.78 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.478e-05/0.4619, allocations: 3.938 kB / 0.612 GB, free: 14.77 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.775e-06/0.4619, allocations: 3.984 kB / 0.612 GB, free: 14.77 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.498e-06/0.4619, allocations: 3.938 kB / 0.612 GB, free: 14.77 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.6e-05/0.4619, allocations: 11.94 kB / 0.612 GB, free: 14.75 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.684e-06/0.4619, allocations: 4.031 kB / 0.612 GB, free: 14.75 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 0.0001246/0.462, allocations: 135.5 kB / 0.6121 GB, free: 14.6 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.366e-06/0.4621, allocations: 0 / 0.6121 GB, free: 14.6 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.453e-05/0.4621, allocations: 7 kB / 0.6121 GB, free: 14.59 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.62e-07/0.4621, allocations: 0 / 0.6121 GB, free: 14.59 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.4621, allocations: 0 / 0.6121 GB, free: 14.59 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.913e-06/0.4621, allocations: 7.922 kB / 0.6121 GB, free: 14.59 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001051/0.4622, allocations: 120.8 kB / 0.6123 GB, free: 14.42 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.22e-07/0.4622, allocations: 0 / 0.6123 GB, free: 14.42 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.91e-07/0.4622, allocations: 0 / 0.6123 GB, free: 14.42 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.102e-06/0.4622, allocations: 0 / 0.6123 GB, free: 14.42 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.271e-06/0.4622, allocations: 4 kB / 0.6123 GB, free: 14.42 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.01e-07/0.4622, allocations: 0 / 0.6123 GB, free: 14.42 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.4622, allocations: 0 / 0.6123 GB, free: 14.42 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001159/0.4623, allocations: 120.5 kB / 0.6124 GB, free: 14.27 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.188e-06/0.4623, allocations: 4 kB / 0.6124 GB, free: 14.27 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.107e-05/0.4623, allocations: 0 / 0.6124 GB, free: 14.27 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.235e-06/0.4623, allocations: 3.938 kB / 0.6124 GB, free: 14.26 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.989e-06/0.4623, allocations: 0 / 0.6124 GB, free: 14.26 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.392e-06/0.4624, allocations: 7.938 kB / 0.6124 GB, free: 14.25 MB / 462.1 MB Notification: Performance of sorting global known variables: time 3.853e-05/0.4624, allocations: 75.28 kB / 0.6125 GB, free: 14.18 MB / 462.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4624, allocations: 4.031 kB / 0.6125 GB, free: 14.18 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.01213/0.4745, allocations: 3.787 MB / 0.6162 GB, free: 10.39 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.02493/0.4995, allocations: 1.535 MB / 0.6177 GB, free: 8.832 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0001978/0.4997, allocations: 118.7 kB / 0.6178 GB, free: 8.691 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.4997, allocations: 0 / 0.6178 GB, free: 8.691 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 5.275e-05/0.4997, allocations: 81.11 kB / 0.6179 GB, free: 8.594 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001534/0.4999, allocations: 14.41 kB / 0.6179 GB, free: 8.582 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00894/0.5088, allocations: 370.6 kB / 0.6182 GB, free: 8.172 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.305e-05/0.5089, allocations: 51.36 kB / 0.6183 GB, free: 8.102 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 1.228e-05/0.5089, allocations: 7.984 kB / 0.6183 GB, free: 8.094 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.271e-05/0.5089, allocations: 7.438 kB / 0.6183 GB, free: 8.086 MB / 462.1 MB Notification: Performance of SimCode: time 1.052e-06/0.5089, allocations: 0 / 0.6183 GB, free: 8.086 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.211/0.7199, allocations: 114.4 MB / 0.73 GB, free: 5.617 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.74/19.46, allocations: 7.922 kB / 0.73 GB, free: 5.609 MB / 0.5606 GB " [Timeout remaining time 640] (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Math_TestMatrices2_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Math_TestMatrices2.fmu > ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 22.654953212011606] Failed to read output from testmodel.py, exit status != 0: ['time', 'result'] 19.609584105201066 19.83635015 19.383034524 Calling exit ...