Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.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.001699/0.001699, 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.002071/0.002071, allocations: 217 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.469/1.469, allocations: 230.6 MB / 257.5 MB, free: 8.023 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.2317/0.2317, allocations: 44.92 MB / 358.8 MB, free: 6.289 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.TestMatrices,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestMatrices",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestMatrices,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestMatrices",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.002056/0.002056, allocations: 71.88 kB / 0.4931 GB, free: 10.74 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3304/0.3325, allocations: 65.47 MB / 0.557 GB, free: 7.539 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices): time 0.001677/0.3342, allocations: 489.9 kB / 0.5575 GB, free: 7.18 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002432/0.3366, allocations: 1.638 MB / 0.5591 GB, free: 5.672 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.607e-05/0.3366, allocations: 0 / 0.5591 GB, free: 5.672 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.882e-05/0.3366, allocations: 0 / 0.5591 GB, free: 5.672 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.542e-06/0.3366, allocations: 0 / 0.5591 GB, free: 5.672 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Math.mo:171:3-212:15:writable] Warning: Pure function 'ModelicaTest.Math.Matrices' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0009612/0.3376, allocations: 291.2 kB / 0.5594 GB, free: 5.387 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.905e-05/0.3376, allocations: 7.984 kB / 0.5594 GB, free: 5.379 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.111e-05/0.3377, allocations: 4 kB / 0.5594 GB, free: 5.375 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.656e-05/0.3377, allocations: 4 kB / 0.5594 GB, free: 5.371 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.418e-05/0.3377, allocations: 0 / 0.5594 GB, free: 5.371 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.39e-06/0.3377, allocations: 0 / 0.5594 GB, free: 5.371 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008413/0.3386, allocations: 0.6068 MB / 0.56 GB, free: 4.766 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.612e-06/0.3386, allocations: 0 / 0.56 GB, free: 4.766 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.944e-05/0.3386, allocations: 4 kB / 0.56 GB, free: 4.762 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000445/0.339, allocations: 333 kB / 0.5603 GB, free: 4.438 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.339, allocations: 0 / 0.5603 GB, free: 4.438 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.339, allocations: 0 / 0.5603 GB, free: 4.438 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.328e-06/0.339, allocations: 4 kB / 0.5603 GB, free: 4.434 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.0003753/0.3394, allocations: 295.7 kB / 0.5606 GB, free: 4.109 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.923e-05/0.3395, allocations: 12.03 kB / 0.5606 GB, free: 4.098 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.659e-05/0.3395, allocations: 30.75 kB / 0.5606 GB, free: 4.059 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.212e-05/0.3395, allocations: 0.9375 kB / 0.5606 GB, free: 4.059 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.346e-05/0.3396, allocations: 114.5 kB / 0.5607 GB, free: 3.922 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.857e-06/0.3396, allocations: 8.375 kB / 0.5607 GB, free: 3.914 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.989e-06/0.3396, allocations: 384 / 0.5607 GB, free: 3.914 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.454e-05/0.3397, allocations: 33.81 kB / 0.5608 GB, free: 3.875 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.044e-05/0.3397, allocations: 0 / 0.5608 GB, free: 3.875 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.005e-05/0.3397, allocations: 4 kB / 0.5608 GB, free: 3.871 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.208e-06/0.3397, allocations: 0 / 0.5608 GB, free: 3.871 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.498e-05/0.3397, allocations: 0 / 0.5608 GB, free: 3.871 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001394/0.3399, allocations: 112.8 kB / 0.5609 GB, free: 3.719 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.409e-05/0.3399, allocations: 34.53 kB / 0.5609 GB, free: 3.676 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.623e-05/0.34, allocations: 4.859 kB / 0.5609 GB, free: 3.668 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.388e-06/0.34, allocations: 0 / 0.5609 GB, free: 3.668 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.791e-05/0.34, allocations: 72.19 kB / 0.561 GB, free: 3.582 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.72e-07/0.34, allocations: 0 / 0.561 GB, free: 3.582 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001941/0.3402, allocations: 59.41 kB / 0.561 GB, free: 3.512 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.182e-05/0.3403, allocations: 81.05 kB / 0.5611 GB, free: 3.414 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.139e-05/0.3403, allocations: 105.9 kB / 0.5612 GB, free: 3.301 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.914e-05/0.3404, allocations: 25.7 kB / 0.5612 GB, free: 3.27 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.422e-05/0.3404, allocations: 80.14 kB / 0.5613 GB, free: 3.188 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.581e-05/0.3404, allocations: 0 / 0.5613 GB, free: 3.188 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.934e-05/0.3405, allocations: 17.7 kB / 0.5613 GB, free: 3.164 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000147/0.3406, allocations: 310.8 kB / 0.5616 GB, free: 2.852 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.508e-06/0.3406, allocations: 0 / 0.5616 GB, free: 2.852 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.139e-06/0.3406, allocations: 0 / 0.5616 GB, free: 2.852 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.062e-05/0.3407, allocations: 68.33 kB / 0.5617 GB, free: 2.77 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.3407, allocations: 0 / 0.5617 GB, free: 2.77 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.223e-05/0.3408, allocations: 63.39 kB / 0.5618 GB, free: 2.695 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.433e-05/0.3408, allocations: 33.64 kB / 0.5618 GB, free: 2.656 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.308e-06/0.3408, allocations: 4 kB / 0.5618 GB, free: 2.652 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.436e-05/0.3408, allocations: 0 / 0.5618 GB, free: 2.652 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.91e-07/0.3408, allocations: 3.938 kB / 0.5618 GB, free: 2.648 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.689e-06/0.3408, allocations: 0 / 0.5618 GB, free: 2.648 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.682e-05/0.3409, allocations: 0 / 0.5618 GB, free: 2.648 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.276e-06/0.3409, allocations: 4.031 kB / 0.5618 GB, free: 2.645 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.0001132/0.341, allocations: 135.5 kB / 0.5619 GB, free: 2.496 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.85e-05/0.341, allocations: 7.922 kB / 0.5619 GB, free: 2.488 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.798e-05/0.341, allocations: 3 kB / 0.5619 GB, free: 2.484 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.203e-06/0.341, allocations: 0 / 0.5619 GB, free: 2.484 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.341, allocations: 0 / 0.5619 GB, free: 2.484 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.263e-06/0.341, allocations: 4 kB / 0.5619 GB, free: 2.48 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001316/0.3412, allocations: 116.8 kB / 0.5621 GB, free: 2.324 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.3412, allocations: 0 / 0.5621 GB, free: 2.324 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.91e-07/0.3412, allocations: 0 / 0.5621 GB, free: 2.324 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.764e-06/0.3412, allocations: 7.938 kB / 0.5621 GB, free: 2.316 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.419e-05/0.3412, allocations: 7.984 kB / 0.5621 GB, free: 2.309 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.12e-07/0.3412, allocations: 0 / 0.5621 GB, free: 2.309 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.3412, allocations: 0 / 0.5621 GB, free: 2.309 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001238/0.3413, allocations: 82.84 kB / 0.5621 GB, free: 2.203 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.868e-06/0.3413, allocations: 15.88 kB / 0.5622 GB, free: 2.188 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.703e-05/0.3413, allocations: 3.984 kB / 0.5622 GB, free: 2.184 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.005e-06/0.3414, allocations: 4.031 kB / 0.5622 GB, free: 2.18 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.05e-05/0.3414, allocations: 3.938 kB / 0.5622 GB, free: 2.176 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.508e-06/0.3414, allocations: 4 kB / 0.5622 GB, free: 2.172 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.589e-05/0.3414, allocations: 75.28 kB / 0.5622 GB, free: 2.098 MB / 398.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3414, allocations: 3.938 kB / 0.5623 GB, free: 2.094 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003222/0.3417, allocations: 67.8 kB / 0.5623 GB, free: 2.027 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.0008359/0.3426, allocations: 0.715 MB / 0.563 GB, free: 1.281 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001166/0.3427, allocations: 63.34 kB / 0.5631 GB, free: 1.207 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.3427, allocations: 0 / 0.5631 GB, free: 1.207 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.559e-05/0.3427, allocations: 59.41 kB / 0.5631 GB, free: 1.137 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001296/0.3429, allocations: 4 kB / 0.5631 GB, free: 1.133 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00036/0.3432, allocations: 122.5 kB / 0.5633 GB, free: 0.9727 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003213/0.3436, allocations: 0.6729 MB / 0.5639 GB, free: 280 kB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.543e-06/0.3436, allocations: 128 / 0.5639 GB, free: 280 kB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.491e-05/0.3436, allocations: 11.44 kB / 0.5639 GB, free: 268 kB / 398.1 MB Notification: Performance of SimCode: time 3.1e-07/0.3436, allocations: 0 / 0.5639 GB, free: 268 kB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02867/0.3722, allocations: 2.227 MB / 0.5661 GB, free: 14.16 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.9/11.27, allocations: 13.95 kB / 0.5661 GB, free: 14.16 MB / 414.1 MB " [Timeout remaining time 649] (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Math_TestMatrices_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Math_TestMatrices.fmu > ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.123096529161558] Failed to read output from testmodel.py, exit status != 0: ['time', 'result'] 11.375264005968347 11.401705608 11.057150165 Calling exit ...