Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YD",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YD",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001783/0.001783, allocations: 175.1 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.474/1.474, allocations: 221.4 MB / 235.5 MB, free: 2.957 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001136/0.001136, allocations: 88.09 kB / 286.5 MB, free: 232 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.882e-05/3.9e-05, allocations: 4 kB / 344.9 MB, free: 3.215 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1253/0.1254, allocations: 50.42 MB / 395.4 MB, free: 0.7578 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4804/0.6059, allocations: 153.2 MB / 0.5357 GB, free: 13.48 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003594/0.6063, allocations: 99.92 kB / 0.5358 GB, free: 13.38 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.972/2.579, allocations: 0.4891 GB / 1.025 GB, free: 9.363 MB / 458.7 MB Notification: Performance of FrontEnd: time 4.578e-06/2.579, allocations: 4 kB / 1.025 GB, free: 9.359 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.002811/2.581, allocations: 343.6 kB / 1.025 GB, free: 9.023 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4252 * Number of variables: 4252 Notification: Performance of Generate backend data structure: time 0.06945/2.651, allocations: 14.8 MB / 1.04 GB, free: 10.09 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.904e-05/2.651, allocations: 12.03 kB / 1.04 GB, free: 10.08 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.013/2.664, allocations: 2.152 MB / 1.042 GB, free: 7.918 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04565/2.71, allocations: 7.371 MB / 1.049 GB, free: 0.5195 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.9248/3.635, allocations: 12.51 MB / 1.061 GB, free: 29.37 MB / 474.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002299/3.637, allocations: 1.12 MB / 1.062 GB, free: 29.34 MB / 474.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0111/3.648, allocations: 1.47 MB / 1.064 GB, free: 29.33 MB / 474.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1083/3.756, allocations: 24.84 MB / 1.088 GB, free: 27.57 MB / 474.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001477/3.758, allocations: 29.03 kB / 1.088 GB, free: 27.56 MB / 474.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.009301/3.767, allocations: 0.6253 MB / 1.089 GB, free: 27.56 MB / 474.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001905/3.769, allocations: 1.093 MB / 1.09 GB, free: 27.52 MB / 474.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06297/3.832, allocations: 22.39 MB / 1.112 GB, free: 27.38 MB / 474.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1729/4.005, allocations: 80.59 MB / 1.19 GB, free: 2.621 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04216/4.047, allocations: 38.87 MB / 1.228 GB, free: 13.54 MB / 0.5262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01439/4.062, allocations: 7.255 MB / 1.235 GB, free: 6.977 MB / 0.5262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.8978/4.96, allocations: 17.56 MB / 1.253 GB, free: 89.24 MB / 0.5263 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01043/4.97, allocations: 5.178 MB / 1.258 GB, free: 88.94 MB / 0.5263 GB Notification: Performance of pre-optimization done (n=717): time 2.57e-05/4.97, allocations: 2.031 kB / 1.258 GB, free: 88.94 MB / 0.5263 GB Notification: Performance of matching and sorting (n=725): time 0.06206/5.032, allocations: 25.25 MB / 1.282 GB, free: 84.79 MB / 0.5263 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002715/5.033, allocations: 477.3 kB / 1.283 GB, free: 84.31 MB / 0.5263 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01544/5.048, allocations: 5.58 MB / 1.288 GB, free: 83.82 MB / 0.5263 GB Notification: Performance of collectPreVariables (initialization): time 0.001751/5.05, allocations: 149.8 kB / 1.288 GB, free: 83.79 MB / 0.5263 GB Notification: Performance of collectInitialEqns (initialization): time 0.007528/5.057, allocations: 6.499 MB / 1.295 GB, free: 80.52 MB / 0.5263 GB Notification: Performance of collectInitialBindings (initialization): time 0.004025/5.062, allocations: 2.411 MB / 1.297 GB, free: 79.01 MB / 0.5263 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002161/5.064, allocations: 178.7 kB / 1.297 GB, free: 79.01 MB / 0.5263 GB Notification: Performance of setup shared object (initialization): time 0.0009885/5.065, allocations: 0.672 MB / 1.298 GB, free: 78.68 MB / 0.5263 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01064/5.075, allocations: 4.634 MB / 1.302 GB, free: 78.66 MB / 0.5263 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01336/5.089, allocations: 7.502 MB / 1.31 GB, free: 75.38 MB / 0.5263 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01158/5.1, allocations: 6.133 MB / 1.316 GB, free: 75.24 MB / 0.5263 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001828/5.101, allocations: 23.06 kB / 1.316 GB, free: 75.24 MB / 0.5263 GB Notification: Performance of matching and sorting (n=1154) (initialization): time 0.03776/5.138, allocations: 15.19 MB / 1.331 GB, free: 74.39 MB / 0.5263 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002861/5.139, allocations: 43.25 kB / 1.331 GB, free: 74.39 MB / 0.5263 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002848/5.139, allocations: 88.5 kB / 1.331 GB, free: 74.39 MB / 0.5263 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008609/5.148, allocations: 2.883 MB / 1.333 GB, free: 74.31 MB / 0.5263 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009012/5.157, allocations: 1.808 MB / 1.335 GB, free: 74.31 MB / 0.5263 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04017/5.197, allocations: 30.56 MB / 1.365 GB, free: 58.26 MB / 0.5263 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01015/5.207, allocations: 0.5869 MB / 1.366 GB, free: 58.1 MB / 0.5263 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002733/5.21, allocations: 403.2 kB / 1.366 GB, free: 58.03 MB / 0.5263 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 390 * Number of states: 0 () * Number of discrete variables: 48 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y,switchYDQS.idealCloser.control[1],switchYDQS.idealCloser.control[2],switchYDQS.idealCloser.control[3],switchYDQS.idealOpener.control[1],switchYDQS.idealOpener.control[2],switchYDQS.idealOpener.control[3],$PRE.switchYDQS.logicalDelay[1].tSwitch,switchYDQS.logicalDelay[1].tSwitch,$PRE.switchYDQS.logicalDelay[2].tSwitch,switchYDQS.logicalDelay[2].tSwitch,$PRE.switchYDQS.logicalDelay[3].tSwitch,switchYDQS.logicalDelay[3].tSwitch,booleanStepYDQS[1].y,booleanStepYDQS[2].y,booleanStepYDQS[3].y,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,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 (966): * Single equations (assignments): 959 * 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: 6 * 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: 6 {(1,100.0%) 1,(24,31.8%) 108,(1,100.0%) 8,(9,33.3%) 25,(1,100.0%) 1,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004362/5.214, allocations: 0.6733 MB / 1.367 GB, free: 57.59 MB / 0.5263 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002926/5.217, allocations: 0.703 MB / 1.367 GB, free: 57.23 MB / 0.5263 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02732/5.245, allocations: 13.14 MB / 1.38 GB, free: 51.71 MB / 0.5263 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.058e-05/5.245, allocations: 72 kB / 1.38 GB, free: 51.64 MB / 0.5263 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001113/5.245, allocations: 35.84 kB / 1.38 GB, free: 51.61 MB / 0.5263 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001828/5.245, allocations: 41.12 kB / 1.38 GB, free: 51.61 MB / 0.5263 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07681/5.322, allocations: 27.53 MB / 1.407 GB, free: 29.09 MB / 0.5263 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.969e-05/5.322, allocations: 4 kB / 1.407 GB, free: 29.09 MB / 0.5263 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006256/5.328, allocations: 1.064 MB / 1.408 GB, free: 28.27 MB / 0.5263 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00844/5.337, allocations: 2.94 MB / 1.411 GB, free: 25.96 MB / 0.5263 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001921/5.339, allocations: 160.2 kB / 1.411 GB, free: 25.82 MB / 0.5263 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.5626/5.901, allocations: 33.06 MB / 1.444 GB, free: 76.79 MB / 0.5263 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.195e-05/5.901, allocations: 10.09 kB / 1.444 GB, free: 76.79 MB / 0.5263 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04401/5.945, allocations: 20.04 MB / 1.463 GB, free: 74.46 MB / 0.5263 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007594/5.953, allocations: 1.809 MB / 1.465 GB, free: 74.36 MB / 0.5263 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003711/5.957, allocations: 146.6 kB / 1.465 GB, free: 74.36 MB / 0.5263 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007882/5.965, allocations: 440.5 kB / 1.465 GB, free: 74.36 MB / 0.5263 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003004/5.968, allocations: 0.6452 MB / 1.466 GB, free: 74.34 MB / 0.5263 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008109/5.969, allocations: 204.1 kB / 1.466 GB, free: 74.34 MB / 0.5263 GB Notification: Performance of sorting global known variables: time 0.00917/5.978, allocations: 4.215 MB / 1.47 GB, free: 74.1 MB / 0.5263 GB Notification: Performance of sort global known variables: time 7.31e-07/5.978, allocations: 0 / 1.47 GB, free: 74.1 MB / 0.5263 GB Notification: Performance of remove unused functions: time 0.01635/5.994, allocations: 2.922 MB / 1.473 GB, free: 74.1 MB / 0.5263 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 10 (imcQS.rotorCage.port_p.reference.gamma,loadInertiaQS.w,quadraticLoadTorqueQS.phi,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.stator.zeroInductor.i0,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,loadInertia.w,quadraticLoadTorque.phi) * Number of discrete variables: 42 (booleanStepYDQS[3].y,booleanStepYDQS[2].y,booleanStepYDQS[1].y,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y,switchYDQS.idealCloser.control[1],switchYDQS.idealCloser.control[2],switchYDQS.idealCloser.control[3],switchYDQS.idealOpener.control[1],switchYDQS.idealOpener.control[2],switchYDQS.idealOpener.control[3],switchYDQS.logicalDelay[1].tSwitch,switchYDQS.logicalDelay[2].tSwitch,switchYDQS.logicalDelay[3].tSwitch,booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,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 (576): * Single equations (assignments): 562 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 8 {(1,100.0%) 1,(24,31.9%) 108,(1,100.0%) 1,(1,100.0%) 8,(9,33.3%) 25,(1,100.0%) 8,(1,100.0%) 13,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.03511/6.029, allocations: 22.44 MB / 1.495 GB, free: 70.14 MB / 0.5263 GB Notification: Performance of simCode: created initialization part: time 0.02506/6.054, allocations: 13.02 MB / 1.508 GB, free: 68.98 MB / 0.5263 GB Notification: Performance of simCode: created event and clocks part: time 1.413e-05/6.055, allocations: 4 kB / 1.508 GB, free: 68.98 MB / 0.5263 GB Notification: Performance of simCode: created simulation system equations: time 0.01789/6.072, allocations: 8.153 MB / 1.516 GB, free: 67.85 MB / 0.5263 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01328/6.086, allocations: 1.757 MB / 1.518 GB, free: 67.83 MB / 0.5263 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08244/6.168, allocations: 29.12 MB / 1.546 GB, free: 58.42 MB / 0.5263 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0222/6.191, allocations: 10.13 MB / 1.556 GB, free: 52.74 MB / 0.5263 GB Notification: Performance of simCode: alias equations: time 0.01191/6.202, allocations: 2.973 MB / 1.559 GB, free: 50.79 MB / 0.5263 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01224/6.215, allocations: 5.682 MB / 1.564 GB, free: 45.49 MB / 0.5263 GB Notification: Performance of SimCode: time 1.062e-06/6.215, allocations: 0 / 1.564 GB, free: 45.49 MB / 0.5263 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.74/6.955, allocations: 230.8 MB / 1.79 GB, free: 13.52 MB / 0.5419 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002489/6.955, allocations: 226.3 kB / 1.79 GB, free: 13.3 MB / 0.5419 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.27/18.22, allocations: 5.125 kB / 1.79 GB, free: 13.29 MB / 0.5419 GB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YD_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YD.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD_res.mat does not exist to compare? outputFormat=mat