Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.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.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_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.001092/0.001092, allocations: 99.17 kB / 17 MB, free: 6.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001436/0.001436, allocations: 198.2 kB / 17.91 MB, free: 5.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.428/1.428, allocations: 227.4 MB / 246 MB, free: 12 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002779/0.0002782, allocations: 8 kB / 306.8 MB, free: 1.461 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1183/0.1186, allocations: 51.49 MB / 358.3 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator): time 0.2503/0.369, allocations: 36.57 MB / 394.9 MB, free: 0.625 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0293/0.3983, allocations: 10.55 MB / 405.5 MB, free: 8.809 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01539/0.4138, allocations: 275.8 kB / 405.7 MB, free: 8.754 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01068/0.4245, allocations: 1.745 MB / 407.5 MB, free: 7.773 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01764/0.4422, allocations: 2.927 MB / 410.4 MB, free: 5.43 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009134/0.4514, allocations: 1.462 MB / 411.9 MB, free: 4.32 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.02601/0.4774, allocations: 13.46 MB / 425.3 MB, free: 9.52 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03749/0.515, allocations: 18.24 MB / 443.6 MB, free: 7.184 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00913/0.5241, allocations: 4.539 MB / 448.1 MB, free: 2.629 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01128/0.5355, allocations: 5.292 MB / 453.4 MB, free: 13.32 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004107/0.5396, allocations: 0.7109 MB / 454.1 MB, free: 12.61 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006354/0.546, allocations: 1.121 MB / 455.2 MB, free: 11.48 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004053/0.5501, allocations: 2.262 MB / 457.5 MB, free: 9.215 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005674/0.5558, allocations: 2.375 MB / 459.9 MB, free: 6.828 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02397/0.5798, allocations: 20.12 MB / 480 MB, free: 2.652 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.424e-06/0.5798, allocations: 0 / 480 MB, free: 2.652 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.284e-06/0.5799, allocations: 4 kB / 480 MB, free: 2.648 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000655/0.5805, allocations: 0 / 480 MB, free: 2.648 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3043 * Number of variables: 3043 Notification: Performance of Generate backend data structure: time 0.03303/0.6136, allocations: 12.02 MB / 492 MB, free: 6.516 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.735e-05/0.6136, allocations: 12.03 kB / 492 MB, free: 6.504 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006361/0.62, allocations: 1.745 MB / 493.8 MB, free: 4.746 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02923/0.6492, allocations: 5.215 MB / 499 MB, free: 15.51 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02095/0.6702, allocations: 7.323 MB / 0.4944 GB, free: 8.113 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001191/0.6715, allocations: 0.8426 MB / 0.4953 GB, free: 7.27 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004894/0.6764, allocations: 1.094 MB / 0.4963 GB, free: 6.176 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04426/0.7207, allocations: 16.56 MB / 0.5125 GB, free: 5.535 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005907/0.7213, allocations: 23.83 kB / 0.5125 GB, free: 5.512 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004204/0.7255, allocations: 460 kB / 0.513 GB, free: 5.062 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008003/0.7264, allocations: 0.5735 MB / 0.5135 GB, free: 4.484 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03409/0.7605, allocations: 14.72 MB / 0.5279 GB, free: 5.738 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5387/1.299, allocations: 58.1 MB / 0.5846 GB, free: 90.5 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01472/1.314, allocations: 21.18 MB / 0.6053 GB, free: 70.3 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005049/1.319, allocations: 3.411 MB / 0.6086 GB, free: 68.59 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01472/1.334, allocations: 10.12 MB / 0.6185 GB, free: 59.43 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.673e-05/1.334, allocations: 65.56 kB / 0.6186 GB, free: 59.36 MB / 446.1 MB Notification: Performance of pre-optimization done (n=319): time 4.578e-06/1.334, allocations: 0 / 0.6186 GB, free: 59.36 MB / 446.1 MB Notification: Performance of matching and sorting (n=346): time 0.03263/1.367, allocations: 17.71 MB / 0.6359 GB, free: 41.45 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.048e-05/1.367, allocations: 116.4 kB / 0.636 GB, free: 41.31 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006604/1.373, allocations: 5.143 MB / 0.641 GB, free: 36.18 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005639/1.374, allocations: 81.7 kB / 0.6411 GB, free: 36.09 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002276/1.376, allocations: 5.164 MB / 0.6461 GB, free: 30.9 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001047/1.377, allocations: 1.21 MB / 0.6473 GB, free: 29.7 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003083/1.377, allocations: 128 kB / 0.6474 GB, free: 29.57 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0002357/1.378, allocations: 0.5627 MB / 0.648 GB, free: 29 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003454/1.381, allocations: 2.667 MB / 0.6506 GB, free: 26.33 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004485/1.386, allocations: 5.483 MB / 0.6559 GB, free: 19.52 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004636/1.39, allocations: 3.853 MB / 0.6597 GB, free: 15.64 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.629e-05/1.39, allocations: 28 kB / 0.6597 GB, free: 15.62 MB / 446.1 MB Notification: Performance of matching and sorting (n=822) (initialization): time 0.01331/1.404, allocations: 9.316 MB / 0.6688 GB, free: 6.227 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.584e-05/1.404, allocations: 44 kB / 0.6689 GB, free: 6.184 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001093/1.404, allocations: 96 kB / 0.669 GB, free: 6.09 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001982/1.406, allocations: 0.9433 MB / 0.6699 GB, free: 5.137 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004801/1.411, allocations: 1.482 MB / 0.6713 GB, free: 3.652 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01104/1.422, allocations: 9.768 MB / 0.6809 GB, free: 9.484 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005198/1.427, allocations: 415.1 kB / 0.6813 GB, free: 9.078 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001169/1.428, allocations: 340 kB / 0.6816 GB, free: 8.746 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 431 * 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 (770): * Single equations (assignments): 762 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * 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: 3 {(8,67.2%) 26,(2,100.0%) 8,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.008245/1.436, allocations: 3.744 MB / 0.6853 GB, free: 4.988 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001781/1.438, allocations: 0.5132 MB / 0.6858 GB, free: 4.469 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01127/1.45, allocations: 6.021 MB / 0.6916 GB, free: 14.38 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005446/1.455, allocations: 3.12 MB / 0.6947 GB, free: 11.25 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.294e-05/1.455, allocations: 12 kB / 0.6947 GB, free: 11.23 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.362e-05/1.455, allocations: 19.88 kB / 0.6947 GB, free: 11.21 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02984/1.485, allocations: 14.75 MB / 0.7091 GB, free: 12.37 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.747e-05/1.485, allocations: 4 kB / 0.7091 GB, free: 12.37 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002527/1.488, allocations: 0.6013 MB / 0.7097 GB, free: 11.77 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002461/1.49, allocations: 0.9176 MB / 0.7106 GB, free: 10.84 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003523/1.491, allocations: 87.97 kB / 0.7107 GB, free: 10.75 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2316/1.722, allocations: 12.86 MB / 0.7233 GB, free: 156.9 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.075e-06/1.722, allocations: 13.78 kB / 0.7233 GB, free: 156.9 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01494/1.737, allocations: 8.69 MB / 0.7318 GB, free: 155.3 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003009/1.74, allocations: 1.017 MB / 0.7327 GB, free: 154.9 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001307/1.741, allocations: 66.38 kB / 0.7328 GB, free: 154.9 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002862/1.744, allocations: 217.3 kB / 0.733 GB, free: 154.8 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000623/1.745, allocations: 255.3 kB / 0.7333 GB, free: 154.8 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002542/1.745, allocations: 101.8 kB / 0.7334 GB, free: 154.8 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.006851/1.752, allocations: 3.401 MB / 0.7367 GB, free: 153.5 MB / 494.1 MB Notification: Performance of sort global known variables: time 3.41e-07/1.752, allocations: 1.438 kB / 0.7367 GB, free: 153.5 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.008806/1.761, allocations: 1.79 MB / 0.7384 GB, free: 153.4 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 6 (smee.phiMechanical,smee.stator.zeroInductor.i0,smee.stator.core.Phi.im,smee.excitation.electroMagneticConverter.Phi.re,smeeQS.short.port_p.reference.gamma,mechanicalPowerSensorQS.relSpeedSensor.phi_rel) * 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 (301): * Single equations (assignments): 292 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(2,100.0%) 8,(1,100.0%) 4,(1,100.0%) 8,(3,77.8%) 4,(8,62.5%) 26} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01483/1.776, allocations: 9.423 MB / 0.7476 GB, free: 149 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01378/1.79, allocations: 6.983 MB / 0.7544 GB, free: 146.2 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.507e-05/1.79, allocations: 1.25 kB / 0.7544 GB, free: 146.2 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.008438/1.798, allocations: 3.451 MB / 0.7578 GB, free: 144.5 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01146/1.81, allocations: 1.149 MB / 0.7589 GB, free: 144.2 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1598/1.97, allocations: 56.09 MB / 0.8137 GB, free: 90.31 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01317/1.983, allocations: 6.564 MB / 0.8201 GB, free: 83.71 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.008495/1.991, allocations: 1.842 MB / 0.8219 GB, free: 81.86 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007059/1.998, allocations: 4.03 MB / 0.8259 GB, free: 77.83 MB / 494.1 MB Notification: Performance of SimCode: time 9.02e-07/1.998, allocations: 4 kB / 0.8259 GB, free: 77.83 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4714/2.47, allocations: 136.8 MB / 0.9594 GB, free: 113.8 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001652/2.47, allocations: 272.4 kB / 0.9597 GB, free: 113.4 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.329/7.799, allocations: 5.875 kB / 0.9597 GB, free: 113.4 MB / 494.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator_res.mat does not exist to compare? outputFormat=mat