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.001047/0.001047, allocations: 94.42 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001049/0.001049, allocations: 207.6 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.34/1.34, allocations: 227.3 MB / 245.9 MB, free: 10.32 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002367/0.0002368, allocations: 8 kB / 306.7 MB, free: 1.262 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.106/0.1062, allocations: 51.49 MB / 358.2 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD): time 0.01377/0.1201, allocations: 11.96 MB / 370.2 MB, free: 1.762 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1972/0.3173, allocations: 4.598 MB / 374.8 MB, free: 9.398 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002103/0.3194, allocations: 78.31 kB / 374.8 MB, free: 9.398 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00246/0.3219, allocations: 0.8505 MB / 375.7 MB, free: 9.398 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004134/0.3261, allocations: 1.288 MB / 377 MB, free: 9.383 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001945/0.328, allocations: 0.672 MB / 377.7 MB, free: 9.367 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006652/0.3347, allocations: 3.41 MB / 381.1 MB, free: 9.199 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003887/0.3386, allocations: 2.745 MB / 383.8 MB, free: 8.676 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003654/0.3423, allocations: 1.537 MB / 385.3 MB, free: 8.367 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004393/0.3467, allocations: 1.817 MB / 387.2 MB, free: 7.984 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001727/0.3484, allocations: 254.5 kB / 387.4 MB, free: 7.977 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004088/0.3525, allocations: 433.1 kB / 387.8 MB, free: 7.973 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001479/0.354, allocations: 0.9443 MB / 388.8 MB, free: 7.832 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00245/0.3565, allocations: 0.9073 MB / 389.7 MB, free: 7.484 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007226/0.3637, allocations: 6.714 MB / 396.4 MB, free: 3.035 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.3637, allocations: 1.188 kB / 396.4 MB, free: 3.035 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.518e-06/0.3638, allocations: 3.938 kB / 396.4 MB, free: 3.031 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.00025/0.364, allocations: 0 / 396.4 MB, free: 3.031 MB / 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.01378/0.3778, allocations: 4.586 MB / 401 MB, free: 108 kB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.635e-05/0.3779, allocations: 12.47 kB / 401 MB, free: 104 kB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001727/0.3796, allocations: 0.5363 MB / 401.5 MB, free: 15.7 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005112/0.3847, allocations: 0.9414 MB / 402.5 MB, free: 15.25 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00665/0.3914, allocations: 2.833 MB / 405.3 MB, free: 13.1 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002921/0.3917, allocations: 295.8 kB / 405.6 MB, free: 12.81 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008985/0.3926, allocations: 387.9 kB / 406 MB, free: 12.43 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01/0.4026, allocations: 5.336 MB / 411.3 MB, free: 7.039 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.178e-05/0.4027, allocations: 7.906 kB / 411.3 MB, free: 7.031 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003726/0.4031, allocations: 160 kB / 411.5 MB, free: 6.875 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000154/0.4033, allocations: 167.7 kB / 411.6 MB, free: 6.711 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008689/0.412, allocations: 4.734 MB / 416.4 MB, free: 1.973 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02753/0.4395, allocations: 17.02 MB / 433.4 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007979/0.4475, allocations: 8.779 MB / 442.2 MB, free: 6.793 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00782/0.4554, allocations: 4.489 MB / 446.7 MB, free: 2.168 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001806/0.4572, allocations: 1.348 MB / 448 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of pre-optimization done (n=191): time 2.805e-06/0.4572, allocations: 0 / 448 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of matching and sorting (n=194): time 0.01784/0.4751, allocations: 8.833 MB / 456.8 MB, free: 7.742 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001537/0.4753, allocations: 231.6 kB / 457.1 MB, free: 7.465 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003484/0.4788, allocations: 2.28 MB / 459.4 MB, free: 5.156 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003268/0.4791, allocations: 57.7 kB / 459.4 MB, free: 5.094 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001604/0.4807, allocations: 1.737 MB / 461.1 MB, free: 3.336 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006489/0.4814, allocations: 0.6354 MB / 461.8 MB, free: 2.691 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001067/0.4815, allocations: 48 kB / 461.8 MB, free: 2.645 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001886/0.4817, allocations: 386.3 kB / 462.2 MB, free: 2.262 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001644/0.4833, allocations: 1.047 MB / 463.3 MB, free: 1.211 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002009/0.4854, allocations: 1.633 MB / 464.9 MB, free: 15.34 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001806/0.4872, allocations: 1.265 MB / 466.2 MB, free: 14.07 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.358e-06/0.4872, allocations: 4 kB / 466.2 MB, free: 14.07 MB / 382.1 MB Notification: Performance of matching and sorting (n=279) (initialization): time 0.005678/0.4929, allocations: 3.617 MB / 469.8 MB, free: 10.41 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.93e-05/0.4929, allocations: 12 kB / 469.8 MB, free: 10.39 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.268e-05/0.493, allocations: 16 kB / 469.8 MB, free: 10.38 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001754/0.4947, allocations: 0.7634 MB / 470.6 MB, free: 9.605 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001395/0.4961, allocations: 403.3 kB / 471 MB, free: 9.211 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01209/0.5082, allocations: 11.11 MB / 482.1 MB, free: 13.56 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002694/0.511, allocations: 144 kB / 482.2 MB, free: 13.42 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001964/0.5112, allocations: 87.98 kB / 482.3 MB, free: 13.33 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 70 * 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 (223): * Single equations (assignments): 218 * 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.002798/0.514, allocations: 1.323 MB / 483.6 MB, free: 12 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005208/0.5145, allocations: 253 kB / 483.9 MB, free: 11.75 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005641/0.5202, allocations: 3.436 MB / 487.3 MB, free: 8.242 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.884e-05/0.5202, allocations: 27.94 kB / 487.3 MB, free: 8.215 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.553e-05/0.5202, allocations: 13.97 kB / 487.3 MB, free: 8.203 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.67e-05/0.5202, allocations: 7.969 kB / 487.3 MB, free: 8.195 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01138/0.5316, allocations: 7.108 MB / 494.5 MB, free: 0.957 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.374e-06/0.5317, allocations: 0 / 494.5 MB, free: 0.957 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008501/0.5325, allocations: 199.7 kB / 494.7 MB, free: 0.7617 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002169/0.5347, allocations: 0.938 MB / 495.6 MB, free: 15.8 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001197/0.5348, allocations: 47.98 kB / 495.6 MB, free: 15.76 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01687/0.5517, allocations: 15.53 MB / 0.4992 GB, free: 15.43 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.5517, allocations: 0 / 0.4992 GB, free: 15.43 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008042/0.5598, allocations: 5.003 MB / 0.5041 GB, free: 10.29 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001592/0.5614, allocations: 0.5532 MB / 0.5046 GB, free: 9.719 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000343/0.5618, allocations: 40 kB / 0.5047 GB, free: 9.68 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001075/0.5628, allocations: 115.9 kB / 0.5048 GB, free: 9.566 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005243/0.5634, allocations: 221.6 kB / 0.505 GB, free: 9.348 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001273/0.5635, allocations: 51.98 kB / 0.505 GB, free: 9.297 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002431/0.566, allocations: 1.547 MB / 0.5065 GB, free: 7.734 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.566, allocations: 3.938 kB / 0.5065 GB, free: 7.73 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003222/0.5692, allocations: 0.793 MB / 0.5073 GB, free: 6.938 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[3].y,booleanStepYD[2].y,booleanStepYD[1].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 (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%) 8,(9,33.3%) 25,(1,100.0%) 8,(1,100.0%) 1,(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.008205/0.5774, allocations: 6.034 MB / 0.5132 GB, free: 0.7812 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.005328/0.5828, allocations: 3.372 MB / 0.5165 GB, free: 13.34 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.31e-06/0.5828, allocations: 0.875 kB / 0.5165 GB, free: 13.34 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003637/0.5864, allocations: 2.464 MB / 0.5189 GB, free: 10.8 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003072/0.5895, allocations: 0.6504 MB / 0.5195 GB, free: 10.15 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2284/0.8179, allocations: 32.56 MB / 0.5513 GB, free: 128 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003229/0.8212, allocations: 2.919 MB / 0.5542 GB, free: 126.8 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001976/0.8232, allocations: 0.5226 MB / 0.5547 GB, free: 126.8 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001487/0.8247, allocations: 1.443 MB / 0.5561 GB, free: 125.6 MB / 446.1 MB Notification: Performance of SimCode: time 5.51e-07/0.8247, allocations: 0.5625 kB / 0.5561 GB, free: 125.6 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4034/1.228, allocations: 67.34 MB / 0.6219 GB, free: 68.68 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001592/1.228, allocations: 243.5 kB / 0.6221 GB, free: 68.44 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.423/4.652, allocations: 0 / 0.6221 GB, free: 68.44 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