Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestMatrices.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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_4_1_0-beta_om_ModelicaTest_Math_TestMatrices",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestMatrices,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_TestMatrices",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001657/0.001657, allocations: 118.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001919/0.001919, allocations: 198 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.466/1.466, allocations: 227.4 MB / 247 MB, free: 10.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2181/0.2181, allocations: 46.13 MB / 344.4 MB, free: 11.43 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002209/0.002209, allocations: 79.86 kB / 480.9 MB, free: 4.523 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3338/0.336, allocations: 62.44 MB / 0.5306 GB, free: 13.36 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices): time 0.001523/0.3376, allocations: 490.1 kB / 0.531 GB, free: 13 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002135/0.3397, allocations: 1.615 MB / 0.5326 GB, free: 11.71 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.702e-05/0.3397, allocations: 0 / 0.5326 GB, free: 11.71 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.492e-05/0.3398, allocations: 3.938 kB / 0.5326 GB, free: 11.71 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.48e-06/0.3398, allocations: 4 kB / 0.5326 GB, free: 11.71 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.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.0008603/0.3406, allocations: 269.1 kB / 0.5329 GB, free: 11.57 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.786e-05/0.3407, allocations: 5.812 kB / 0.5329 GB, free: 11.57 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.448e-05/0.3408, allocations: 1.844 kB / 0.5329 GB, free: 11.57 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.592e-05/0.3408, allocations: 0 / 0.5329 GB, free: 11.57 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.099e-05/0.3408, allocations: 1.75 kB / 0.5329 GB, free: 11.57 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.039e-06/0.3408, allocations: 0 / 0.5329 GB, free: 11.57 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000715/0.3415, allocations: 0.4971 MB / 0.5334 GB, free: 11.32 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.338e-06/0.3416, allocations: 1.375 kB / 0.5334 GB, free: 11.32 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.898e-05/0.3416, allocations: 0 / 0.5334 GB, free: 11.32 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004378/0.342, allocations: 308.4 kB / 0.5337 GB, free: 11.16 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.342, allocations: 1.375 kB / 0.5337 GB, free: 11.16 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.342, allocations: 0 / 0.5337 GB, free: 11.16 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.365e-06/0.3421, allocations: 0 / 0.5337 GB, free: 11.16 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.0004173/0.3425, allocations: 379.8 kB / 0.534 GB, free: 10.74 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.926e-05/0.3425, allocations: 9.625 kB / 0.5341 GB, free: 10.74 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.585e-05/0.3426, allocations: 30.75 kB / 0.5341 GB, free: 10.7 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.749e-05/0.3426, allocations: 6.312 kB / 0.5341 GB, free: 10.7 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001098/0.3427, allocations: 160.4 kB / 0.5342 GB, free: 10.5 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.155e-05/0.3427, allocations: 1.75 kB / 0.5342 GB, free: 10.5 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.003e-06/0.3427, allocations: 384 / 0.5342 GB, free: 10.5 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000112/0.3429, allocations: 40.5 kB / 0.5343 GB, free: 10.46 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.324e-06/0.3429, allocations: 0 / 0.5343 GB, free: 10.46 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.115e-06/0.3429, allocations: 1.375 kB / 0.5343 GB, free: 10.46 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.969e-06/0.3429, allocations: 4 kB / 0.5343 GB, free: 10.46 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.991e-05/0.3429, allocations: 1.375 kB / 0.5343 GB, free: 10.46 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001602/0.3431, allocations: 143.1 kB / 0.5344 GB, free: 10.27 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.186e-05/0.3431, allocations: 19.95 kB / 0.5344 GB, free: 10.24 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.639e-05/0.3432, allocations: 6.234 kB / 0.5344 GB, free: 10.23 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.927e-06/0.3432, allocations: 7.922 kB / 0.5345 GB, free: 10.23 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.867e-05/0.3432, allocations: 69.42 kB / 0.5345 GB, free: 10.14 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 4.208e-06/0.3433, allocations: 5.328 kB / 0.5345 GB, free: 10.14 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.000174/0.3434, allocations: 58.09 kB / 0.5346 GB, free: 10.08 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.874e-05/0.3435, allocations: 78.39 kB / 0.5347 GB, free: 9.984 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.947e-05/0.3436, allocations: 97.81 kB / 0.5348 GB, free: 9.879 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.173e-05/0.3436, allocations: 31.03 kB / 0.5348 GB, free: 9.844 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.161e-05/0.3436, allocations: 84.08 kB / 0.5349 GB, free: 9.758 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.423e-05/0.3437, allocations: 0 / 0.5349 GB, free: 9.758 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.845e-05/0.3437, allocations: 11.84 kB / 0.5349 GB, free: 9.742 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001408/0.3438, allocations: 316.8 kB / 0.5352 GB, free: 9.426 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.798e-06/0.3439, allocations: 0 / 0.5352 GB, free: 9.426 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.222e-06/0.3439, allocations: 1.25 kB / 0.5352 GB, free: 9.426 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.825e-05/0.3439, allocations: 68.2 kB / 0.5352 GB, free: 9.348 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.3439, allocations: 0 / 0.5352 GB, free: 9.348 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.055e-05/0.344, allocations: 62.42 kB / 0.5353 GB, free: 9.281 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.894e-05/0.3441, allocations: 36.52 kB / 0.5353 GB, free: 9.246 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.679e-06/0.3441, allocations: 4.094 kB / 0.5353 GB, free: 9.242 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.247e-05/0.3441, allocations: 1.156 kB / 0.5353 GB, free: 9.242 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.22e-07/0.3441, allocations: 0 / 0.5353 GB, free: 9.242 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.849e-06/0.3441, allocations: 0 / 0.5353 GB, free: 9.242 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.68e-05/0.3441, allocations: 5.156 kB / 0.5353 GB, free: 9.238 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.623e-06/0.3441, allocations: 1.125 kB / 0.5353 GB, free: 9.238 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.0001021/0.3442, allocations: 142.1 kB / 0.5355 GB, free: 9.086 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.428e-06/0.3443, allocations: 3.938 kB / 0.5355 GB, free: 9.082 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.645e-06/0.3443, allocations: 4.062 kB / 0.5355 GB, free: 9.082 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.142e-06/0.3443, allocations: 4 kB / 0.5355 GB, free: 9.078 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.236e-06/0.3443, allocations: 1.031 kB / 0.5355 GB, free: 9.078 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.204e-06/0.3443, allocations: 0 / 0.5355 GB, free: 9.078 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000109/0.3444, allocations: 147.6 kB / 0.5356 GB, free: 8.887 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.957e-06/0.3444, allocations: 4 kB / 0.5356 GB, free: 8.883 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.007e-06/0.3444, allocations: 7.922 kB / 0.5356 GB, free: 8.875 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.136e-06/0.3444, allocations: 5.219 kB / 0.5357 GB, free: 8.871 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.009e-05/0.3444, allocations: 4.859 kB / 0.5357 GB, free: 8.867 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.92e-07/0.3445, allocations: 0 / 0.5357 GB, free: 8.867 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.3445, allocations: 0 / 0.5357 GB, free: 8.867 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001017/0.3446, allocations: 94.42 kB / 0.5357 GB, free: 8.762 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.863e-05/0.3446, allocations: 81.05 kB / 0.5358 GB, free: 8.664 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.244e-05/0.3446, allocations: 1.375 kB / 0.5358 GB, free: 8.664 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.475e-06/0.3447, allocations: 1.469 kB / 0.5358 GB, free: 8.664 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.316e-05/0.3447, allocations: 0 / 0.5358 GB, free: 8.664 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.737e-06/0.3447, allocations: 0.75 kB / 0.5358 GB, free: 8.664 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.627e-05/0.3447, allocations: 80.31 kB / 0.5359 GB, free: 8.586 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3447, allocations: 3.938 kB / 0.5359 GB, free: 8.582 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002918/0.345, allocations: 66.92 kB / 0.536 GB, free: 8.562 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.0007315/0.3458, allocations: 0.712 MB / 0.5367 GB, free: 7.883 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.102e-05/0.3459, allocations: 57.03 kB / 0.5367 GB, free: 7.82 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.3459, allocations: 0 / 0.5367 GB, free: 7.82 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.18e-05/0.3459, allocations: 58.91 kB / 0.5368 GB, free: 7.754 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001171/0.346, allocations: 9.234 kB / 0.5368 GB, free: 7.746 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003061/0.3464, allocations: 130.1 kB / 0.5369 GB, free: 7.594 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002791/0.3466, allocations: 0.6701 MB / 0.5376 GB, free: 6.898 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.911e-06/0.3467, allocations: 1.062 kB / 0.5376 GB, free: 6.898 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.27e-05/0.3467, allocations: 7.438 kB / 0.5376 GB, free: 6.891 MB / 398.1 MB Notification: Performance of SimCode: time 3.51e-07/0.3467, allocations: 1.156 kB / 0.5376 GB, free: 6.891 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02248/0.3692, allocations: 2.105 MB / 0.5396 GB, free: 5.703 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.876/8.245, allocations: 11.88 kB / 0.5396 GB, free: 5.699 MB / 398.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestMatrices.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestMatrices.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestMatrices.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestMatrices.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestMatrices_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_TestMatrices_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_TestMatrices.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestMatrices.pipe 2>&1)