Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.conf.json 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/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_Transformers_IMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_Transformers_IMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001287/0.001287, allocations: 198.9 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.268/1.268, allocations: 227.2 MB / 245 MB, free: 5.973 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009056/0.0009056, allocations: 106.3 kB / 297.3 MB, free: 5.992 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002512/0.0002513, allocations: 8 kB / 358 MB, free: 9.242 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2303/0.2305, allocations: 51.48 MB / 409.5 MB, free: 26.69 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3017/0.5323, allocations: 113 MB / 0.5103 GB, free: 97.9 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002917/0.5326, allocations: 90.12 kB / 0.5104 GB, free: 97.9 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1939/0.7266, allocations: 93.83 MB / 0.602 GB, free: 8.336 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.794e-06/0.7266, allocations: 0 / 0.602 GB, free: 8.336 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002186/0.7268, allocations: 91.94 kB / 0.6021 GB, free: 8.246 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: 934 * Number of variables: 934 Notification: Performance of Generate backend data structure: time 0.008053/0.7349, allocations: 3.99 MB / 0.606 GB, free: 4.188 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.017e-05/0.735, allocations: 8.031 kB / 0.606 GB, free: 4.18 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00126/0.7362, allocations: 0.5018 MB / 0.6065 GB, free: 3.668 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001789/0.738, allocations: 0.5453 MB / 0.607 GB, free: 3.117 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005313/0.7433, allocations: 2.564 MB / 0.6095 GB, free: 0.5039 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001598/0.7435, allocations: 267.1 kB / 0.6098 GB, free: 248 kB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007747/0.7443, allocations: 351.9 kB / 0.6101 GB, free: 15.89 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008973/0.7533, allocations: 4.925 MB / 0.6149 GB, free: 10.82 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.557e-05/0.7534, allocations: 11.91 kB / 0.6149 GB, free: 10.81 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000374/0.7538, allocations: 156 kB / 0.6151 GB, free: 10.66 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001707/0.754, allocations: 179 kB / 0.6153 GB, free: 10.48 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007309/0.7613, allocations: 4.053 MB / 0.6192 GB, free: 6.422 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02445/0.7858, allocations: 14.94 MB / 0.6338 GB, free: 7.152 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00446/0.7903, allocations: 4.223 MB / 0.6379 GB, free: 2.621 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003271/0.7906, allocations: 155 kB / 0.6381 GB, free: 2.453 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.037e-05/0.7907, allocations: 56.56 kB / 0.6381 GB, free: 2.391 MB / 410.7 MB Notification: Performance of pre-optimization done (n=201): time 3.457e-06/0.7907, allocations: 0 / 0.6381 GB, free: 2.391 MB / 410.7 MB Notification: Performance of matching and sorting (n=221): time 0.01962/0.8103, allocations: 10.22 MB / 0.6481 GB, free: 8.047 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.03e-05/0.8104, allocations: 77.36 kB / 0.6482 GB, free: 7.957 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003543/0.814, allocations: 2.209 MB / 0.6503 GB, free: 5.73 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002388/0.8142, allocations: 69.7 kB / 0.6504 GB, free: 5.656 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001157/0.8154, allocations: 1.604 MB / 0.652 GB, free: 4.031 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006225/0.816, allocations: 0.7316 MB / 0.6527 GB, free: 3.289 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001398/0.8162, allocations: 44 kB / 0.6527 GB, free: 3.246 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002219/0.8164, allocations: 398.5 kB / 0.6531 GB, free: 2.852 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001977/0.8184, allocations: 1.308 MB / 0.6544 GB, free: 1.539 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002245/0.8206, allocations: 1.737 MB / 0.6561 GB, free: 15.64 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002202/0.8228, allocations: 1.552 MB / 0.6576 GB, free: 14.08 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.273e-06/0.8229, allocations: 4 kB / 0.6576 GB, free: 14.08 MB / 442.7 MB Notification: Performance of matching and sorting (n=291) (initialization): time 0.006902/0.8298, allocations: 4.056 MB / 0.6616 GB, free: 9.996 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.062e-05/0.8298, allocations: 12 kB / 0.6616 GB, free: 9.984 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.37e-05/0.8299, allocations: 8 kB / 0.6616 GB, free: 9.977 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001908/0.8318, allocations: 0.7623 MB / 0.6623 GB, free: 9.199 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00228/0.8341, allocations: 0.5266 MB / 0.6628 GB, free: 8.672 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2048/1.039, allocations: 8.943 MB / 0.6716 GB, free: 80.14 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003042/1.042, allocations: 121.1 kB / 0.6717 GB, free: 80.14 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003228/1.042, allocations: 89.39 kB / 0.6718 GB, free: 80.14 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * Number of states: 0 () * Number of discrete variables: 6 (booleanStep1[1].y,booleanStep1[2].y,booleanStep1[3].y,booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (248): * Single equations (assignments): 243 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 12,(1,100.0%) 1,(3,88.9%) 25} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003105/1.045, allocations: 1.216 MB / 0.673 GB, free: 80.02 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007644/1.046, allocations: 277.2 kB / 0.6732 GB, free: 80.02 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007786/1.054, allocations: 3.777 MB / 0.6769 GB, free: 79.88 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.39e-05/1.054, allocations: 18.62 kB / 0.6769 GB, free: 79.88 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.585e-05/1.054, allocations: 6.875 kB / 0.6769 GB, free: 79.88 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.103e-05/1.054, allocations: 11.86 kB / 0.677 GB, free: 79.88 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01319/1.067, allocations: 8.07 MB / 0.6848 GB, free: 79.28 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.646e-06/1.067, allocations: 3.906 kB / 0.6848 GB, free: 79.28 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001621/1.069, allocations: 403.4 kB / 0.6852 GB, free: 79.28 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001861/1.071, allocations: 0.796 MB / 0.686 GB, free: 79.24 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001501/1.071, allocations: 59.06 kB / 0.6861 GB, free: 79.24 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009007/1.08, allocations: 10.47 MB / 0.6963 GB, free: 74.09 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.901e-06/1.08, allocations: 11.77 kB / 0.6963 GB, free: 74.08 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007538/1.088, allocations: 5.833 MB / 0.702 GB, free: 73.45 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001564/1.089, allocations: 0.6415 MB / 0.7026 GB, free: 73.28 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004405/1.09, allocations: 54.75 kB / 0.7027 GB, free: 73.28 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001429/1.091, allocations: 124.8 kB / 0.7028 GB, free: 73.28 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003816/1.091, allocations: 185.4 kB / 0.703 GB, free: 73.28 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000136/1.092, allocations: 63.75 kB / 0.703 GB, free: 73.28 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002387/1.094, allocations: 1.705 MB / 0.7047 GB, free: 73.13 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.2e-07/1.094, allocations: 5.406 kB / 0.7047 GB, free: 73.13 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002646/1.097, allocations: 0.8355 MB / 0.7055 GB, free: 73.13 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 9 (aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],transformer.l1sigma.inductor[2].i,transformer.l1sigma.inductor[3].i,loadInertia.w,quadraticLoadTorque.phi) * Number of discrete variables: 6 (booleanStep1[1].y,booleanStep1[2].y,booleanStep1[3].y,booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (178): * Single equations (assignments): 173 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 12,(1,100.0%) 1,(2,100.0%) 26,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007701/1.104, allocations: 7.352 MB / 0.7127 GB, free: 71.18 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004931/1.109, allocations: 3.937 MB / 0.7165 GB, free: 69.58 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.833e-06/1.109, allocations: 3.656 kB / 0.7165 GB, free: 69.58 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003259/1.113, allocations: 2.508 MB / 0.719 GB, free: 68.39 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00345/1.116, allocations: 0.741 MB / 0.7197 GB, free: 68.21 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03205/1.148, allocations: 31.97 MB / 0.7509 GB, free: 47.59 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001986/1.15, allocations: 2.846 MB / 0.7537 GB, free: 46.45 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002107/1.152, allocations: 0.6777 MB / 0.7544 GB, free: 46.39 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001572/1.154, allocations: 1.398 MB / 0.7557 GB, free: 45.25 MB / 442.7 MB Notification: Performance of SimCode: time 9.62e-07/1.154, allocations: 4 kB / 0.7557 GB, free: 45.25 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09217/1.246, allocations: 74.78 MB / 0.8288 GB, free: 4.129 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001958/1.246, allocations: 219.3 kB / 0.829 GB, free: 3.891 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.825/5.071, allocations: 0 / 0.829 GB, free: 3.891 MB / 458.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_Transformers_IMC_Transformer_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_Transformers_IMC_Transformer.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer_res.mat does not exist to compare? outputFormat=mat