Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.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.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD,fileNamePrefix="Modelica_trunk_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_trunk_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 trunk/package.mo): time 0.001295/0.001295, allocations: 198.3 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.416/1.416, allocations: 225.6 MB / 234.8 MB, free: 3.25 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009308/0.0009309, allocations: 99.55 kB / 286.7 MB, free: 5.332 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.574e-05/2.585e-05, allocations: 4 kB / 344.6 MB, free: 7.359 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1075/0.1076, allocations: 51.48 MB / 396.1 MB, free: 3.84 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4625/0.5702, allocations: 153.5 MB / 0.5367 GB, free: 4.461 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002997/0.5705, allocations: 97.12 kB / 0.5368 GB, free: 4.41 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.985/2.555, allocations: 0.5064 GB / 1.043 GB, free: 38.3 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.834e-06/2.555, allocations: 0 / 1.043 GB, free: 38.3 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.001842/2.557, allocations: 351.4 kB / 1.044 GB, free: 38.25 MB / 474.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.06254/2.62, allocations: 14.84 MB / 1.058 GB, free: 32.11 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.919e-05/2.62, allocations: 15.67 kB / 1.058 GB, free: 32.11 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04321/2.663, allocations: 7.392 MB / 1.065 GB, free: 28.82 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03486/2.698, allocations: 12.53 MB / 1.078 GB, free: 18.15 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001613/2.699, allocations: 500 kB / 1.078 GB, free: 17.66 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007719/2.707, allocations: 0.8669 MB / 1.079 GB, free: 16.8 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.5414/3.249, allocations: 20.46 MB / 1.099 GB, free: 34.43 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07594/3.325, allocations: 22.39 MB / 1.121 GB, free: 32.73 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009581/3.326, allocations: 32.28 kB / 1.121 GB, free: 32.73 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006618/3.332, allocations: 13.16 kB / 1.121 GB, free: 32.73 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001662/3.334, allocations: 1.09 MB / 1.122 GB, free: 32.69 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1827/3.517, allocations: 79.88 MB / 1.2 GB, free: 5.012 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04143/3.558, allocations: 38.45 MB / 1.237 GB, free: 4.664 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0141/3.572, allocations: 7.242 MB / 1.244 GB, free: 1.844 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04553/3.618, allocations: 18.09 MB / 1.262 GB, free: 9.793 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.009685/3.628, allocations: 5.255 MB / 1.267 GB, free: 7.688 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=717): time 1.394e-05/3.628, allocations: 0 / 1.267 GB, free: 7.688 MB / 0.5105 GB Notification: Performance of matching and sorting (n=725): time 0.5501/4.178, allocations: 31.63 MB / 1.298 GB, free: 80.63 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002581/4.178, allocations: 476 kB / 1.299 GB, free: 80.15 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01113/4.189, allocations: 4.864 MB / 1.303 GB, free: 79.79 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.001996/4.191, allocations: 29.95 kB / 1.303 GB, free: 79.76 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.008241/4.2, allocations: 6.509 MB / 1.31 GB, free: 76.44 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.003949/4.204, allocations: 2.311 MB / 1.312 GB, free: 74.93 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001227/4.205, allocations: 0 / 1.312 GB, free: 74.93 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0007025/4.206, allocations: 0.6713 MB / 1.313 GB, free: 74.61 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00858/4.214, allocations: 4.723 MB / 1.317 GB, free: 74.58 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01497/4.229, allocations: 7.53 MB / 1.325 GB, free: 71.32 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0223/4.252, allocations: 8.419 MB / 1.333 GB, free: 71.21 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001966/4.252, allocations: 25.09 kB / 1.333 GB, free: 71.21 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1154) (initialization): time 0.04798/4.3, allocations: 16.94 MB / 1.349 GB, free: 70.38 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001271/4.3, allocations: 40.16 kB / 1.349 GB, free: 70.38 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001746/4.3, allocations: 89.31 kB / 1.35 GB, free: 70.38 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007816/4.308, allocations: 2.802 MB / 1.352 GB, free: 70.3 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009324/4.317, allocations: 1.867 MB / 1.354 GB, free: 70.3 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03823/4.356, allocations: 29.64 MB / 1.383 GB, free: 57.79 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009391/4.365, allocations: 478.4 kB / 1.383 GB, free: 57.78 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003681/4.369, allocations: 403.1 kB / 1.384 GB, free: 57.71 MB / 0.5105 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,32.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.004802/4.374, allocations: 395.4 kB / 1.384 GB, free: 57.51 MB / 0.5105 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.03248/4.406, allocations: 13.77 MB / 1.398 GB, free: 52.62 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002862/4.409, allocations: 0.6606 MB / 1.398 GB, free: 52.27 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0347/4.444, allocations: 14.89 MB / 1.413 GB, free: 46.93 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.209e-05/4.444, allocations: 74.06 kB / 1.413 GB, free: 46.93 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.308e-05/4.444, allocations: 31.78 kB / 1.413 GB, free: 46.93 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000186/4.444, allocations: 40.59 kB / 1.413 GB, free: 46.93 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06109/4.505, allocations: 27.66 MB / 1.44 GB, free: 26.57 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.252e-05/4.505, allocations: 8.781 kB / 1.44 GB, free: 26.56 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00584/4.511, allocations: 1.138 MB / 1.441 GB, free: 25.66 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007089/4.518, allocations: 2.836 MB / 1.444 GB, free: 23.45 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001663/4.52, allocations: 56.52 kB / 1.444 GB, free: 23.41 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.5055/5.026, allocations: 32.15 MB / 1.475 GB, free: 70.42 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.728e-05/5.026, allocations: 8.312 kB / 1.475 GB, free: 70.42 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.07154/5.097, allocations: 22.19 MB / 1.497 GB, free: 68.2 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01039/5.108, allocations: 1.816 MB / 1.499 GB, free: 68.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005837/5.113, allocations: 24.78 kB / 1.499 GB, free: 68.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01207/5.126, allocations: 389.8 kB / 1.499 GB, free: 68.1 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00492/5.131, allocations: 0.6469 MB / 1.5 GB, free: 68.09 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002696/5.133, allocations: 207.3 kB / 1.5 GB, free: 68.09 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0201/5.154, allocations: 3.595 MB / 1.504 GB, free: 67.91 MB / 0.5105 GB Notification: Performance of sort global known variables: time 2.575e-06/5.154, allocations: 0 / 1.504 GB, free: 67.91 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.02915/5.183, allocations: 2.591 MB / 1.506 GB, free: 67.91 MB / 0.5105 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.8%) 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.06562/5.248, allocations: 24.39 MB / 1.53 GB, free: 63.98 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.02919/5.278, allocations: 12.97 MB / 1.543 GB, free: 62.93 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.997e-05/5.278, allocations: 3.469 kB / 1.543 GB, free: 62.93 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.01747/5.295, allocations: 8.143 MB / 1.551 GB, free: 61.88 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01244/5.308, allocations: 1.396 MB / 1.552 GB, free: 61.86 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0919/5.4, allocations: 28.96 MB / 1.58 GB, free: 51.69 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02538/5.425, allocations: 10.15 MB / 1.59 GB, free: 46.58 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.01379/5.439, allocations: 2.944 MB / 1.593 GB, free: 44.63 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01359/5.453, allocations: 5.633 MB / 1.598 GB, free: 39.38 MB / 0.5105 GB Notification: Performance of SimCode: time 9.21e-07/5.453, allocations: 0 / 1.598 GB, free: 39.38 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7429/6.196, allocations: 213 MB / 1.807 GB, free: 21.38 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002086/6.196, allocations: 191.4 kB / 1.807 GB, free: 21.19 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.239/15.43, allocations: 0 / 1.807 GB, free: 21.19 MB / 0.5261 GB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YD_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YD.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD_res.mat does not exist to compare? outputFormat=mat