Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Math.TestMatrices2b.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.001557/0.001557, allocations: 113.1 kB / 20.43 MB, free: 1.457 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.001705/0.001705, allocations: 217.2 kB / 23.75 MB, free: 4.668 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.455/1.455, allocations: 230.6 MB / 257.5 MB, free: 8.008 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.2283/0.2283, allocations: 46.94 MB / 360.9 MB, free: 4.25 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.TestMatrices2b,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Math_TestMatrices2b",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestMatrices2b,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Math_TestMatrices2b",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001958/0.001958, allocations: 63.89 kB / 0.4961 GB, free: 7.898 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3357/0.3376, allocations: 66.03 MB / 0.5606 GB, free: 4.461 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices2b): time 0.001717/0.3394, allocations: 0.492 MB / 0.5611 GB, free: 3.969 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00357/0.3429, allocations: 2.165 MB / 0.5632 GB, free: 1.785 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.832e-05/0.343, allocations: 4 kB / 0.5632 GB, free: 1.781 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.555e-05/0.343, allocations: 0 / 0.5632 GB, free: 1.781 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 8.095e-06/0.343, allocations: 11.88 kB / 0.5632 GB, free: 1.77 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/Math.mo:485:3-574:17:writable] Warning: Pure function 'ModelicaTest.Math.Matrices2b' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.00226/0.3452, allocations: 0.7592 MB / 0.564 GB, free: 1.016 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.3e-05/0.3453, allocations: 4 kB / 0.564 GB, free: 1.012 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.07e-05/0.3453, allocations: 3.984 kB / 0.564 GB, free: 1.008 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.848e-05/0.3454, allocations: 0 / 0.564 GB, free: 1.008 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.854e-05/0.3454, allocations: 0 / 0.564 GB, free: 1.008 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.703e-06/0.3454, allocations: 4 kB / 0.564 GB, free: 1.004 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002602/0.348, allocations: 1.708 MB / 0.5657 GB, free: 15.29 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.188e-05/0.348, allocations: 4 kB / 0.5657 GB, free: 15.29 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.186e-05/0.348, allocations: 0 / 0.5657 GB, free: 15.29 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001919/0.3499, allocations: 1.569 MB / 0.5672 GB, free: 13.72 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.3499, allocations: 0 / 0.5672 GB, free: 13.72 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.3499, allocations: 0 / 0.5672 GB, free: 13.72 MB / 414.1 MB Notification: Performance of Transformations before backend: time 8.556e-06/0.3499, allocations: 4 kB / 0.5672 GB, free: 13.71 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.000614/0.3506, allocations: 339.4 kB / 0.5675 GB, free: 13.35 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.284e-05/0.3506, allocations: 8.031 kB / 0.5675 GB, free: 13.34 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.55e-05/0.3506, allocations: 34.75 kB / 0.5676 GB, free: 13.3 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.638e-05/0.3507, allocations: 0.9375 kB / 0.5676 GB, free: 13.3 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.415e-05/0.3508, allocations: 110.5 kB / 0.5677 GB, free: 13.16 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.118e-05/0.3508, allocations: 384 / 0.5677 GB, free: 13.16 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.032e-05/0.3508, allocations: 3.938 kB / 0.5677 GB, free: 13.16 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.273e-05/0.3509, allocations: 33.69 kB / 0.5677 GB, free: 13.12 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.027e-06/0.3509, allocations: 0 / 0.5677 GB, free: 13.12 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.995e-06/0.3509, allocations: 0 / 0.5677 GB, free: 13.12 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.05e-06/0.3509, allocations: 0 / 0.5677 GB, free: 13.12 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.551e-05/0.3509, allocations: 4 kB / 0.5677 GB, free: 13.12 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001487/0.3511, allocations: 128.7 kB / 0.5678 GB, free: 12.95 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.877e-05/0.3511, allocations: 26.44 kB / 0.5679 GB, free: 12.91 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.078e-05/0.3512, allocations: 8.844 kB / 0.5679 GB, free: 12.9 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.839e-06/0.3512, allocations: 96 / 0.5679 GB, free: 12.9 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.187e-05/0.3512, allocations: 60.27 kB / 0.5679 GB, free: 12.83 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 7.31e-07/0.3512, allocations: 0 / 0.5679 GB, free: 12.83 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001912/0.3514, allocations: 71.36 kB / 0.568 GB, free: 12.75 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.732e-05/0.3515, allocations: 81.09 kB / 0.5681 GB, free: 12.65 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.601e-05/0.3515, allocations: 93.8 kB / 0.5682 GB, free: 12.55 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.483e-05/0.3515, allocations: 25.7 kB / 0.5682 GB, free: 12.52 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.483e-05/0.3516, allocations: 80.14 kB / 0.5683 GB, free: 12.43 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.642e-05/0.3516, allocations: 0 / 0.5683 GB, free: 12.43 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.841e-05/0.3516, allocations: 17.66 kB / 0.5683 GB, free: 12.41 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001491/0.3518, allocations: 314.8 kB / 0.5686 GB, free: 12.09 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.467e-06/0.3518, allocations: 4.125 kB / 0.5686 GB, free: 12.09 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.875e-06/0.3518, allocations: 4 kB / 0.5686 GB, free: 12.09 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.621e-05/0.3519, allocations: 56.27 kB / 0.5686 GB, free: 12.02 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.734e-06/0.3519, allocations: 0 / 0.5686 GB, free: 12.02 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.332e-05/0.3519, allocations: 67.33 kB / 0.5687 GB, free: 11.94 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.552e-05/0.352, allocations: 29.7 kB / 0.5687 GB, free: 11.9 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.087e-06/0.352, allocations: 4 kB / 0.5687 GB, free: 11.9 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.612e-05/0.352, allocations: 0 / 0.5687 GB, free: 11.9 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.92e-07/0.352, allocations: 4.094 kB / 0.5687 GB, free: 11.89 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.399e-06/0.352, allocations: 0 / 0.5687 GB, free: 11.89 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.608e-05/0.352, allocations: 3.938 kB / 0.5687 GB, free: 11.89 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.312e-06/0.352, allocations: 0 / 0.5687 GB, free: 11.89 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 0.0001398/0.3521, allocations: 147.5 kB / 0.5689 GB, free: 11.73 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.608e-06/0.3522, allocations: 3.938 kB / 0.5689 GB, free: 11.73 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.143e-05/0.3522, allocations: 3 kB / 0.5689 GB, free: 11.72 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.093e-06/0.3522, allocations: 0 / 0.5689 GB, free: 11.72 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.595e-06/0.3522, allocations: 0 / 0.5689 GB, free: 11.72 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.3522, allocations: 8 kB / 0.5689 GB, free: 11.71 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001055/0.3523, allocations: 120.7 kB / 0.569 GB, free: 11.55 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.01e-07/0.3523, allocations: 0 / 0.569 GB, free: 11.55 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.01e-07/0.3523, allocations: 0 / 0.569 GB, free: 11.55 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.032e-06/0.3523, allocations: 0 / 0.569 GB, free: 11.55 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.156e-06/0.3523, allocations: 7.938 kB / 0.569 GB, free: 11.55 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.62e-07/0.3523, allocations: 0 / 0.569 GB, free: 11.55 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.91e-07/0.3523, allocations: 0 / 0.569 GB, free: 11.55 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001049/0.3524, allocations: 94.77 kB / 0.5691 GB, free: 11.43 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.062e-06/0.3524, allocations: 4 kB / 0.5691 GB, free: 11.43 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.217e-05/0.3524, allocations: 0 / 0.5691 GB, free: 11.43 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.035e-06/0.3524, allocations: 0 / 0.5691 GB, free: 11.43 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.354e-05/0.3524, allocations: 3.938 kB / 0.5691 GB, free: 11.42 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.037e-05/0.3524, allocations: 12 kB / 0.5691 GB, free: 11.41 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.444e-05/0.3525, allocations: 75.28 kB / 0.5692 GB, free: 11.34 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3525, allocations: 0 / 0.5692 GB, free: 11.34 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0008045/0.3533, allocations: 279.5 kB / 0.5695 GB, free: 11.06 MB / 414.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.001659/0.355, allocations: 0.9366 MB / 0.5704 GB, free: 10.11 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001066/0.3551, allocations: 67.33 kB / 0.5704 GB, free: 10.03 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.3551, allocations: 4 kB / 0.5705 GB, free: 10.02 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.519e-05/0.3551, allocations: 51.41 kB / 0.5705 GB, free: 9.961 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001356/0.3553, allocations: 4 kB / 0.5705 GB, free: 9.957 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004972/0.3558, allocations: 170.3 kB / 0.5707 GB, free: 9.75 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000423/0.3562, allocations: 0.669 MB / 0.5713 GB, free: 9.055 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.992e-06/0.3562, allocations: 4 kB / 0.5713 GB, free: 9.051 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.719e-05/0.3562, allocations: 7.438 kB / 0.5713 GB, free: 9.043 MB / 414.1 MB Notification: Performance of SimCode: time 2.81e-07/0.3562, allocations: 0 / 0.5713 GB, free: 9.043 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03915/0.3954, allocations: 8.34 MB / 0.5795 GB, free: 0.8203 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.03/11.42, allocations: 2.578 kB / 0.5795 GB, free: 0.8203 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.1.0_ModelicaTest.Math.TestMatrices2b.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Math.TestMatrices2b.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Math.TestMatrices2b.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Math.TestMatrices2b.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Math.TestMatrices2b_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Math_TestMatrices2b_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Math_TestMatrices2b.fmu > ModelicaTest_4.1.0_ModelicaTest.Math.TestMatrices2b.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.216946454020217] Failed to read output from testmodel.py, exit status != 0: ['time', 'result'] 11.528105976060033 11.544661222 11.190815854 Calling exit ...