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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.001237/0.001236, allocations: 94.56 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001312/0.001311, allocations: 194.4 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.387/1.387, allocations: 227.4 MB / 246 MB, free: 10.06 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003164/0.0003165, allocations: 4 kB / 306.8 MB, free: 1.234 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1355/0.1358, allocations: 51.51 MB / 358.3 MB, free: 13.73 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD): time 0.01966/0.1556, allocations: 13.07 MB / 371.4 MB, free: 0.6094 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2102/0.3658, allocations: 4.476 MB / 375.9 MB, free: 9.477 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002746/0.3686, allocations: 83.19 kB / 376 MB, free: 9.477 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003483/0.3721, allocations: 0.8091 MB / 376.8 MB, free: 9.254 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005804/0.378, allocations: 1.185 MB / 377.9 MB, free: 8.918 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002695/0.3807, allocations: 0.6498 MB / 378.6 MB, free: 8.855 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007977/0.3887, allocations: 5.162 MB / 383.8 MB, free: 7.711 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004857/0.3936, allocations: 2.745 MB / 386.5 MB, free: 7.184 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003966/0.3976, allocations: 1.597 MB / 388.1 MB, free: 6.828 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006013/0.4036, allocations: 2.043 MB / 390.1 MB, free: 6.387 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00191/0.4056, allocations: 251.5 kB / 390.4 MB, free: 6.387 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004155/0.4098, allocations: 463.6 kB / 390.8 MB, free: 6.32 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001865/0.4117, allocations: 0.9856 MB / 391.8 MB, free: 5.852 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002662/0.4143, allocations: 0.9132 MB / 392.7 MB, free: 5.293 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009411/0.4238, allocations: 6.762 MB / 399.5 MB, free: 444 kB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.516e-06/0.4238, allocations: 0 / 399.5 MB, free: 444 kB / 302.1 MB Notification: Performance of FrontEnd: time 3.327e-06/0.4238, allocations: 0 / 399.5 MB, free: 444 kB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0003138/0.4242, allocations: 0 / 399.5 MB, free: 444 kB / 302.1 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.01396/0.4381, allocations: 4.594 MB / 404.1 MB, free: 13.53 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.547e-05/0.4382, allocations: 10.19 kB / 404.1 MB, free: 13.53 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002284/0.4405, allocations: 0.5316 MB / 404.6 MB, free: 13.04 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005258/0.4458, allocations: 0.9523 MB / 405.6 MB, free: 12.09 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006589/0.4524, allocations: 2.817 MB / 408.4 MB, free: 9.273 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003232/0.4527, allocations: 298.5 kB / 408.7 MB, free: 8.984 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001294/0.454, allocations: 383.9 kB / 409.1 MB, free: 8.609 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01147/0.4655, allocations: 5.365 MB / 414.4 MB, free: 3.195 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.217e-05/0.4657, allocations: 0 / 414.4 MB, free: 3.195 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003935/0.4661, allocations: 169.3 kB / 414.6 MB, free: 3.035 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001739/0.4662, allocations: 171.6 kB / 414.8 MB, free: 2.867 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009313/0.4756, allocations: 4.73 MB / 419.5 MB, free: 14.13 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0349/0.5105, allocations: 17.05 MB / 436.6 MB, free: 12.81 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01081/0.5214, allocations: 8.783 MB / 445.3 MB, free: 3.043 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004264/0.5257, allocations: 1.887 MB / 447.2 MB, free: 1.168 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01175/0.5375, allocations: 5.126 MB / 452.4 MB, free: 11.95 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00255/0.5401, allocations: 1.323 MB / 453.7 MB, free: 10.6 MB / 366.1 MB Notification: Performance of pre-optimization done (n=185): time 1.083e-05/0.5402, allocations: 11.98 kB / 453.7 MB, free: 10.59 MB / 366.1 MB Notification: Performance of matching and sorting (n=188): time 0.02362/0.5638, allocations: 8.714 MB / 462.4 MB, free: 1.668 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001606/0.564, allocations: 239.6 kB / 462.6 MB, free: 1.383 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006203/0.5702, allocations: 2.316 MB / 465 MB, free: 15.04 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005562/0.5708, allocations: 64.44 kB / 465 MB, free: 14.97 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002839/0.5737, allocations: 1.748 MB / 466.8 MB, free: 13.21 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001317/0.575, allocations: 0.6174 MB / 467.4 MB, free: 12.6 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003737/0.5754, allocations: 44 kB / 467.4 MB, free: 12.56 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000318/0.5757, allocations: 386.2 kB / 467.8 MB, free: 12.18 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002378/0.5781, allocations: 1.023 MB / 468.8 MB, free: 11.15 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002679/0.5808, allocations: 1.634 MB / 470.5 MB, free: 9.266 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002474/0.5833, allocations: 1.244 MB / 471.7 MB, free: 8.023 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-05/0.5834, allocations: 4 kB / 471.7 MB, free: 8.02 MB / 382.1 MB Notification: Performance of matching and sorting (n=275) (initialization): time 0.007467/0.5908, allocations: 3.578 MB / 475.3 MB, free: 4.398 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.738e-05/0.5909, allocations: 12 kB / 475.3 MB, free: 4.387 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.55e-05/0.591, allocations: 16.56 kB / 475.3 MB, free: 4.371 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002209/0.5932, allocations: 0.7669 MB / 476.1 MB, free: 3.59 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001585/0.5948, allocations: 391.3 kB / 476.5 MB, free: 3.207 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01354/0.6084, allocations: 10.84 MB / 487.3 MB, free: 7.836 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002568/0.611, allocations: 147.9 kB / 487.4 MB, free: 7.691 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004204/0.6114, allocations: 84.08 kB / 487.5 MB, free: 7.609 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 72 * Number of states: 0 () * Number of discrete variables: 24 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],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 (219): * Single equations (assignments): 214 * 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.00353/0.6149, allocations: 1.323 MB / 488.9 MB, free: 6.273 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008279/0.6158, allocations: 256.9 kB / 489.1 MB, free: 6.02 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006862/0.6227, allocations: 3.377 MB / 492.5 MB, free: 2.57 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.969e-05/0.6227, allocations: 16 kB / 492.5 MB, free: 2.555 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-05/0.6227, allocations: 12 kB / 492.5 MB, free: 2.543 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.538e-05/0.6228, allocations: 11.95 kB / 492.5 MB, free: 2.531 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01465/0.6374, allocations: 7.041 MB / 499.6 MB, free: 11.39 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-05/0.6375, allocations: 4 kB / 499.6 MB, free: 11.39 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008775/0.6384, allocations: 183.9 kB / 499.7 MB, free: 11.21 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002455/0.6408, allocations: 0.9378 MB / 0.4889 GB, free: 10.25 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001799/0.641, allocations: 46.06 kB / 0.489 GB, free: 10.21 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01857/0.6596, allocations: 15.23 MB / 0.5039 GB, free: 10.2 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.831e-06/0.6597, allocations: 4.031 kB / 0.5039 GB, free: 10.19 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009091/0.6688, allocations: 4.809 MB / 0.5086 GB, free: 5.293 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001783/0.6706, allocations: 0.5526 MB / 0.5091 GB, free: 4.719 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008983/0.6715, allocations: 40 kB / 0.5091 GB, free: 4.68 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001606/0.6731, allocations: 115.9 kB / 0.5093 GB, free: 4.566 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006258/0.6738, allocations: 209.7 kB / 0.5095 GB, free: 4.359 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000133/0.6739, allocations: 51.92 kB / 0.5095 GB, free: 4.309 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003284/0.6772, allocations: 1.583 MB / 0.511 GB, free: 2.711 MB / 430.1 MB Notification: Performance of sort global known variables: time 4.91e-07/0.6772, allocations: 0 / 0.511 GB, free: 2.711 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003759/0.681, allocations: 0.7838 MB / 0.5118 GB, free: 1.93 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (aimc.inertiaRotor.w,aimc.stator.zeroInductor.i0,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,quadraticLoadTorque.phi) * Number of discrete variables: 21 (booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],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 (112): * Single equations (assignments): 103 * 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%) 13,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00851/0.6895, allocations: 5.458 MB / 0.5171 GB, free: 12.38 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005968/0.6955, allocations: 3.325 MB / 0.5204 GB, free: 8.977 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.463e-06/0.6956, allocations: 3.938 kB / 0.5204 GB, free: 8.973 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004094/0.6997, allocations: 2.428 MB / 0.5228 GB, free: 6.473 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00477/0.7045, allocations: 0.6909 MB / 0.5234 GB, free: 5.789 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2574/0.9619, allocations: 22.38 MB / 0.5453 GB, free: 138.2 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003632/0.9656, allocations: 2.845 MB / 0.5481 GB, free: 137 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002053/0.9676, allocations: 0.5201 MB / 0.5486 GB, free: 137 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001527/0.9692, allocations: 1.453 MB / 0.55 GB, free: 135.8 MB / 446.1 MB Notification: Performance of SimCode: time 1.082e-06/0.9692, allocations: 0 / 0.55 GB, free: 135.8 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09069/1.06, allocations: 67.61 MB / 0.616 GB, free: 77.34 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000174/1.06, allocations: 246.1 kB / 0.6163 GB, free: 77.05 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.331/4.391, allocations: 4 kB / 0.6163 GB, free: 77.04 MB / 446.1 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