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.001342/0.001342, allocations: 198.6 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.294/1.294, allocations: 227.2 MB / 245 MB, free: 7.508 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008114/0.0008114, allocations: 97.39 kB / 297.2 MB, free: 6.215 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002242/0.0002242, allocations: 4 kB / 358 MB, free: 9.449 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2123/0.2125, allocations: 51.49 MB / 409.5 MB, free: 26.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3111/0.5237, allocations: 112.7 MB / 0.51 GB, free: 97.46 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002739/0.524, allocations: 101.4 kB / 0.5101 GB, free: 97.46 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1944/0.7184, allocations: 95.99 MB / 0.6038 GB, free: 6.227 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.773e-06/0.7185, allocations: 0 / 0.6038 GB, free: 6.227 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.000419/0.7189, allocations: 103.9 kB / 0.6039 GB, free: 6.125 MB / 378.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.01329/0.7322, allocations: 4.394 MB / 0.6082 GB, free: 1.66 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.795e-05/0.7323, allocations: 8.031 kB / 0.6082 GB, free: 1.652 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002063/0.7343, allocations: 0.5429 MB / 0.6088 GB, free: 1.102 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005055/0.7394, allocations: 0.8573 MB / 0.6096 GB, free: 244 kB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01201/0.7515, allocations: 3.889 MB / 0.6134 GB, free: 12.3 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003723/0.7519, allocations: 291.8 kB / 0.6137 GB, free: 12.01 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001418/0.7533, allocations: 391.9 kB / 0.614 GB, free: 11.63 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01266/0.766, allocations: 5.282 MB / 0.6192 GB, free: 6.211 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001457/0.7662, allocations: 4 kB / 0.6192 GB, free: 6.207 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008491/0.767, allocations: 160 kB / 0.6194 GB, free: 6.051 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001733/0.7672, allocations: 171.6 kB / 0.6195 GB, free: 5.883 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01007/0.7773, allocations: 4.5 MB / 0.6239 GB, free: 1.379 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03487/0.8122, allocations: 17.04 MB / 0.6406 GB, free: 15.94 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008908/0.8211, allocations: 8.809 MB / 0.6492 GB, free: 6.137 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009888/0.8311, allocations: 4.523 MB / 0.6536 GB, free: 1.469 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002163/0.8333, allocations: 1.348 MB / 0.6549 GB, free: 96 kB / 426.7 MB Notification: Performance of pre-optimization done (n=191): time 5.079e-06/0.8333, allocations: 0 / 0.6549 GB, free: 96 kB / 426.7 MB Notification: Performance of matching and sorting (n=194): time 0.01945/0.8528, allocations: 8.822 MB / 0.6635 GB, free: 7.059 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001262/0.8529, allocations: 231.6 kB / 0.6637 GB, free: 6.781 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004043/0.857, allocations: 2.054 MB / 0.6657 GB, free: 4.703 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003117/0.8573, allocations: 61.7 kB / 0.6658 GB, free: 4.637 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001962/0.8593, allocations: 1.711 MB / 0.6675 GB, free: 2.902 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008121/0.8601, allocations: 0.6317 MB / 0.6681 GB, free: 2.262 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002127/0.8604, allocations: 40 kB / 0.6681 GB, free: 2.223 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002139/0.8606, allocations: 390.1 kB / 0.6685 GB, free: 1.836 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001849/0.8624, allocations: 1.027 MB / 0.6695 GB, free: 0.8047 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2142/1.077, allocations: 1.555 MB / 0.671 GB, free: 82.67 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002363/1.079, allocations: 1.239 MB / 0.6722 GB, free: 82.65 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.504e-05/1.079, allocations: 3.344 kB / 0.6722 GB, free: 82.65 MB / 442.7 MB Notification: Performance of matching and sorting (n=270) (initialization): time 0.005445/1.085, allocations: 3.536 MB / 0.6757 GB, free: 82.43 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.374e-05/1.085, allocations: 9.906 kB / 0.6757 GB, free: 82.43 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.368e-05/1.085, allocations: 15.25 kB / 0.6757 GB, free: 82.43 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001694/1.086, allocations: 0.7652 MB / 0.6765 GB, free: 82.38 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001526/1.088, allocations: 381.3 kB / 0.6768 GB, free: 82.38 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01028/1.098, allocations: 11.11 MB / 0.6877 GB, free: 77.14 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002419/1.101, allocations: 142.3 kB / 0.6878 GB, free: 77.14 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002416/1.101, allocations: 82.11 kB / 0.6879 GB, free: 77.14 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 61 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (214): * Single equations (assignments): 209 * 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.002604/1.104, allocations: 1.32 MB / 0.6892 GB, free: 77.02 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000512/1.104, allocations: 252 kB / 0.6894 GB, free: 77.02 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005506/1.11, allocations: 3.439 MB / 0.6928 GB, free: 76.63 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.843e-05/1.11, allocations: 21.28 kB / 0.6928 GB, free: 76.63 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.798e-05/1.11, allocations: 10.56 kB / 0.6928 GB, free: 76.63 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.812e-05/1.11, allocations: 10.64 kB / 0.6928 GB, free: 76.63 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01139/1.121, allocations: 7.14 MB / 0.6998 GB, free: 75.92 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.846e-06/1.121, allocations: 0 / 0.6998 GB, free: 75.92 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008479/1.122, allocations: 202.9 kB / 0.7 GB, free: 75.92 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002104/1.124, allocations: 0.9512 MB / 0.7009 GB, free: 75.87 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001428/1.124, allocations: 42.91 kB / 0.701 GB, free: 75.87 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01283/1.137, allocations: 15.56 MB / 0.7161 GB, free: 67.78 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.507e-06/1.137, allocations: 3.344 kB / 0.7162 GB, free: 67.78 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006594/1.144, allocations: 5.015 MB / 0.721 GB, free: 65.42 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001407/1.145, allocations: 0.5647 MB / 0.7216 GB, free: 65.05 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00063/1.146, allocations: 42 kB / 0.7216 GB, free: 65.02 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001553/1.147, allocations: 116.3 kB / 0.7218 GB, free: 65 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005288/1.148, allocations: 221.4 kB / 0.722 GB, free: 64.96 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000115/1.148, allocations: 52.75 kB / 0.722 GB, free: 64.95 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002759/1.151, allocations: 1.57 MB / 0.7235 GB, free: 64.33 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.7e-07/1.151, allocations: 2.156 kB / 0.7235 GB, free: 64.33 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003317/1.154, allocations: 0.8263 MB / 0.7244 GB, free: 64.25 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[3].y,booleanStepYD[2].y,booleanStepYD[1].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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (118): * Single equations (assignments): 109 * 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.007381/1.162, allocations: 6.248 MB / 0.7305 GB, free: 60.95 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004516/1.166, allocations: 3.341 MB / 0.7337 GB, free: 59.39 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.749e-06/1.166, allocations: 0 / 0.7337 GB, free: 59.39 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003156/1.169, allocations: 2.48 MB / 0.7361 GB, free: 58.02 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003045/1.172, allocations: 0.6673 MB / 0.7368 GB, free: 57.86 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.041/1.213, allocations: 31.2 MB / 0.7673 GB, free: 36.31 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003774/1.217, allocations: 2.925 MB / 0.7701 GB, free: 34.66 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002501/1.22, allocations: 0.5095 MB / 0.7706 GB, free: 34.3 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002083/1.222, allocations: 1.415 MB / 0.772 GB, free: 32.99 MB / 442.7 MB Notification: Performance of SimCode: time 1.873e-06/1.222, allocations: 0 / 0.772 GB, free: 32.99 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1126/1.334, allocations: 71.54 MB / 0.8419 GB, free: 6.988 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001838/1.335, allocations: 240.2 kB / 0.8421 GB, free: 6.742 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.624/4.958, allocations: 3.953 kB / 0.8421 GB, free: 6.738 MB / 474.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