Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001361/0.001361, allocations: 119.1 kB / 20.45 MB, free: 1.176 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001472/0.001472, allocations: 207.4 kB / 23.72 MB, free: 4.391 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.419/1.419, allocations: 230.5 MB / 257.4 MB, free: 7.75 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2275/0.2275, allocations: 46.94 MB / 360.8 MB, free: 3.922 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.TestMatrices,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_TestMatrices",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestMatrices,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_TestMatrices",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002314/0.002314, allocations: 79.88 kB / 0.4961 GB, free: 7.566 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3267/0.329, allocations: 66.09 MB / 0.5607 GB, free: 4.027 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices): time 0.001571/0.3305, allocations: 499.7 kB / 0.5612 GB, free: 3.543 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002124/0.3327, allocations: 1.54 MB / 0.5627 GB, free: 1.984 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.773e-05/0.3327, allocations: 0 / 0.5627 GB, free: 1.984 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.321e-05/0.3327, allocations: 4 kB / 0.5627 GB, free: 1.98 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.31e-06/0.3327, allocations: 3.938 kB / 0.5627 GB, free: 1.977 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.0009481/0.3336, allocations: 295.2 kB / 0.5629 GB, free: 1.688 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.086e-05/0.3337, allocations: 0 / 0.5629 GB, free: 1.688 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.978e-05/0.3337, allocations: 7.984 kB / 0.563 GB, free: 1.68 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.057e-05/0.3337, allocations: 11.92 kB / 0.563 GB, free: 1.668 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.662e-05/0.3338, allocations: 0 / 0.563 GB, free: 1.668 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.531e-06/0.3338, allocations: 0 / 0.563 GB, free: 1.668 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006583/0.3344, allocations: 423 kB / 0.5634 GB, free: 1.254 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.999e-06/0.3344, allocations: 3.984 kB / 0.5634 GB, free: 1.25 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.154e-05/0.3345, allocations: 4 kB / 0.5634 GB, free: 1.246 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004323/0.3349, allocations: 301.1 kB / 0.5637 GB, free: 0.9531 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.3349, allocations: 0 / 0.5637 GB, free: 0.9531 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.714e-06/0.3349, allocations: 4 kB / 0.5637 GB, free: 0.9492 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.051e-06/0.3349, allocations: 0 / 0.5637 GB, free: 0.9492 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.0003738/0.3353, allocations: 307.7 kB / 0.564 GB, free: 0.6133 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.739e-05/0.3353, allocations: 12.03 kB / 0.564 GB, free: 0.6016 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.488e-05/0.3353, allocations: 30.75 kB / 0.564 GB, free: 0.5625 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.177e-05/0.3354, allocations: 0.9375 kB / 0.564 GB, free: 0.5625 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.487e-05/0.3355, allocations: 110.5 kB / 0.5641 GB, free: 440 kB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.351e-05/0.3355, allocations: 4.359 kB / 0.5641 GB, free: 436 kB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.941e-06/0.3355, allocations: 384 / 0.5641 GB, free: 436 kB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001032/0.3356, allocations: 63.47 kB / 0.5642 GB, free: 360 kB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.304e-06/0.3356, allocations: 0 / 0.5642 GB, free: 360 kB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.913e-06/0.3356, allocations: 0 / 0.5642 GB, free: 360 kB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.008e-06/0.3356, allocations: 0 / 0.5642 GB, free: 360 kB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.964e-05/0.3356, allocations: 25.7 kB / 0.5642 GB, free: 328 kB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00013/0.3358, allocations: 128.8 kB / 0.5643 GB, free: 156 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.229e-05/0.3358, allocations: 44.31 kB / 0.5644 GB, free: 96 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.937e-05/0.3358, allocations: 30.56 kB / 0.5644 GB, free: 56 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.574e-06/0.3359, allocations: 0 / 0.5644 GB, free: 56 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.744e-05/0.3359, allocations: 68.14 kB / 0.5645 GB, free: 15.97 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 8.72e-07/0.3359, allocations: 4.062 kB / 0.5645 GB, free: 15.97 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.000195/0.3361, allocations: 114.8 kB / 0.5646 GB, free: 15.83 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.139e-05/0.3362, allocations: 77.11 kB / 0.5646 GB, free: 15.74 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.339e-05/0.3362, allocations: 93.81 kB / 0.5647 GB, free: 15.64 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.504e-05/0.3363, allocations: 25.83 kB / 0.5648 GB, free: 15.61 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.434e-05/0.3363, allocations: 84.14 kB / 0.5648 GB, free: 15.52 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.699e-05/0.3363, allocations: 4 kB / 0.5648 GB, free: 15.52 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.686e-05/0.3363, allocations: 13.72 kB / 0.5649 GB, free: 15.5 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001335/0.3365, allocations: 310.8 kB / 0.5652 GB, free: 15.18 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.641e-05/0.3365, allocations: 33.69 kB / 0.5652 GB, free: 15.14 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.273e-05/0.3365, allocations: 29.64 kB / 0.5652 GB, free: 15.11 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.279e-05/0.3366, allocations: 64.27 kB / 0.5653 GB, free: 15.03 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.3366, allocations: 0 / 0.5653 GB, free: 15.03 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.184e-05/0.3367, allocations: 89.09 kB / 0.5654 GB, free: 14.93 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.72e-05/0.3367, allocations: 41.67 kB / 0.5654 GB, free: 14.88 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.198e-06/0.3367, allocations: 3.938 kB / 0.5654 GB, free: 14.88 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.076e-05/0.3367, allocations: 0 / 0.5654 GB, free: 14.88 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.62e-07/0.3367, allocations: 0 / 0.5654 GB, free: 14.88 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.233e-06/0.3367, allocations: 4 kB / 0.5654 GB, free: 14.87 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.586e-05/0.3367, allocations: 4 kB / 0.5654 GB, free: 14.87 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.511e-06/0.3367, allocations: 0 / 0.5654 GB, free: 14.87 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 9.312e-05/0.3368, allocations: 135.5 kB / 0.5655 GB, free: 14.72 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.738e-06/0.3368, allocations: 3.938 kB / 0.5655 GB, free: 14.71 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.308e-05/0.3369, allocations: 10.98 kB / 0.5656 GB, free: 14.7 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.62e-07/0.3369, allocations: 4 kB / 0.5656 GB, free: 14.7 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.126e-06/0.3369, allocations: 3.938 kB / 0.5656 GB, free: 14.7 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.853e-06/0.3369, allocations: 0 / 0.5656 GB, free: 14.7 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.995e-05/0.337, allocations: 116.8 kB / 0.5657 GB, free: 14.54 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.52e-07/0.337, allocations: 0 / 0.5657 GB, free: 14.54 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.41e-07/0.337, allocations: 0 / 0.5657 GB, free: 14.54 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.035e-06/0.337, allocations: 3.938 kB / 0.5657 GB, free: 14.54 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.541e-05/0.337, allocations: 0 / 0.5657 GB, free: 14.54 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.02e-07/0.337, allocations: 0 / 0.5657 GB, free: 14.54 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.337, allocations: 0 / 0.5657 GB, free: 14.54 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001193/0.3371, allocations: 124.5 kB / 0.5658 GB, free: 14.38 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.631e-06/0.3371, allocations: 3.938 kB / 0.5658 GB, free: 14.38 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.195e-05/0.3371, allocations: 3.984 kB / 0.5658 GB, free: 14.38 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.125e-06/0.3371, allocations: 0 / 0.5658 GB, free: 14.38 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.286e-05/0.3371, allocations: 0 / 0.5658 GB, free: 14.38 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.244e-06/0.3371, allocations: 4 kB / 0.5658 GB, free: 14.37 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.134e-05/0.3372, allocations: 75.28 kB / 0.5659 GB, free: 14.3 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3372, allocations: 0 / 0.5659 GB, free: 14.3 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002904/0.3375, allocations: 67.8 kB / 0.5659 GB, free: 14.23 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.0007467/0.3382, allocations: 0.7453 MB / 0.5667 GB, free: 13.45 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001293/0.3383, allocations: 122.8 kB / 0.5668 GB, free: 13.3 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.023e-06/0.3383, allocations: 0 / 0.5668 GB, free: 13.3 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.755e-05/0.3384, allocations: 85.09 kB / 0.5669 GB, free: 13.2 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001187/0.3385, allocations: 3.938 kB / 0.5669 GB, free: 13.2 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003228/0.3388, allocations: 152.2 kB / 0.567 GB, free: 13 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.384e-05/0.3389, allocations: 55.36 kB / 0.5671 GB, free: 12.93 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.859e-06/0.3389, allocations: 0 / 0.5671 GB, free: 12.93 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.75e-05/0.3389, allocations: 7.438 kB / 0.5671 GB, free: 12.92 MB / 414.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3389, allocations: 0 / 0.5671 GB, free: 12.92 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02752/0.3664, allocations: 2.646 MB / 0.5697 GB, free: 10.38 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.77/11.13, allocations: 8 kB / 0.5697 GB, free: 10.37 MB / 414.1 MB " [Timeout remaining time 649] (rm -f ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Math.TestMatrices_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Math_TestMatrices_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Math_TestMatrices.fmu > ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.02373525686562] Failed to read output from testmodel.py, exit status != 0: ['time', 'result'] 11.24317321088165 11.270321888 10.930690699 Calling exit ...