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.0009417/0.0009417, allocations: 176.2 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.415/1.415, allocations: 221.5 MB / 230.3 MB, free: 7.566 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.0008205/0.0008204, allocations: 91.73 kB / 281.2 MB, free: 5.332 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.438e-05/2.445e-05, allocations: 4 kB / 337.9 MB, free: 9.145 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1277/0.1278, allocations: 50.42 MB / 388.4 MB, free: 6.691 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.46/0.5879, allocations: 152.6 MB / 0.5282 GB, free: 5.527 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002821/0.5882, allocations: 99.94 kB / 0.5283 GB, free: 5.43 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.803/2.391, allocations: 495.4 MB / 1.012 GB, free: 31.26 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.535e-06/2.391, allocations: 0 / 1.012 GB, free: 31.26 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.001276/2.392, allocations: 355.5 kB / 1.012 GB, free: 30.91 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.05567/2.448, allocations: 14.78 MB / 1.027 GB, free: 16.01 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.266e-05/2.448, allocations: 11.98 kB / 1.027 GB, free: 16 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04312/2.491, allocations: 7.363 MB / 1.034 GB, free: 8.609 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03952/2.531, allocations: 12.51 MB / 1.046 GB, free: 12 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001233/2.532, allocations: 500 kB / 1.047 GB, free: 11.52 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008152/2.54, allocations: 0.867 MB / 1.048 GB, free: 10.65 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.5116/3.052, allocations: 20.45 MB / 1.068 GB, free: 39.4 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08934/3.141, allocations: 22.4 MB / 1.09 GB, free: 37.7 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001012/3.142, allocations: 26.77 kB / 1.09 GB, free: 37.7 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0077/3.15, allocations: 12.94 kB / 1.09 GB, free: 37.7 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002019/3.152, allocations: 1.096 MB / 1.091 GB, free: 37.67 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1628/3.315, allocations: 79.21 MB / 1.168 GB, free: 10.22 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03703/3.352, allocations: 38.45 MB / 1.206 GB, free: 9.891 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01359/3.366, allocations: 7.242 MB / 1.213 GB, free: 7.07 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05148/3.417, allocations: 17.84 MB / 1.23 GB, free: 15.41 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01273/3.43, allocations: 5.263 MB / 1.235 GB, free: 13.3 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=717): time 2.127e-05/3.43, allocations: 0 / 1.235 GB, free: 13.3 MB / 0.5105 GB Notification: Performance of matching and sorting (n=725): time 0.5308/3.961, allocations: 30.11 MB / 1.265 GB, free: 82.7 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003264/3.961, allocations: 472.3 kB / 1.265 GB, free: 82.22 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01423/3.975, allocations: 4.848 MB / 1.27 GB, free: 81.86 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.001671/3.977, allocations: 33.81 kB / 1.27 GB, free: 81.83 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.008382/3.986, allocations: 6.502 MB / 1.276 GB, free: 78.55 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.004096/3.99, allocations: 2.309 MB / 1.278 GB, free: 77.05 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009171/3.991, allocations: 1.312 kB / 1.278 GB, free: 77.05 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0006678/3.991, allocations: 0.6713 MB / 1.279 GB, free: 76.72 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007702/3.999, allocations: 4.73 MB / 1.284 GB, free: 76.7 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01203/4.011, allocations: 7.538 MB / 1.291 GB, free: 73.43 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01577/4.027, allocations: 7.637 MB / 1.298 GB, free: 73.32 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002025/4.027, allocations: 26.03 kB / 1.299 GB, free: 73.32 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1154) (initialization): time 0.0425/4.07, allocations: 16.17 MB / 1.314 GB, free: 72.48 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003177/4.07, allocations: 40.62 kB / 1.314 GB, free: 72.48 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003491/4.07, allocations: 88.31 kB / 1.314 GB, free: 72.48 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009127/4.08, allocations: 2.794 MB / 1.317 GB, free: 72.41 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009433/4.089, allocations: 1.868 MB / 1.319 GB, free: 72.41 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.045/4.134, allocations: 29.63 MB / 1.348 GB, free: 64.09 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01063/4.145, allocations: 476.8 kB / 1.348 GB, free: 64.07 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003337/4.148, allocations: 401 kB / 1.349 GB, free: 64 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.005163/4.153, allocations: 400.3 kB / 1.349 GB, free: 63.8 MB / 0.5105 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.03436/4.188, allocations: 13.04 MB / 1.362 GB, free: 58.93 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00372/4.192, allocations: 0.6596 MB / 1.363 GB, free: 58.58 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03655/4.228, allocations: 14.25 MB / 1.376 GB, free: 53.25 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001107/4.228, allocations: 73.69 kB / 1.376 GB, free: 53.25 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001198/4.228, allocations: 30.25 kB / 1.377 GB, free: 53.25 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002457/4.229, allocations: 44.44 kB / 1.377 GB, free: 53.25 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07218/4.301, allocations: 27.01 MB / 1.403 GB, free: 38.69 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.648e-05/4.301, allocations: 11.22 kB / 1.403 GB, free: 38.68 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006203/4.307, allocations: 1.13 MB / 1.404 GB, free: 37.83 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008296/4.316, allocations: 2.834 MB / 1.407 GB, free: 35.62 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001922/4.318, allocations: 61.03 kB / 1.407 GB, free: 35.57 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.5222/4.84, allocations: 32.24 MB / 1.438 GB, free: 74.28 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.225e-05/4.84, allocations: 14.38 kB / 1.438 GB, free: 74.28 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05114/4.891, allocations: 21.55 MB / 1.459 GB, free: 72.06 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007867/4.899, allocations: 1.816 MB / 1.461 GB, free: 71.96 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004082/4.903, allocations: 25.31 kB / 1.461 GB, free: 71.96 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008129/4.911, allocations: 389.6 kB / 1.462 GB, free: 71.96 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003421/4.915, allocations: 0.6415 MB / 1.462 GB, free: 71.95 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001778/4.916, allocations: 209 kB / 1.462 GB, free: 71.95 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01076/4.927, allocations: 3.579 MB / 1.466 GB, free: 71.77 MB / 0.5105 GB Notification: Performance of sort global known variables: time 4.3e-07/4.927, allocations: 0 / 1.466 GB, free: 71.77 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.02007/4.947, allocations: 2.582 MB / 1.468 GB, free: 71.77 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.04608/4.993, allocations: 23.73 MB / 1.492 GB, free: 67.85 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.02742/5.021, allocations: 12.96 MB / 1.504 GB, free: 66.8 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.863e-05/5.021, allocations: 5.812 kB / 1.504 GB, free: 66.8 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.01516/5.036, allocations: 8.139 MB / 1.512 GB, free: 65.75 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01197/5.048, allocations: 1.389 MB / 1.514 GB, free: 65.73 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08844/5.137, allocations: 28.79 MB / 1.542 GB, free: 59.86 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0244/5.161, allocations: 10.14 MB / 1.552 GB, free: 56.44 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.0115/5.173, allocations: 2.949 MB / 1.554 GB, free: 56.04 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01036/5.183, allocations: 5.695 MB / 1.56 GB, free: 50.72 MB / 0.5105 GB Notification: Performance of SimCode: time 1.302e-06/5.183, allocations: 0 / 1.56 GB, free: 50.72 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7354/5.919, allocations: 212.5 MB / 1.768 GB, free: 16.09 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001911/5.919, allocations: 199.6 kB / 1.768 GB, free: 15.89 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.542/15.46, allocations: 0 / 1.768 GB, free: 15.89 MB / 0.5105 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