Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009309/0.0009307, allocations: 95.58 kB / 16.94 MB, free: 5.98 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001012/0.001012, allocations: 183.2 kB / 17.82 MB, free: 5.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.338/1.338, allocations: 205.4 MB / 224 MB, free: 13.04 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004796/0.0004799, allocations: 16 kB / 280.9 MB, free: 3.621 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08361/0.0841, allocations: 47.57 MB / 328.4 MB, free: 3.98 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator): time 0.01829/0.1024, allocations: 19.26 MB / 347.7 MB, free: 0.6445 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01367/0.1161, allocations: 6.948 MB / 354.6 MB, free: 9.684 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003274/0.1195, allocations: 119.5 kB / 354.7 MB, free: 9.566 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003308/0.1228, allocations: 1.162 MB / 355.9 MB, free: 8.398 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006168/0.129, allocations: 2.029 MB / 357.9 MB, free: 6.363 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002803/0.1318, allocations: 0.9825 MB / 358.9 MB, free: 5.379 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007191/0.139, allocations: 4.832 MB / 363.8 MB, free: 0.5352 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004197/0.1432, allocations: 3.674 MB / 367.4 MB, free: 12.81 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002802/0.146, allocations: 2.195 MB / 369.6 MB, free: 10.61 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003669/0.1497, allocations: 2.743 MB / 372.4 MB, free: 7.855 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009993/0.1507, allocations: 360 kB / 372.7 MB, free: 7.504 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001978/0.1527, allocations: 0.6947 MB / 373.4 MB, free: 6.809 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001434/0.1542, allocations: 1.437 MB / 374.8 MB, free: 5.367 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001705/0.1559, allocations: 1.276 MB / 376.1 MB, free: 4.082 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1607/0.3166, allocations: 9.195 MB / 385.3 MB, free: 19.28 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.875e-06/0.3166, allocations: 0 / 385.3 MB, free: 19.28 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.3166, allocations: 1.031 kB / 385.3 MB, free: 19.28 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003613/0.317, allocations: 0 / 385.3 MB, free: 19.28 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1496 * Number of variables: 1496 Notification: Performance of Generate backend data structure: time 0.01648/0.3335, allocations: 6.293 MB / 391.6 MB, free: 16.67 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.896e-05/0.3335, allocations: 9.5 kB / 391.6 MB, free: 16.67 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002674/0.3362, allocations: 0.7726 MB / 392.4 MB, free: 16.46 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00729/0.3435, allocations: 1.226 MB / 393.6 MB, free: 15.94 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00957/0.3531, allocations: 3.62 MB / 397.2 MB, free: 14.72 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005105/0.3537, allocations: 439.2 kB / 397.7 MB, free: 14.71 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002278/0.356, allocations: 0.5564 MB / 398.2 MB, free: 14.7 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0135/0.3695, allocations: 7.221 MB / 405.4 MB, free: 13.06 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001313/0.3696, allocations: 10.5 kB / 405.5 MB, free: 13.06 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005689/0.3702, allocations: 242.4 kB / 405.7 MB, free: 13.05 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002253/0.3705, allocations: 266.9 kB / 406 MB, free: 13.03 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01024/0.3807, allocations: 6.128 MB / 412.1 MB, free: 12.11 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03823/0.419, allocations: 23.89 MB / 436 MB, free: 7.984 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008381/0.4274, allocations: 8.74 MB / 444.7 MB, free: 14.32 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01197/0.4394, allocations: 6.714 MB / 451.4 MB, free: 7.508 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.203e-05/0.4395, allocations: 56.56 kB / 451.5 MB, free: 7.445 MB / 350.1 MB Notification: Performance of pre-optimization done (n=250): time 4.889e-06/0.4395, allocations: 0 / 451.5 MB, free: 7.445 MB / 350.1 MB Notification: Performance of matching and sorting (n=296): time 0.03734/0.4768, allocations: 15.73 MB / 467.2 MB, free: 7.52 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.852e-05/0.4769, allocations: 81.7 kB / 467.3 MB, free: 7.426 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005188/0.4821, allocations: 3.403 MB / 470.7 MB, free: 4.035 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003948/0.4825, allocations: 81.2 kB / 470.8 MB, free: 3.953 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001692/0.4842, allocations: 2.648 MB / 473.4 MB, free: 1.285 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008766/0.4851, allocations: 1.011 MB / 474.4 MB, free: 288 kB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001977/0.4853, allocations: 75.67 kB / 474.5 MB, free: 216 kB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002244/0.4856, allocations: 457.5 kB / 475 MB, free: 15.76 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002605/0.4882, allocations: 1.616 MB / 476.6 MB, free: 14.14 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003179/0.4914, allocations: 2.779 MB / 479.4 MB, free: 10.86 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003052/0.4944, allocations: 2.082 MB / 481.4 MB, free: 8.801 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.649e-05/0.4944, allocations: 12 kB / 481.4 MB, free: 8.789 MB / 382.1 MB Notification: Performance of matching and sorting (n=479) (initialization): time 0.00889/0.5033, allocations: 5.622 MB / 487.1 MB, free: 3.305 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.435e-05/0.5034, allocations: 20 kB / 487.1 MB, free: 3.285 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.964e-05/0.5035, allocations: 38.3 kB / 487.1 MB, free: 3.25 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001546/0.505, allocations: 0.6842 MB / 487.8 MB, free: 2.551 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003308/0.5083, allocations: 0.9002 MB / 488.7 MB, free: 1.703 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009984/0.5183, allocations: 9.718 MB / 498.4 MB, free: 7.516 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003858/0.5222, allocations: 239.6 kB / 498.7 MB, free: 7.281 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005433/0.5228, allocations: 164 kB / 498.8 MB, free: 7.121 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 169 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (437): * Single equations (assignments): 427 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(3,100.0%) 12,(1,100.0%) 3,(2,100.0%) 13,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004022/0.5268, allocations: 1.634 MB / 0.4887 GB, free: 5.535 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001252/0.5281, allocations: 391.2 kB / 0.4891 GB, free: 5.148 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007975/0.5361, allocations: 4.72 MB / 0.4937 GB, free: 340 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.791e-05/0.5362, allocations: 39.94 kB / 0.4937 GB, free: 300 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.813e-05/0.5362, allocations: 8 kB / 0.4938 GB, free: 292 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.872e-05/0.5362, allocations: 14.58 kB / 0.4938 GB, free: 280 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01734/0.5536, allocations: 10.46 MB / 0.504 GB, free: 5.676 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.482e-05/0.5536, allocations: 4 kB / 0.504 GB, free: 5.672 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002304/0.5559, allocations: 0.5479 MB / 0.5045 GB, free: 5.148 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001816/0.5577, allocations: 0.7424 MB / 0.5052 GB, free: 4.391 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002027/0.558, allocations: 77.3 kB / 0.5053 GB, free: 4.316 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01211/0.5701, allocations: 13.21 MB / 0.5182 GB, free: 6.379 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.572e-06/0.5701, allocations: 8 kB / 0.5182 GB, free: 6.371 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01268/0.5828, allocations: 7.677 MB / 0.5257 GB, free: 14.29 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00281/0.5857, allocations: 0.7987 MB / 0.5265 GB, free: 13.47 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007054/0.5864, allocations: 66.64 kB / 0.5266 GB, free: 13.41 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002053/0.5885, allocations: 191.8 kB / 0.5267 GB, free: 13.22 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004593/0.5889, allocations: 224.7 kB / 0.527 GB, free: 13.01 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002418/0.5892, allocations: 92.11 kB / 0.527 GB, free: 12.92 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003514/0.5927, allocations: 2.29 MB / 0.5293 GB, free: 10.64 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5927, allocations: 0 / 0.5293 GB, free: 10.64 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004414/0.5971, allocations: 1.12 MB / 0.5304 GB, free: 9.527 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 10 (smeeM.phiMechanical,smeeM.stator.core.Phi.re,smeeM.stator.core.Phi.im,smeeM.stator.strayReluctance.Phi.re,smeeM.stator.strayReluctance.Phi.im,smeeE.phiMechanical,smeeE.idq_sr[1],smeeE.idq_sr[2],smeeE.idq_rr[2],smeeE.idq_dr[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (252): * Single equations (assignments): 242 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * 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 {(2,100.0%) 13,(1,100.0%) 5,(1,100.0%) 8,(3,100.0%) 12,(1,100.0%) 3,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.1735/0.7706, allocations: 9.814 MB / 0.54 GB, free: 157.5 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007513/0.7782, allocations: 4.84 MB / 0.5447 GB, free: 156.7 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.703e-06/0.7782, allocations: 5.438 kB / 0.5447 GB, free: 156.7 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004374/0.7826, allocations: 2.968 MB / 0.5476 GB, free: 155.3 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004546/0.7872, allocations: 0.8205 MB / 0.5484 GB, free: 155.1 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06525/0.8524, allocations: 60.05 MB / 0.607 GB, free: 105.9 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002809/0.8553, allocations: 3.62 MB / 0.6106 GB, free: 102.6 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003065/0.8584, allocations: 0.8583 MB / 0.6114 GB, free: 101.7 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002255/0.8606, allocations: 2.221 MB / 0.6136 GB, free: 99.49 MB / 446.1 MB Notification: Performance of SimCode: time 1.062e-06/0.8606, allocations: 0 / 0.6136 GB, free: 99.49 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1091/0.9697, allocations: 90.7 MB / 0.7022 GB, free: 8.652 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000164/0.9699, allocations: 247.3 kB / 0.7024 GB, free: 8.391 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.173/5.143, allocations: 0 / 0.7024 GB, free: 8.391 MB / 446.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_res.mat does not exist to compare? outputFormat=mat