Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.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.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD,fileNamePrefix="Modelica_4_0_0_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_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001497/0.001497, allocations: 174.9 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.774/1.774, allocations: 221.3 MB / 235.5 MB, free: 2.941 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.000836/0.000836, allocations: 95.48 kB / 286.5 MB, free: 220 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.954e-05/3.965e-05, allocations: 4 kB / 343.9 MB, free: 4.195 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1085/0.1085, allocations: 50.42 MB / 394.4 MB, free: 1.734 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3958/0.5044, allocations: 111.6 MB / 0.4941 GB, free: 7.75 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000303/0.5048, allocations: 97.53 kB / 0.4942 GB, free: 7.656 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5177/1.022, allocations: 92.74 MB / 0.5848 GB, free: 95.41 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.535e-06/1.023, allocations: 6.953 kB / 0.5848 GB, free: 95.41 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004303/1.023, allocations: 95.83 kB / 0.5849 GB, free: 95.4 MB / 426.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.01207/1.035, allocations: 3.96 MB / 0.5888 GB, free: 93.49 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.438e-05/1.035, allocations: 11.66 kB / 0.5888 GB, free: 93.49 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002148/1.037, allocations: 0.5395 MB / 0.5893 GB, free: 93.19 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005201/1.042, allocations: 0.8241 MB / 0.5901 GB, free: 92.9 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01055/1.053, allocations: 3.811 MB / 0.5938 GB, free: 91.07 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003863/1.054, allocations: 303 kB / 0.5941 GB, free: 90.93 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001636/1.055, allocations: 386.5 kB / 0.5945 GB, free: 90.8 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01389/1.069, allocations: 5.175 MB / 0.5995 GB, free: 88.37 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002202/1.069, allocations: 14.73 kB / 0.5995 GB, free: 88.36 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001313/1.071, allocations: 160.2 kB / 0.5997 GB, free: 88.24 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001854/1.071, allocations: 167.8 kB / 0.5999 GB, free: 88.22 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01023/1.081, allocations: 4.347 MB / 0.6041 GB, free: 86.43 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02898/1.11, allocations: 16.96 MB / 0.6207 GB, free: 77.21 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006474/1.117, allocations: 8.689 MB / 0.6291 GB, free: 69.67 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002563/1.119, allocations: 1.804 MB / 0.6309 GB, free: 68.89 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007778/1.127, allocations: 4.844 MB / 0.6356 GB, free: 64.86 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0015/1.129, allocations: 1.254 MB / 0.6369 GB, free: 63.58 MB / 426.7 MB Notification: Performance of pre-optimization done (n=183): time 4.328e-06/1.129, allocations: 0 / 0.6369 GB, free: 63.58 MB / 426.7 MB Notification: Performance of matching and sorting (n=186): time 0.00922/1.138, allocations: 5.847 MB / 0.6426 GB, free: 57.63 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.845e-05/1.138, allocations: 235.6 kB / 0.6428 GB, free: 57.35 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002955/1.141, allocations: 2.024 MB / 0.6448 GB, free: 55.3 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002457/1.141, allocations: 61.7 kB / 0.6448 GB, free: 55.23 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001489/1.143, allocations: 1.726 MB / 0.6465 GB, free: 53.49 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006296/1.143, allocations: 0.6003 MB / 0.6471 GB, free: 52.9 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001135/1.144, allocations: 44 kB / 0.6471 GB, free: 52.86 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001379/1.144, allocations: 390 kB / 0.6475 GB, free: 52.47 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001302/1.145, allocations: 0.9373 MB / 0.6484 GB, free: 51.53 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001443/1.146, allocations: 1.493 MB / 0.6499 GB, free: 49.82 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001423/1.148, allocations: 1.146 MB / 0.651 GB, free: 48.67 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.005e-05/1.148, allocations: 4 kB / 0.651 GB, free: 48.67 MB / 426.7 MB Notification: Performance of matching and sorting (n=264) (initialization): time 0.004745/1.153, allocations: 3.367 MB / 0.6543 GB, free: 45.26 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.048e-05/1.153, allocations: 8 kB / 0.6543 GB, free: 45.25 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.59e-05/1.153, allocations: 19.98 kB / 0.6543 GB, free: 45.23 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001649/1.154, allocations: 0.7675 MB / 0.6551 GB, free: 44.45 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001402/1.156, allocations: 363.4 kB / 0.6554 GB, free: 44.1 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008978/1.165, allocations: 10.81 MB / 0.666 GB, free: 32.77 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002195/1.167, allocations: 136 kB / 0.6661 GB, free: 32.64 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002414/1.167, allocations: 84 kB / 0.6662 GB, free: 32.55 MB / 426.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.0003782/1.168, allocations: 253.6 kB / 0.6664 GB, free: 32.31 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004103/1.168, allocations: 249 kB / 0.6667 GB, free: 32.06 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004892/1.173, allocations: 3.244 MB / 0.6698 GB, free: 28.75 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-05/1.173, allocations: 23.98 kB / 0.6699 GB, free: 28.72 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.741e-05/1.173, allocations: 12 kB / 0.6699 GB, free: 28.71 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.957e-05/1.173, allocations: 8.344 kB / 0.6699 GB, free: 28.7 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01062/1.184, allocations: 6.867 MB / 0.6766 GB, free: 21.74 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.047e-05/1.184, allocations: 8 kB / 0.6766 GB, free: 21.73 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008045/1.185, allocations: 187.7 kB / 0.6768 GB, free: 21.55 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002069/1.187, allocations: 0.9261 MB / 0.6777 GB, free: 20.61 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001756/1.187, allocations: 47.97 kB / 0.6777 GB, free: 20.56 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01239/1.199, allocations: 15.2 MB / 0.6926 GB, free: 4.574 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/1.199, allocations: 0 / 0.6926 GB, free: 4.574 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006599/1.206, allocations: 4.706 MB / 0.6972 GB, free: 15.74 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00191/1.208, allocations: 0.5526 MB / 0.6977 GB, free: 15.16 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005791/1.208, allocations: 40 kB / 0.6977 GB, free: 15.12 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001227/1.21, allocations: 115.9 kB / 0.6978 GB, free: 15.01 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005506/1.21, allocations: 217.6 kB / 0.6981 GB, free: 14.8 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001152/1.21, allocations: 47.98 kB / 0.6981 GB, free: 14.75 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.00268/1.213, allocations: 1.541 MB / 0.6996 GB, free: 13.19 MB / 442.7 MB Notification: Performance of sort global known variables: time 6.71e-07/1.213, allocations: 0 / 0.6996 GB, free: 13.19 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003971/1.217, allocations: 0.8009 MB / 0.7004 GB, free: 12.39 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.008408/1.226, allocations: 5.999 MB / 0.7062 GB, free: 6.301 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004929/1.23, allocations: 3.148 MB / 0.7093 GB, free: 3.082 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.193e-06/1.231, allocations: 0 / 0.7093 GB, free: 3.082 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003599/1.234, allocations: 2.327 MB / 0.7116 GB, free: 0.6875 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00366/1.238, allocations: 0.6599 MB / 0.7122 GB, free: 40 kB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.258/1.496, allocations: 7.004 MB / 0.7191 GB, free: 100.6 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004654/1.501, allocations: 2.91 MB / 0.7219 GB, free: 99.8 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002786/1.503, allocations: 0.492 MB / 0.7224 GB, free: 99.78 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002756/1.506, allocations: 1.426 MB / 0.7238 GB, free: 99.78 MB / 442.7 MB Notification: Performance of SimCode: time 2.946e-06/1.506, allocations: 1.375 kB / 0.7238 GB, free: 99.78 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1172/1.623, allocations: 71.2 MB / 0.7933 GB, free: 71.85 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001746/1.624, allocations: 226 kB / 0.7935 GB, free: 71.61 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.452/6.075, allocations: 0 / 0.7935 GB, free: 71.61 MB / 442.7 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YD_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YD.fmu > Modelica_4.0.0_Modelica.Magnetic.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.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD_res.mat does not exist to compare? outputFormat=mat