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.001263/0.001263, allocations: 197.2 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.377/1.377, allocations: 225.4 MB / 240.1 MB, free: 15.07 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009483/0.0009483, allocations: 91.55 kB / 292.1 MB, free: 5.961 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.812e-05/4.828e-05, allocations: 7.938 kB / 350.7 MB, free: 2.422 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09509/0.09517, allocations: 51.48 MB / 402.1 MB, free: 14.89 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4092/0.5044, allocations: 112.7 MB / 0.5027 GB, free: 9.246 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003006/0.5048, allocations: 95.25 kB / 0.5028 GB, free: 9.195 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4904/0.9953, allocations: 95.99 MB / 0.5966 GB, free: 74.93 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.843e-06/0.9953, allocations: 0 / 0.5966 GB, free: 74.93 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0004024/0.9957, allocations: 101.5 kB / 0.5967 GB, free: 74.92 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.01389/1.01, allocations: 3.982 MB / 0.6006 GB, free: 73.41 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.429e-05/1.01, allocations: 10.94 kB / 0.6006 GB, free: 73.41 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002775/1.012, allocations: 0.5336 MB / 0.6011 GB, free: 73.35 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005996/1.018, allocations: 0.8572 MB / 0.6019 GB, free: 73.11 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01157/1.03, allocations: 3.852 MB / 0.6057 GB, free: 72.51 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004619/1.031, allocations: 297.1 kB / 0.606 GB, free: 72.5 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00208/1.033, allocations: 386.6 kB / 0.6063 GB, free: 72.5 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01596/1.049, allocations: 5.177 MB / 0.6114 GB, free: 72.01 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002497/1.049, allocations: 5.375 kB / 0.6114 GB, free: 72.01 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001345/1.05, allocations: 161.7 kB / 0.6116 GB, free: 72.01 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002332/1.051, allocations: 165.4 kB / 0.6117 GB, free: 72 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01092/1.061, allocations: 4.358 MB / 0.616 GB, free: 71.96 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03507/1.097, allocations: 17.05 MB / 0.6326 GB, free: 65.39 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007119/1.104, allocations: 8.702 MB / 0.6411 GB, free: 57.86 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002697/1.107, allocations: 1.811 MB / 0.6429 GB, free: 57.17 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009306/1.116, allocations: 5.085 MB / 0.6478 GB, free: 54.44 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00168/1.118, allocations: 1.261 MB / 0.6491 GB, free: 53.89 MB / 442.7 MB Notification: Performance of pre-optimization done (n=183): time 4.639e-06/1.118, allocations: 0 / 0.6491 GB, free: 53.89 MB / 442.7 MB Notification: Performance of matching and sorting (n=186): time 0.009897/1.128, allocations: 5.844 MB / 0.6548 GB, free: 50.97 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.76e-05/1.128, allocations: 228.9 kB / 0.655 GB, free: 50.72 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003727/1.131, allocations: 2.038 MB / 0.657 GB, free: 49.9 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002797/1.132, allocations: 61.02 kB / 0.6571 GB, free: 49.84 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001504/1.133, allocations: 1.729 MB / 0.6587 GB, free: 48.55 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005604/1.134, allocations: 0.6072 MB / 0.6593 GB, free: 48.08 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001786/1.134, allocations: 46.16 kB / 0.6594 GB, free: 48.05 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001327/1.134, allocations: 381.5 kB / 0.6597 GB, free: 47.71 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001402/1.136, allocations: 0.9413 MB / 0.6607 GB, free: 47.34 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001683/1.137, allocations: 1.484 MB / 0.6621 GB, free: 46.32 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001598/1.139, allocations: 1.161 MB / 0.6632 GB, free: 45.85 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.028e-05/1.139, allocations: 3.625 kB / 0.6632 GB, free: 45.85 MB / 442.7 MB Notification: Performance of matching and sorting (n=264) (initialization): time 0.005179/1.144, allocations: 3.361 MB / 0.6665 GB, free: 44.42 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.205e-05/1.144, allocations: 11.38 kB / 0.6665 GB, free: 44.42 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.133e-05/1.144, allocations: 15.69 kB / 0.6666 GB, free: 44.42 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001672/1.146, allocations: 0.7737 MB / 0.6673 GB, free: 44.16 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001557/1.147, allocations: 374.9 kB / 0.6677 GB, free: 44.11 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00956/1.157, allocations: 10.8 MB / 0.6782 GB, free: 36.25 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002206/1.159, allocations: 142.2 kB / 0.6783 GB, free: 36.21 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003596/1.16, allocations: 84.98 kB / 0.6784 GB, free: 36.19 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.0006306/1.16, allocations: 249.8 kB / 0.6787 GB, free: 35.98 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005975/1.161, allocations: 248.2 kB / 0.6789 GB, free: 35.85 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005629/1.166, allocations: 3.253 MB / 0.6821 GB, free: 34.38 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.777e-05/1.167, allocations: 16.66 kB / 0.6821 GB, free: 34.38 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.051e-05/1.167, allocations: 11.16 kB / 0.6821 GB, free: 34.38 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.353e-05/1.167, allocations: 10.64 kB / 0.6821 GB, free: 34.38 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01376/1.18, allocations: 6.87 MB / 0.6888 GB, free: 31.36 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.294e-05/1.18, allocations: 3.969 kB / 0.6888 GB, free: 31.36 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008633/1.181, allocations: 184.4 kB / 0.689 GB, free: 31.34 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002219/1.184, allocations: 0.9351 MB / 0.6899 GB, free: 31.04 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001927/1.184, allocations: 43.47 kB / 0.69 GB, free: 31.01 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01433/1.198, allocations: 15.18 MB / 0.7048 GB, free: 19.52 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/1.198, allocations: 0 / 0.7048 GB, free: 19.52 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007192/1.205, allocations: 4.725 MB / 0.7094 GB, free: 15.98 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001677/1.207, allocations: 0.5489 MB / 0.7099 GB, free: 15.47 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000855/1.208, allocations: 51.17 kB / 0.71 GB, free: 15.43 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001729/1.21, allocations: 116.3 kB / 0.7101 GB, free: 15.34 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005248/1.21, allocations: 205 kB / 0.7103 GB, free: 15.21 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001316/1.21, allocations: 43.56 kB / 0.7103 GB, free: 15.18 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002922/1.213, allocations: 1.563 MB / 0.7119 GB, free: 13.75 MB / 442.7 MB Notification: Performance of sort global known variables: time 5.01e-07/1.213, allocations: 3.938 kB / 0.7119 GB, free: 13.75 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003963/1.217, allocations: 0.8124 MB / 0.7126 GB, free: 12.94 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.007553/1.225, allocations: 5.997 MB / 0.7185 GB, free: 7.422 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004363/1.229, allocations: 3.145 MB / 0.7216 GB, free: 4.477 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.863e-06/1.229, allocations: 0 / 0.7216 GB, free: 4.477 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002882/1.232, allocations: 2.336 MB / 0.7239 GB, free: 2.281 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003522/1.236, allocations: 0.679 MB / 0.7245 GB, free: 1.762 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01708/1.253, allocations: 7.039 MB / 0.7314 GB, free: 11.67 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003855/1.257, allocations: 2.92 MB / 0.7342 GB, free: 9.414 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002297/1.259, allocations: 0.4961 MB / 0.7347 GB, free: 9.059 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002443/1.262, allocations: 1.425 MB / 0.7361 GB, free: 7.742 MB / 458.7 MB Notification: Performance of SimCode: time 1.152e-06/1.262, allocations: 0 / 0.7361 GB, free: 7.742 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3818/1.643, allocations: 71.76 MB / 0.8062 GB, free: 75.3 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001641/1.644, allocations: 220.8 kB / 0.8064 GB, free: 75.06 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.195/5.838, allocations: 0 / 0.8064 GB, free: 75.06 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