Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Utilities.TestWriteFile.conf.json Using package ModelicaTest with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Utilities.TestWriteFile,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Utilities_TestWriteFile",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.009991/0.009991, allocations: 172.9 kB / 15.12 MB, free: 5.93 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 2.121/2.121, allocations: 194.5 MB / 210.3 MB, free: 8.582 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.002006/0.002006, allocations: 112.7 kB / 255.6 MB, free: 11.21 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.2553/0.2553, allocations: 40 MB / 340.8 MB, free: 11.53 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006649/0.0006649, allocations: 11.5 kB / 406.3 MB, free: 52.01 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.129/0.1297, allocations: 54.87 MB / 461.1 MB, free: 3.305 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1579/0.2877, allocations: 79.66 MB / 0.5281 GB, free: 3.539 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002771/0.288, allocations: 59.97 kB / 0.5282 GB, free: 3.48 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006876/0.2949, allocations: 1.426 MB / 0.5296 GB, free: 2.051 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.215e-06/0.295, allocations: 0 / 0.5296 GB, free: 2.051 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.35e-06/0.295, allocations: 0 / 0.5296 GB, free: 2.051 MB / 378.7 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.0003812/0.2954, allocations: 356.2 kB / 0.5299 GB, free: 1.652 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.876e-05/0.2955, allocations: 12.03 kB / 0.5299 GB, free: 1.641 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.503e-05/0.2955, allocations: 34.5 kB / 0.5299 GB, free: 1.598 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.864e-05/0.2956, allocations: 7.953 kB / 0.53 GB, free: 1.59 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001185/0.2957, allocations: 159.1 kB / 0.5301 GB, free: 1.395 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.414e-05/0.2957, allocations: 3.938 kB / 0.5301 GB, free: 1.391 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.468e-06/0.2957, allocations: 0 / 0.5301 GB, free: 1.391 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.552e-05/0.2959, allocations: 33.69 kB / 0.5301 GB, free: 1.352 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.107e-06/0.2959, allocations: 0 / 0.5301 GB, free: 1.352 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.213e-05/0.2959, allocations: 4 kB / 0.5301 GB, free: 1.348 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.424e-06/0.2959, allocations: 4 kB / 0.5301 GB, free: 1.344 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.735e-05/0.296, allocations: 7.891 kB / 0.5302 GB, free: 1.336 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001935/0.2962, allocations: 153.7 kB / 0.5303 GB, free: 1.137 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.916e-05/0.2962, allocations: 14.58 kB / 0.5303 GB, free: 1.113 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.067e-06/0.2963, allocations: 0 / 0.5303 GB, free: 1.113 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.053e-05/0.2963, allocations: 64.34 kB / 0.5304 GB, free: 1.035 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 1.774e-06/0.2964, allocations: 0 / 0.5304 GB, free: 1.035 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002137/0.2966, allocations: 71.33 kB / 0.5304 GB, free: 0.9531 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.425e-05/0.2967, allocations: 81.23 kB / 0.5305 GB, free: 0.8555 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.825e-05/0.2967, allocations: 85 kB / 0.5306 GB, free: 0.7656 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.946e-05/0.2968, allocations: 25.7 kB / 0.5306 GB, free: 0.7344 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.765e-05/0.2968, allocations: 80.14 kB / 0.5307 GB, free: 0.6523 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.667e-05/0.2968, allocations: 0 / 0.5307 GB, free: 0.6523 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.346e-06/0.2969, allocations: 0 / 0.5307 GB, free: 0.6523 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001478/0.297, allocations: 322.8 kB / 0.531 GB, free: 336 kB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.454e-05/0.2971, allocations: 4 kB / 0.531 GB, free: 332 kB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.326e-06/0.2971, allocations: 0 / 0.531 GB, free: 332 kB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.071e-05/0.2971, allocations: 29.77 kB / 0.531 GB, free: 296 kB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.2972, allocations: 4 kB / 0.531 GB, free: 292 kB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001095/0.2973, allocations: 59.34 kB / 0.5311 GB, free: 220 kB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.703e-05/0.2973, allocations: 33.7 kB / 0.5311 GB, free: 180 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.902e-05/0.2974, allocations: 3.984 kB / 0.5311 GB, free: 176 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.338e-05/0.2974, allocations: 0 / 0.5311 GB, free: 176 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.884e-06/0.2974, allocations: 0 / 0.5311 GB, free: 176 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.761e-06/0.2974, allocations: 0 / 0.5311 GB, free: 176 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.201e-05/0.2975, allocations: 0 / 0.5311 GB, free: 176 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.886e-06/0.2975, allocations: 32 / 0.5311 GB, free: 176 kB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001236/0.2976, allocations: 147.5 kB / 0.5313 GB, free: 12 kB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.28e-05/0.2977, allocations: 3.938 kB / 0.5313 GB, free: 8 kB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.886e-05/0.2977, allocations: 7.078 kB / 0.5313 GB, free: 0 / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.2977, allocations: 0 / 0.5313 GB, free: 0 / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.056e-05/0.6029, allocations: 1.484 kB / 0.5313 GB, free: 83.1 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.98e-06/0.6029, allocations: 0 / 0.5313 GB, free: 83.1 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000111/0.6031, allocations: 147.9 kB / 0.5314 GB, free: 82.91 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-06/0.6031, allocations: 0 / 0.5314 GB, free: 82.91 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.325e-06/0.6031, allocations: 0 / 0.5314 GB, free: 82.91 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.404e-06/0.6031, allocations: 2.125 kB / 0.5314 GB, free: 82.91 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.09e-05/0.6031, allocations: 1.312 kB / 0.5314 GB, free: 82.91 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.049e-06/0.6031, allocations: 7.094 kB / 0.5314 GB, free: 82.91 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.6032, allocations: 0.875 kB / 0.5314 GB, free: 82.91 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001552/0.6033, allocations: 91.31 kB / 0.5315 GB, free: 82.82 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.051e-05/0.6033, allocations: 79.36 kB / 0.5316 GB, free: 82.72 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.614e-05/0.6034, allocations: 2.594 kB / 0.5316 GB, free: 82.72 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.764e-05/0.6034, allocations: 0.75 kB / 0.5316 GB, free: 82.72 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.467e-05/0.6034, allocations: 6.406 kB / 0.5316 GB, free: 82.72 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.642e-06/0.6034, allocations: 1.156 kB / 0.5316 GB, free: 82.72 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.74e-05/0.6035, allocations: 75.28 kB / 0.5317 GB, free: 82.65 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.6035, allocations: 0 / 0.5317 GB, free: 82.65 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002917/0.6038, allocations: 20.91 kB / 0.5317 GB, free: 82.65 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006993/0.6045, allocations: 0.7385 MB / 0.5324 GB, free: 82.01 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 9.094e-05/0.6046, allocations: 59.67 kB / 0.5325 GB, free: 81.95 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.985e-06/0.6046, allocations: 0 / 0.5325 GB, free: 81.95 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 2.665e-05/0.6046, allocations: 55.78 kB / 0.5325 GB, free: 81.89 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001002/0.6048, allocations: 6.672 kB / 0.5325 GB, free: 81.88 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002976/0.6051, allocations: 119.3 kB / 0.5327 GB, free: 81.75 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001151/0.6052, allocations: 0.6749 MB / 0.5333 GB, free: 81.05 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 5.911e-06/0.6052, allocations: 3.719 kB / 0.5333 GB, free: 81.05 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.242e-05/0.6052, allocations: 7.438 kB / 0.5333 GB, free: 81.05 MB / 378.7 MB Notification: Performance of SimCode: time 8.31e-07/0.6052, allocations: 0 / 0.5333 GB, free: 81.05 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02243/0.6277, allocations: 1.15 MB / 0.5345 GB, free: 80.82 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002374/0.628, allocations: 204.8 kB / 0.5346 GB, free: 80.58 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.349/2.977, allocations: 0 / 0.5346 GB, free: 80.58 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.Utilities.TestWriteFile_res.mat does not exist to compare? outputFormat=mat