Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.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_YD,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_YD",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_YD",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001078/0.001078, allocations: 195.1 kB / 14.16 MB, free: 1.152 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.391/1.391, allocations: 225.4 MB / 240.1 MB, free: 15.08 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001068/0.001068, allocations: 95.7 kB / 292.1 MB, free: 5.926 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.968e-05/3.995e-05, allocations: 7.984 kB / 350.7 MB, free: 2.41 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.121/0.1211, allocations: 51.48 MB / 402.1 MB, free: 14.88 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3826/0.5037, allocations: 106.2 MB / 0.4964 GB, free: 15.52 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002662/0.5041, allocations: 85.33 kB / 0.4965 GB, free: 15.47 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1401/0.6442, allocations: 53.64 MB / 0.5489 GB, free: 10.91 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.6442, allocations: 0 / 0.5489 GB, free: 10.91 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003132/0.6445, allocations: 67.94 kB / 0.549 GB, free: 10.84 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 658 * Number of variables: 658 Notification: Performance of Generate backend data structure: time 0.008052/0.6526, allocations: 2.738 MB / 0.5516 GB, free: 8.051 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.413e-05/0.6527, allocations: 15.97 kB / 0.5517 GB, free: 8.035 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001171/0.6539, allocations: 362.8 kB / 0.552 GB, free: 7.672 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001715/0.6556, allocations: 396 kB / 0.5524 GB, free: 7.281 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003886/0.6595, allocations: 1.887 MB / 0.5542 GB, free: 5.34 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001669/0.6597, allocations: 205 kB / 0.5544 GB, free: 5.137 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004228/0.6601, allocations: 251.9 kB / 0.5547 GB, free: 4.891 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005656/0.6658, allocations: 3.413 MB / 0.558 GB, free: 1.32 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.902e-05/0.6659, allocations: 4 kB / 0.558 GB, free: 1.316 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002523/0.6661, allocations: 111.9 kB / 0.5581 GB, free: 1.207 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001131/0.6662, allocations: 100.9 kB / 0.5582 GB, free: 1.105 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004827/0.6711, allocations: 2.846 MB / 0.561 GB, free: 14.25 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01797/0.6891, allocations: 10.93 MB / 0.5717 GB, free: 3.035 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2925/0.9816, allocations: 3.061 MB / 0.5746 GB, free: 87.14 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003618/0.9853, allocations: 1.253 MB / 0.5759 GB, free: 87.13 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004412/0.9858, allocations: 137.6 kB / 0.576 GB, free: 87.04 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002073/0.9878, allocations: 1.115 MB / 0.5771 GB, free: 86.93 MB / 442.7 MB Notification: Performance of pre-optimization done (n=159): time 4.439e-06/0.9879, allocations: 3.312 kB / 0.5771 GB, free: 86.93 MB / 442.7 MB Notification: Performance of matching and sorting (n=175): time 0.01416/1.002, allocations: 6.725 MB / 0.5837 GB, free: 86.27 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.99e-05/1.002, allocations: 184.3 kB / 0.5838 GB, free: 86.08 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00266/1.005, allocations: 1.592 MB / 0.5854 GB, free: 85.91 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002273/1.005, allocations: 65.19 kB / 0.5855 GB, free: 85.88 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001328/1.006, allocations: 1.172 MB / 0.5866 GB, free: 85.52 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006253/1.007, allocations: 0.5646 MB / 0.5872 GB, free: 85.23 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.665e-05/1.007, allocations: 33.62 kB / 0.5872 GB, free: 85.23 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001454/1.007, allocations: 376.8 kB / 0.5875 GB, free: 84.92 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001343/1.009, allocations: 0.9508 MB / 0.5885 GB, free: 84.92 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001607/1.01, allocations: 1.315 MB / 0.5898 GB, free: 84.55 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001558/1.012, allocations: 1.112 MB / 0.5908 GB, free: 84.53 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.767e-06/1.012, allocations: 7.078 kB / 0.5908 GB, free: 84.53 MB / 442.7 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.005268/1.017, allocations: 3.18 MB / 0.594 GB, free: 84.29 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.028e-05/1.017, allocations: 6.312 kB / 0.594 GB, free: 84.29 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.023e-05/1.017, allocations: 9.406 kB / 0.594 GB, free: 84.29 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001828/1.019, allocations: 0.8718 MB / 0.5948 GB, free: 84.25 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001196/1.02, allocations: 336.9 kB / 0.5951 GB, free: 84.25 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009434/1.03, allocations: 9.528 MB / 0.6044 GB, free: 80.23 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001893/1.032, allocations: 141.1 kB / 0.6046 GB, free: 80.23 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000184/1.032, allocations: 71 kB / 0.6046 GB, free: 80.23 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 24 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,switchYD.idealCloser.control[1],switchYD.idealCloser.control[2],switchYD.idealCloser.control[3],switchYD.idealOpener.control[1],switchYD.idealOpener.control[2],switchYD.idealOpener.control[3],$PRE.switchYD.logicalDelay[1].tSwitch,switchYD.logicalDelay[1].tSwitch,$PRE.switchYD.logicalDelay[2].tSwitch,switchYD.logicalDelay[2].tSwitch,$PRE.switchYD.logicalDelay[3].tSwitch,switchYD.logicalDelay[3].tSwitch,booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (179): * Single equations (assignments): 174 * 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,(9,33.3%) 25,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003836/1.032, allocations: 223 kB / 0.6049 GB, free: 80.11 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003253/1.033, allocations: 212.2 kB / 0.6051 GB, free: 80.01 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005315/1.038, allocations: 3.039 MB / 0.608 GB, free: 79.84 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.543e-05/1.038, allocations: 21.3 kB / 0.608 GB, free: 79.84 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.886e-05/1.038, allocations: 10.84 kB / 0.6081 GB, free: 79.84 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.938e-05/1.038, allocations: 7.453 kB / 0.6081 GB, free: 79.84 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01236/1.05, allocations: 6.191 MB / 0.6141 GB, free: 77.92 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.474e-05/1.05, allocations: 2.875 kB / 0.6141 GB, free: 77.92 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001054/1.052, allocations: 223.9 kB / 0.6143 GB, free: 77.91 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002554/1.054, allocations: 0.931 MB / 0.6152 GB, free: 77.64 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001831/1.054, allocations: 42.02 kB / 0.6153 GB, free: 77.62 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01243/1.067, allocations: 11.02 MB / 0.626 GB, free: 70.02 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.909e-06/1.067, allocations: 8.484 kB / 0.6261 GB, free: 70.02 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008042/1.075, allocations: 4.571 MB / 0.6305 GB, free: 68.02 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001553/1.076, allocations: 0.4973 MB / 0.631 GB, free: 67.71 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003153/1.077, allocations: 40.84 kB / 0.631 GB, free: 67.68 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001027/1.078, allocations: 121 kB / 0.6312 GB, free: 67.66 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005008/1.078, allocations: 195.5 kB / 0.6313 GB, free: 67.63 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001062/1.078, allocations: 54.27 kB / 0.6314 GB, free: 67.62 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001734/1.08, allocations: 1.218 MB / 0.6326 GB, free: 67.15 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.7e-07/1.08, allocations: 0 / 0.6326 GB, free: 67.15 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002365/1.083, allocations: 0.663 MB / 0.6332 GB, free: 67.09 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 7 (aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],loadInertia.w,quadraticLoadTorque.phi) * Number of discrete variables: 21 (booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,switchYD.idealCloser.control[1],switchYD.idealCloser.control[2],switchYD.idealCloser.control[3],switchYD.idealOpener.control[1],switchYD.idealOpener.control[2],switchYD.idealOpener.control[3],switchYD.logicalDelay[1].tSwitch,switchYD.logicalDelay[2].tSwitch,switchYD.logicalDelay[3].tSwitch) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (126): * Single equations (assignments): 118 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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,(9,33.3%) 25,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006188/1.089, allocations: 5.945 MB / 0.639 GB, free: 63.96 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004298/1.093, allocations: 3.14 MB / 0.6421 GB, free: 62.51 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.211e-06/1.093, allocations: 3.125 kB / 0.6421 GB, free: 62.51 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002865/1.096, allocations: 2.207 MB / 0.6443 GB, free: 61.36 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002632/1.099, allocations: 0.5431 MB / 0.6448 GB, free: 61.23 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008674/1.107, allocations: 5.463 MB / 0.6501 GB, free: 59.05 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00165/1.109, allocations: 2.232 MB / 0.6523 GB, free: 58.05 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001472/1.11, allocations: 445.4 kB / 0.6527 GB, free: 58.01 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001188/1.112, allocations: 0.9919 MB / 0.6537 GB, free: 57.21 MB / 442.7 MB Notification: Performance of SimCode: time 2.054e-06/1.112, allocations: 4 kB / 0.6537 GB, free: 57.2 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09323/1.205, allocations: 58.54 MB / 0.7109 GB, free: 21.31 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000157/1.205, allocations: 193.3 kB / 0.711 GB, free: 21.08 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.635/4.84, allocations: 0 / 0.711 GB, free: 21.08 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_YD_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_YD.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD_res.mat does not exist to compare? outputFormat=mat