Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.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.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YD",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_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.001009/0.001009, allocations: 193.4 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.359/1.359, allocations: 225.6 MB / 234.8 MB, free: 3.246 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009989/0.000999, allocations: 99.05 kB / 286.7 MB, free: 5.293 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.966e-05/1.967e-05, allocations: 4 kB / 343.8 MB, free: 8.172 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1085/0.1085, allocations: 51.48 MB / 395.3 MB, free: 4.652 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3901/0.4987, allocations: 112 MB / 0.4954 GB, free: 13.41 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00025/0.499, allocations: 97.97 kB / 0.4955 GB, free: 13.36 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5049/1.004, allocations: 94.83 MB / 0.5881 GB, free: 69.69 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.613e-06/1.004, allocations: 3.031 kB / 0.5881 GB, free: 69.69 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0003645/1.004, allocations: 103.7 kB / 0.5882 GB, free: 69.68 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1011 * Number of variables: 1011 Notification: Performance of Generate backend data structure: time 0.01134/1.016, allocations: 3.974 MB / 0.5921 GB, free: 68.29 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.87e-05/1.016, allocations: 9.438 kB / 0.5921 GB, free: 68.29 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005204/1.021, allocations: 0.8589 MB / 0.5929 GB, free: 68.05 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01095/1.032, allocations: 3.843 MB / 0.5967 GB, free: 67.48 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003379/1.032, allocations: 134.8 kB / 0.5968 GB, free: 67.48 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00179/1.034, allocations: 231.7 kB / 0.597 GB, free: 67.48 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009233/1.043, allocations: 4.111 MB / 0.601 GB, free: 67.46 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01117/1.055, allocations: 4.63 MB / 0.6056 GB, free: 66.99 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000138/1.055, allocations: 3.188 kB / 0.6056 GB, free: 66.99 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006962/1.056, allocations: 3.312 kB / 0.6056 GB, free: 66.99 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001723/1.056, allocations: 169.1 kB / 0.6057 GB, free: 66.98 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03217/1.088, allocations: 16.31 MB / 0.6217 GB, free: 63.42 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008226/1.096, allocations: 8.575 MB / 0.63 GB, free: 56.95 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002997/1.099, allocations: 1.736 MB / 0.6317 GB, free: 56.29 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008532/1.108, allocations: 4.97 MB / 0.6366 GB, free: 53.64 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001587/1.109, allocations: 1.186 MB / 0.6377 GB, free: 53.14 MB / 442.7 MB Notification: Performance of pre-optimization done (n=183): time 3.988e-06/1.109, allocations: 0 / 0.6377 GB, free: 53.14 MB / 442.7 MB Notification: Performance of matching and sorting (n=186): time 0.01201/1.121, allocations: 6.13 MB / 0.6437 GB, free: 50.32 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.612e-05/1.122, allocations: 231 kB / 0.6439 GB, free: 50.07 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002558/1.124, allocations: 1.712 MB / 0.6456 GB, free: 49.34 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000258/1.124, allocations: 29.64 kB / 0.6456 GB, free: 49.31 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001378/1.126, allocations: 1.728 MB / 0.6473 GB, free: 48.02 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005103/1.126, allocations: 0.5804 MB / 0.6479 GB, free: 47.56 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001049/1.126, allocations: 0 / 0.6479 GB, free: 47.56 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001187/1.127, allocations: 388.5 kB / 0.6483 GB, free: 47.23 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001182/1.128, allocations: 0.9002 MB / 0.6491 GB, free: 46.86 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001404/1.129, allocations: 1.436 MB / 0.6505 GB, free: 45.85 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002379/1.132, allocations: 1.315 MB / 0.6518 GB, free: 45.37 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.272e-05/1.132, allocations: 3.312 kB / 0.6518 GB, free: 45.37 MB / 442.7 MB Notification: Performance of matching and sorting (n=264) (initialization): time 0.005633/1.137, allocations: 3.323 MB / 0.6551 GB, free: 44.12 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.031e-05/1.137, allocations: 10.75 kB / 0.6551 GB, free: 44.12 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.134e-05/1.137, allocations: 14.78 kB / 0.6551 GB, free: 44.12 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001518/1.139, allocations: 0.7394 MB / 0.6558 GB, free: 43.88 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001432/1.14, allocations: 369.4 kB / 0.6562 GB, free: 43.86 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009159/1.149, allocations: 10.44 MB / 0.6664 GB, free: 36.34 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002435/1.152, allocations: 103.4 kB / 0.6665 GB, free: 36.33 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002814/1.152, allocations: 80.22 kB / 0.6666 GB, free: 36.31 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 63 * 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 (208): * Single equations (assignments): 203 * 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 {(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.0004532/1.153, allocations: 180.4 kB / 0.6667 GB, free: 36.15 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00546/1.158, allocations: 3.081 MB / 0.6697 GB, free: 34.84 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005456/1.159, allocations: 230.4 kB / 0.67 GB, free: 34.71 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005581/1.164, allocations: 3.255 MB / 0.6731 GB, free: 33.33 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.507e-05/1.164, allocations: 16.31 kB / 0.6731 GB, free: 33.33 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.642e-05/1.164, allocations: 14.19 kB / 0.6732 GB, free: 33.33 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.11e-05/1.164, allocations: 11.17 kB / 0.6732 GB, free: 33.32 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01098/1.175, allocations: 6.385 MB / 0.6794 GB, free: 30.56 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.848e-06/1.175, allocations: 3.953 kB / 0.6794 GB, free: 30.55 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008148/1.176, allocations: 183.7 kB / 0.6796 GB, free: 30.54 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001938/1.178, allocations: 0.9109 MB / 0.6805 GB, free: 30.22 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001308/1.178, allocations: 20.88 kB / 0.6805 GB, free: 30.21 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01259/1.191, allocations: 14.65 MB / 0.6948 GB, free: 19.2 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.066e-05/1.191, allocations: 6.375 kB / 0.6948 GB, free: 19.2 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007075/1.198, allocations: 4.728 MB / 0.6994 GB, free: 16.94 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001575/1.2, allocations: 0.5257 MB / 0.6999 GB, free: 16.59 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004629/1.2, allocations: 13.73 kB / 0.6999 GB, free: 16.59 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001107/1.201, allocations: 87 kB / 0.7 GB, free: 16.58 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004924/1.202, allocations: 210.7 kB / 0.7002 GB, free: 16.54 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001007/1.202, allocations: 52.83 kB / 0.7003 GB, free: 16.53 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.00179/1.204, allocations: 1.276 MB / 0.7015 GB, free: 15.97 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.61e-07/1.204, allocations: 0 / 0.7015 GB, free: 15.97 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002698/1.207, allocations: 0.7166 MB / 0.7022 GB, free: 15.95 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.stator.zeroInductor.i0,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,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 (110): * Single equations (assignments): 101 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(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.006998/1.214, allocations: 5.927 MB / 0.708 GB, free: 12.74 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003753/1.217, allocations: 2.983 MB / 0.7109 GB, free: 11.23 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.072e-06/1.217, allocations: 3.938 kB / 0.7109 GB, free: 11.23 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002729/1.22, allocations: 2.232 MB / 0.7131 GB, free: 9.918 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003059/1.223, allocations: 0.5271 MB / 0.7136 GB, free: 9.785 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01254/1.236, allocations: 6.815 MB / 0.7203 GB, free: 3.941 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002158/1.238, allocations: 2.926 MB / 0.7231 GB, free: 1.688 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001611/1.24, allocations: 474.7 kB / 0.7236 GB, free: 1.359 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001449/1.241, allocations: 1.413 MB / 0.725 GB, free: 52 kB / 442.7 MB Notification: Performance of SimCode: time 1.332e-06/1.241, allocations: 0 / 0.725 GB, free: 52 kB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3825/1.624, allocations: 61.92 MB / 0.7854 GB, free: 66.07 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001666/1.624, allocations: 186.7 kB / 0.7856 GB, free: 65.88 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.818/5.441, allocations: 4 kB / 0.7856 GB, free: 65.87 MB / 458.7 MB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YD_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YD.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD_res.mat does not exist to compare? outputFormat=mat