Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.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.InductionMachines.IMC_Transformer,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_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.001021/0.001021, allocations: 201.8 kB / 17.08 MB, free: 5.062 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.234/1.234, allocations: 227.2 MB / 245 MB, free: 7.617 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008041/0.0008041, allocations: 92.98 kB / 297.2 MB, free: 6.203 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002042/0.0002044, allocations: 8 kB / 358 MB, free: 9.449 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1908/0.1911, allocations: 51.48 MB / 409.5 MB, free: 26.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3125/0.5036, allocations: 112.9 MB / 0.5102 GB, free: 45.83 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000188/0.5039, allocations: 89.52 kB / 0.5103 GB, free: 45.83 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1978/0.7017, allocations: 93.69 MB / 0.6018 GB, free: 14.64 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.924e-06/0.7018, allocations: 4 kB / 0.6018 GB, free: 14.64 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002411/0.702, allocations: 95.88 kB / 0.6019 GB, free: 14.55 MB / 394.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.008842/0.7109, allocations: 3.982 MB / 0.6058 GB, free: 10.5 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.025e-05/0.7109, allocations: 8.031 kB / 0.6058 GB, free: 10.49 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001479/0.7124, allocations: 0.5018 MB / 0.6063 GB, free: 9.977 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001747/0.7142, allocations: 0.557 MB / 0.6068 GB, free: 9.414 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005616/0.7198, allocations: 2.556 MB / 0.6093 GB, free: 6.809 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002098/0.72, allocations: 263.1 kB / 0.6096 GB, free: 6.551 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006437/0.7207, allocations: 359.9 kB / 0.6099 GB, free: 6.199 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007871/0.7286, allocations: 4.925 MB / 0.6147 GB, free: 1.121 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.837e-05/0.7287, allocations: 4 kB / 0.6147 GB, free: 1.117 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003437/0.729, allocations: 148 kB / 0.6149 GB, free: 0.9727 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001556/0.7292, allocations: 183 kB / 0.615 GB, free: 0.793 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00669/0.7359, allocations: 4.053 MB / 0.619 GB, free: 12.73 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02594/0.7618, allocations: 14.94 MB / 0.6336 GB, free: 13.46 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004464/0.7663, allocations: 4.231 MB / 0.6377 GB, free: 8.922 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003573/0.7667, allocations: 143 kB / 0.6378 GB, free: 8.766 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.919e-05/0.7668, allocations: 56.56 kB / 0.6379 GB, free: 8.703 MB / 426.7 MB Notification: Performance of pre-optimization done (n=201): time 4.328e-06/0.7668, allocations: 7.938 kB / 0.6379 GB, free: 8.695 MB / 426.7 MB Notification: Performance of matching and sorting (n=221): time 0.02152/0.7883, allocations: 10.22 MB / 0.6479 GB, free: 14.35 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.467e-05/0.7884, allocations: 81.3 kB / 0.648 GB, free: 14.25 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003509/0.7919, allocations: 2.205 MB / 0.6501 GB, free: 12.03 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002498/0.7922, allocations: 61.7 kB / 0.6502 GB, free: 11.96 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001163/0.7934, allocations: 1.604 MB / 0.6517 GB, free: 10.34 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006529/0.794, allocations: 0.7355 MB / 0.6525 GB, free: 9.594 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001291/0.7942, allocations: 44 kB / 0.6525 GB, free: 9.551 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001686/0.7944, allocations: 406.5 kB / 0.6529 GB, free: 9.148 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001934/0.7963, allocations: 1.301 MB / 0.6542 GB, free: 7.844 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002163/0.7985, allocations: 1.733 MB / 0.6559 GB, free: 5.945 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00222/0.8007, allocations: 1.556 MB / 0.6574 GB, free: 4.387 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.069e-05/0.8007, allocations: 4 kB / 0.6574 GB, free: 4.383 MB / 442.7 MB Notification: Performance of matching and sorting (n=291) (initialization): time 0.00728/0.808, allocations: 4.056 MB / 0.6613 GB, free: 308 kB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.296e-05/0.8081, allocations: 12 kB / 0.6613 GB, free: 296 kB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.236e-05/0.8081, allocations: 12 kB / 0.6614 GB, free: 284 kB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00192/0.81, allocations: 0.7618 MB / 0.6621 GB, free: 15.5 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00208/0.8121, allocations: 0.5266 MB / 0.6626 GB, free: 14.98 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01002/0.8222, allocations: 8.943 MB / 0.6714 GB, free: 5.629 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002472/0.8247, allocations: 120 kB / 0.6715 GB, free: 5.512 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004761/0.8252, allocations: 83.98 kB / 0.6715 GB, free: 5.43 MB / 458.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.002863/0.8281, allocations: 1.215 MB / 0.6727 GB, free: 4.207 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008305/0.8289, allocations: 272.7 kB / 0.673 GB, free: 3.938 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006757/0.8357, allocations: 3.789 MB / 0.6767 GB, free: 120 kB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.757e-05/0.8357, allocations: 20 kB / 0.6767 GB, free: 100 kB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2e-05/0.8358, allocations: 8 kB / 0.6767 GB, free: 92 kB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.363e-05/0.8358, allocations: 16.03 kB / 0.6767 GB, free: 76 kB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2399/1.076, allocations: 8.071 MB / 0.6846 GB, free: 93.15 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.104e-05/1.076, allocations: 0.9375 kB / 0.6846 GB, free: 93.15 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001612/1.077, allocations: 393.6 kB / 0.685 GB, free: 93.15 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002037/1.079, allocations: 0.7974 MB / 0.6858 GB, free: 93.11 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001735/1.08, allocations: 57.08 kB / 0.6858 GB, free: 93.11 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009592/1.089, allocations: 10.48 MB / 0.6961 GB, free: 87.96 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.819e-06/1.089, allocations: 5.688 kB / 0.6961 GB, free: 87.96 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007715/1.097, allocations: 5.831 MB / 0.7018 GB, free: 87.32 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001767/1.099, allocations: 0.649 MB / 0.7024 GB, free: 87.23 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003905/1.099, allocations: 48.78 kB / 0.7024 GB, free: 87.23 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001306/1.101, allocations: 125.4 kB / 0.7026 GB, free: 87.23 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003833/1.101, allocations: 188.9 kB / 0.7027 GB, free: 87.23 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00013/1.101, allocations: 64.33 kB / 0.7028 GB, free: 87.23 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002371/1.103, allocations: 1.706 MB / 0.7045 GB, free: 87.08 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.4e-07/1.103, allocations: 0 / 0.7045 GB, free: 87.08 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002474/1.106, allocations: 0.8312 MB / 0.7053 GB, free: 87.08 MB / 458.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.007894/1.114, allocations: 7.351 MB / 0.7125 GB, free: 85.22 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.005042/1.119, allocations: 3.945 MB / 0.7163 GB, free: 84.59 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 6.763e-06/1.119, allocations: 0 / 0.7163 GB, free: 84.59 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003182/1.122, allocations: 2.503 MB / 0.7188 GB, free: 84 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00336/1.125, allocations: 0.7438 MB / 0.7195 GB, free: 83.98 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04035/1.166, allocations: 31.98 MB / 0.7507 GB, free: 64.62 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002466/1.168, allocations: 2.841 MB / 0.7535 GB, free: 63.48 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002801/1.171, allocations: 0.6851 MB / 0.7542 GB, free: 63.42 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002022/1.173, allocations: 1.399 MB / 0.7555 GB, free: 62.29 MB / 458.7 MB Notification: Performance of SimCode: time 1.242e-06/1.173, allocations: 0 / 0.7555 GB, free: 62.29 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1065/1.28, allocations: 74.78 MB / 0.8286 GB, free: 11.2 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001406/1.28, allocations: 217.8 kB / 0.8288 GB, free: 10.96 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.818/5.098, allocations: 0 / 0.8288 GB, free: 10.96 MB / 458.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Transformer_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Transformer.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer_res.mat does not exist to compare? outputFormat=mat