Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001908/0.001908, 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.002284/0.002284, 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.438/1.438, allocations: 230.6 MB / 257.5 MB, free: 7.789 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.2273/0.2273, allocations: 46.96 MB / 360.9 MB, free: 4.016 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.TestMatrices2,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Math_TestMatrices2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestMatrices2,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Math_TestMatrices2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00202/0.00202, allocations: 72.08 kB / 0.4961 GB, free: 7.715 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3083/0.3103, allocations: 66.03 MB / 0.5606 GB, free: 4.215 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices2): time 0.001668/0.312, allocations: 0.4893 MB / 0.5611 GB, free: 3.723 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.008388/0.3204, allocations: 4.57 MB / 0.5655 GB, free: 15.13 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.414e-05/0.3204, allocations: 0 / 0.5655 GB, free: 15.13 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.902e-05/0.3205, allocations: 4 kB / 0.5655 GB, free: 15.13 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 9.638e-06/0.3205, allocations: 0 / 0.5655 GB, free: 15.13 MB / 414.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.008526/0.329, allocations: 3.27 MB / 0.5687 GB, free: 11.87 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 5.348e-05/0.329, allocations: 7.984 kB / 0.5687 GB, free: 11.86 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.702e-05/0.3291, allocations: 4 kB / 0.5687 GB, free: 11.86 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.509e-05/0.3291, allocations: 0 / 0.5687 GB, free: 11.86 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.763e-05/0.3291, allocations: 0 / 0.5687 GB, free: 11.86 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.3e-06/0.3291, allocations: 0 / 0.5687 GB, free: 11.86 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02931/0.3584, allocations: 19.8 MB / 0.5881 GB, free: 8.031 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 1.232e-05/0.3584, allocations: 0 / 0.5881 GB, free: 8.031 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 2.425e-05/0.3585, allocations: 0 / 0.5881 GB, free: 8.031 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03771/0.3962, allocations: 26.13 MB / 0.6136 GB, free: 13.85 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.222e-06/0.3962, allocations: 3.938 kB / 0.6136 GB, free: 13.85 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.3962, allocations: 8 kB / 0.6136 GB, free: 13.84 MB / 462.1 MB Notification: Performance of Transformations before backend: time 7.063e-06/0.3962, allocations: 0 / 0.6136 GB, free: 13.84 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.006903/0.4031, allocations: 0.5904 MB / 0.6142 GB, free: 13.21 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.128e-05/0.4031, allocations: 8.031 kB / 0.6142 GB, free: 13.21 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.918e-05/0.4032, allocations: 30.75 kB / 0.6142 GB, free: 13.17 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.919e-05/0.4032, allocations: 4.938 kB / 0.6142 GB, free: 13.16 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.141e-05/0.4033, allocations: 113.2 kB / 0.6143 GB, free: 13.03 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.068e-05/0.4033, allocations: 0 / 0.6143 GB, free: 13.03 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.923e-06/0.4033, allocations: 0 / 0.6143 GB, free: 13.03 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.696e-05/0.4034, allocations: 55.41 kB / 0.6144 GB, free: 12.96 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.193e-06/0.4034, allocations: 7.938 kB / 0.6144 GB, free: 12.95 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.422e-06/0.4034, allocations: 0 / 0.6144 GB, free: 12.95 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.908e-06/0.4034, allocations: 0 / 0.6144 GB, free: 12.95 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.64e-05/0.4035, allocations: 29.64 kB / 0.6144 GB, free: 12.92 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001502/0.4036, allocations: 132.6 kB / 0.6145 GB, free: 12.75 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.092e-05/0.4037, allocations: 44.31 kB / 0.6146 GB, free: 12.69 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.178e-05/0.4037, allocations: 30.56 kB / 0.6146 GB, free: 12.65 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.843e-06/0.4037, allocations: 0 / 0.6146 GB, free: 12.65 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.535e-05/0.4038, allocations: 56.33 kB / 0.6147 GB, free: 12.58 MB / 462.1 MB Notification: Performance of pre-optimization done (n=1): time 9.32e-07/0.4038, allocations: 4 kB / 0.6147 GB, free: 12.57 MB / 462.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002029/0.404, allocations: 130.7 kB / 0.6148 GB, free: 12.42 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.292e-05/0.404, allocations: 77.11 kB / 0.6149 GB, free: 12.33 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.87e-05/0.4041, allocations: 89.86 kB / 0.6149 GB, free: 12.23 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 1.638e-05/0.4041, allocations: 25.7 kB / 0.615 GB, free: 12.2 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.211e-05/0.4042, allocations: 80.14 kB / 0.615 GB, free: 12.12 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.771e-05/0.4042, allocations: 0 / 0.615 GB, free: 12.12 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.103e-05/0.4042, allocations: 13.72 kB / 0.6151 GB, free: 12.1 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001765/0.4044, allocations: 318.8 kB / 0.6154 GB, free: 11.78 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.76e-05/0.4044, allocations: 33.69 kB / 0.6154 GB, free: 11.74 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.856e-05/0.4044, allocations: 25.7 kB / 0.6154 GB, free: 11.71 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.808e-05/0.4045, allocations: 64.45 kB / 0.6155 GB, free: 11.63 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.482e-06/0.4045, allocations: 0 / 0.6155 GB, free: 11.63 MB / 462.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.194e-05/0.4046, allocations: 97.03 kB / 0.6156 GB, free: 11.52 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.433e-05/0.4046, allocations: 29.7 kB / 0.6156 GB, free: 11.48 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.438e-06/0.4046, allocations: 0 / 0.6156 GB, free: 11.48 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.244e-05/0.4046, allocations: 0 / 0.6156 GB, free: 11.48 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.71e-07/0.4046, allocations: 0 / 0.6156 GB, free: 11.48 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.962e-06/0.4046, allocations: 4 kB / 0.6156 GB, free: 11.48 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.779e-05/0.4047, allocations: 3.938 kB / 0.6156 GB, free: 11.47 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.833e-06/0.4047, allocations: 0 / 0.6156 GB, free: 11.47 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.0001092/0.4048, allocations: 139.6 kB / 0.6157 GB, free: 11.32 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.845e-06/0.4048, allocations: 3.938 kB / 0.6157 GB, free: 11.32 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.372e-05/0.4048, allocations: 6.984 kB / 0.6158 GB, free: 11.31 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.002e-06/0.4048, allocations: 0 / 0.6158 GB, free: 11.31 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.286e-06/0.4048, allocations: 0 / 0.6158 GB, free: 11.31 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.771e-06/0.4048, allocations: 3.938 kB / 0.6158 GB, free: 11.3 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001133/0.4049, allocations: 124.7 kB / 0.6159 GB, free: 11.14 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.62e-07/0.4049, allocations: 0 / 0.6159 GB, free: 11.14 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.016e-06/0.4049, allocations: 4 kB / 0.6159 GB, free: 11.14 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.223e-06/0.4049, allocations: 0 / 0.6159 GB, free: 11.14 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.592e-06/0.4049, allocations: 0 / 0.6159 GB, free: 11.14 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.62e-07/0.4049, allocations: 4 kB / 0.6159 GB, free: 11.13 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.4049, allocations: 4 kB / 0.6159 GB, free: 11.13 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001234/0.4051, allocations: 124.4 kB / 0.616 GB, free: 10.98 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.078e-06/0.4051, allocations: 0 / 0.616 GB, free: 10.98 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.475e-05/0.4051, allocations: 3.984 kB / 0.616 GB, free: 10.97 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.468e-06/0.4051, allocations: 0 / 0.616 GB, free: 10.97 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.265e-05/0.4051, allocations: 4 kB / 0.616 GB, free: 10.97 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.629e-06/0.4051, allocations: 3.938 kB / 0.616 GB, free: 10.96 MB / 462.1 MB Notification: Performance of sorting global known variables: time 5.068e-05/0.4052, allocations: 75.28 kB / 0.6161 GB, free: 10.89 MB / 462.1 MB Notification: Performance of sort global known variables: time 5e-08/0.4052, allocations: 0 / 0.6161 GB, free: 10.89 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0112/0.4164, allocations: 3.791 MB / 0.6198 GB, free: 7.098 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.01961/0.436, allocations: 1.537 MB / 0.6213 GB, free: 5.543 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0001649/0.4361, allocations: 106.8 kB / 0.6214 GB, free: 5.414 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.4361, allocations: 4 kB / 0.6214 GB, free: 5.41 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 5.224e-05/0.4362, allocations: 81.09 kB / 0.6215 GB, free: 5.312 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001537/0.4363, allocations: 15.88 kB / 0.6215 GB, free: 5.297 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006114/0.4425, allocations: 378.7 kB / 0.6219 GB, free: 4.879 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.244e-05/0.4425, allocations: 55.36 kB / 0.6219 GB, free: 4.805 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 5.46e-06/0.4425, allocations: 0 / 0.6219 GB, free: 4.805 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.596e-05/0.4425, allocations: 7.438 kB / 0.6219 GB, free: 4.797 MB / 462.1 MB Notification: Performance of SimCode: time 1.052e-06/0.4425, allocations: 0 / 0.6219 GB, free: 4.797 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1918/0.6344, allocations: 114.4 MB / 0.7336 GB, free: 2.344 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.85/19.49, allocations: 11.28 kB / 0.7336 GB, free: 2.336 MB / 0.5606 GB " [Timeout remaining time 640] (rm -f ModelicaTest_4.1.0_ModelicaTest.Math.TestMatrices2.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Math.TestMatrices2.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Math.TestMatrices2.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Math.TestMatrices2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Math.TestMatrices2_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Math_TestMatrices2_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Math_TestMatrices2.fmu > ModelicaTest_4.1.0_ModelicaTest.Math.TestMatrices2.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 22.56887898594141] Failed to read output from testmodel.py, exit status != 0: ['time', 'result'] 19.637126300949603 19.89441236 19.495619919 Calling exit ...