Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.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.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001042/0.001042, allocations: 102 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.001378/0.001378, allocations: 191.8 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.506/1.506, allocations: 227.4 MB / 246 MB, free: 10.27 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002408/0.0002409, allocations: 4 kB / 306.8 MB, free: 1.254 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1323/0.1325, allocations: 51.5 MB / 358.3 MB, free: 13.75 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator): time 0.2257/0.3583, allocations: 21.86 MB / 380.2 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01543/0.3738, allocations: 6.919 MB / 387.1 MB, free: 6.656 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005717/0.3795, allocations: 136.2 kB / 387.2 MB, free: 6.625 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006768/0.3863, allocations: 1.187 MB / 388.4 MB, free: 6.059 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01278/0.3992, allocations: 1.89 MB / 390.3 MB, free: 4.867 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006203/0.4054, allocations: 0.9786 MB / 391.3 MB, free: 4.293 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01514/0.4205, allocations: 7.274 MB / 398.6 MB, free: 0.668 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009477/0.4301, allocations: 3.745 MB / 402.3 MB, free: 14.71 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005544/0.4356, allocations: 2.293 MB / 404.6 MB, free: 13.49 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006241/0.4419, allocations: 3.028 MB / 407.6 MB, free: 11.58 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002209/0.4442, allocations: 360 kB / 408 MB, free: 11.23 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004951/0.4491, allocations: 0.7377 MB / 408.7 MB, free: 10.49 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002614/0.4518, allocations: 1.506 MB / 410.2 MB, free: 8.977 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003422/0.4552, allocations: 1.276 MB / 411.5 MB, free: 7.691 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01349/0.4687, allocations: 9.3 MB / 420.8 MB, free: 14.36 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.024e-06/0.4688, allocations: 0 / 420.8 MB, free: 14.36 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.625e-06/0.4688, allocations: 0 / 420.8 MB, free: 14.36 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0004477/0.4692, allocations: 0 / 420.8 MB, free: 14.36 MB / 334.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.01616/0.4854, allocations: 6.352 MB / 427.2 MB, free: 7.93 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.91e-05/0.4855, allocations: 12.03 kB / 427.2 MB, free: 7.918 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002463/0.4879, allocations: 0.77 MB / 427.9 MB, free: 7.137 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007309/0.4953, allocations: 1.265 MB / 429.2 MB, free: 5.863 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009736/0.5051, allocations: 3.753 MB / 433 MB, free: 2.039 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003909/0.5055, allocations: 443.4 kB / 433.4 MB, free: 1.605 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001292/0.5068, allocations: 0.5545 MB / 433.9 MB, free: 1.051 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01779/0.5246, allocations: 7.28 MB / 441.2 MB, free: 9.715 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000155/0.5248, allocations: 11.91 kB / 441.2 MB, free: 9.703 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000594/0.5254, allocations: 232 kB / 441.5 MB, free: 9.477 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002918/0.5257, allocations: 259.3 kB / 441.7 MB, free: 9.223 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01303/0.5387, allocations: 6.154 MB / 447.9 MB, free: 3.062 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04477/0.5835, allocations: 24.01 MB / 471.9 MB, free: 10.39 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008708/0.5923, allocations: 9.022 MB / 480.9 MB, free: 400 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004455/0.5968, allocations: 2.504 MB / 483.4 MB, free: 13.88 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01324/0.6101, allocations: 7.64 MB / 491 MB, free: 5.875 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.031e-05/0.6102, allocations: 60.56 kB / 491.1 MB, free: 5.809 MB / 398.1 MB Notification: Performance of pre-optimization done (n=238): time 4.698e-06/0.6102, allocations: 0 / 491.1 MB, free: 5.809 MB / 398.1 MB Notification: Performance of matching and sorting (n=282): time 0.03476/0.6449, allocations: 14.65 MB / 0.4939 GB, free: 6.941 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.571e-05/0.645, allocations: 81.58 kB / 0.494 GB, free: 6.848 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006006/0.6511, allocations: 3.468 MB / 0.4974 GB, free: 3.395 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000567/0.6517, allocations: 81.62 kB / 0.4974 GB, free: 3.309 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00256/0.6542, allocations: 2.686 MB / 0.5001 GB, free: 0.5898 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001514/0.6558, allocations: 0.9705 MB / 0.501 GB, free: 15.61 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002314/0.656, allocations: 72 kB / 0.5011 GB, free: 15.54 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002796/0.6563, allocations: 453.8 kB / 0.5015 GB, free: 15.09 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002794/0.6591, allocations: 1.577 MB / 0.5031 GB, free: 13.51 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003493/0.6626, allocations: 2.786 MB / 0.5058 GB, free: 10.19 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003426/0.6661, allocations: 2.039 MB / 0.5078 GB, free: 8.129 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.69e-05/0.6661, allocations: 12 kB / 0.5078 GB, free: 8.117 MB / 430.1 MB Notification: Performance of matching and sorting (n=471) (initialization): time 0.01002/0.6761, allocations: 5.573 MB / 0.5132 GB, free: 2.441 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.743e-05/0.6762, allocations: 20 kB / 0.5132 GB, free: 2.422 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.465e-05/0.6763, allocations: 40 kB / 0.5133 GB, free: 2.383 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001646/0.6779, allocations: 0.7102 MB / 0.514 GB, free: 1.656 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003282/0.6812, allocations: 0.8658 MB / 0.5148 GB, free: 0.7891 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0107/0.6919, allocations: 9.742 MB / 0.5243 GB, free: 6.512 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004233/0.6962, allocations: 251.7 kB / 0.5246 GB, free: 6.266 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007521/0.697, allocations: 164 kB / 0.5247 GB, free: 6.105 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 174 * 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 (426): * Single equations (assignments): 416 * 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%) 6,(2,100.0%) 13,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004395/0.7014, allocations: 1.617 MB / 0.5263 GB, free: 4.477 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001323/0.7027, allocations: 399.2 kB / 0.5267 GB, free: 4.082 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2434/0.9462, allocations: 4.617 MB / 0.5312 GB, free: 135 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.595e-05/0.9463, allocations: 31.03 kB / 0.5312 GB, free: 135 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.815e-05/0.9463, allocations: 10.44 kB / 0.5312 GB, free: 135 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.032e-05/0.9464, allocations: 15.38 kB / 0.5313 GB, free: 135 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02069/0.9671, allocations: 10.09 MB / 0.5411 GB, free: 132.1 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.845e-05/0.9672, allocations: 5.219 kB / 0.5411 GB, free: 132.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002163/0.9693, allocations: 0.5102 MB / 0.5416 GB, free: 132.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001973/0.9713, allocations: 0.762 MB / 0.5423 GB, free: 131.9 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002787/0.9716, allocations: 70.56 kB / 0.5424 GB, free: 131.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01094/0.9826, allocations: 13.2 MB / 0.5553 GB, free: 121.4 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.023e-06/0.9826, allocations: 9.062 kB / 0.5553 GB, free: 121.4 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01042/0.993, allocations: 6.76 MB / 0.5619 GB, free: 118.4 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001987/0.9951, allocations: 0.7815 MB / 0.5627 GB, free: 118.1 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008582/0.9959, allocations: 65.05 kB / 0.5627 GB, free: 118.1 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002072/0.998, allocations: 189 kB / 0.5629 GB, free: 118 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00048/0.9985, allocations: 214.6 kB / 0.5631 GB, free: 118 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001949/0.9987, allocations: 80.7 kB / 0.5632 GB, free: 118 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003695/1.002, allocations: 2.344 MB / 0.5655 GB, free: 117.1 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.3e-07/1.002, allocations: 0 / 0.5655 GB, free: 117.1 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004371/1.007, allocations: 1.116 MB / 0.5666 GB, free: 117 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 10 (smeeM.phiMechanical,smeeM.stator.core.Phi.re,smeeM.stator.core.Phi.im,smeeM.stator.stray.Phi.re,smeeM.stator.stray.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 (235): * Single equations (assignments): 225 * 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%) 6,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01006/1.017, allocations: 7.486 MB / 0.5739 GB, free: 113.3 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006606/1.024, allocations: 4.776 MB / 0.5786 GB, free: 110.2 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.997e-06/1.024, allocations: 0.875 kB / 0.5786 GB, free: 110.2 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003901/1.027, allocations: 2.894 MB / 0.5814 GB, free: 107.2 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004659/1.032, allocations: 0.8902 MB / 0.5823 GB, free: 106.4 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06488/1.097, allocations: 35.04 MB / 0.6165 GB, free: 68.86 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004312/1.101, allocations: 3.515 MB / 0.6199 GB, free: 65.32 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003766/1.105, allocations: 0.8484 MB / 0.6207 GB, free: 64.46 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003296/1.109, allocations: 2.261 MB / 0.6229 GB, free: 62.2 MB / 446.1 MB Notification: Performance of SimCode: time 1.423e-06/1.109, allocations: 0 / 0.6229 GB, free: 62.2 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3515/1.46, allocations: 91.27 MB / 0.7121 GB, free: 131.4 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001551/1.46, allocations: 259.6 kB / 0.7123 GB, free: 131.1 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.685/6.146, allocations: 0 / 0.7123 GB, free: 131.1 MB / 462.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator_res.mat does not exist to compare? outputFormat=mat