Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_4_0_0_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_4_0_0_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 4.0.0+maint.om/package.mo): time 0.00103/0.00103, allocations: 95.89 kB / 16.3 MB, free: 6.461 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.00119/0.00119, allocations: 173.3 kB / 17.19 MB, free: 6.348 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.312/1.312, allocations: 223.2 MB / 241.1 MB, free: 14.66 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002707/0.0002708, allocations: 8 kB / 300.9 MB, free: 6.109 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1034/0.1037, allocations: 50.41 MB / 351.3 MB, free: 3.684 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator): time 0.2327/0.3365, allocations: 32.91 MB / 384.2 MB, free: 9.285 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0237/0.3603, allocations: 10.74 MB / 394.9 MB, free: 2.527 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009064/0.3694, allocations: 256.1 kB / 395.2 MB, free: 2.473 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00969/0.3791, allocations: 2.118 MB / 397.3 MB, free: 1.363 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01828/0.3974, allocations: 3.717 MB / 401 MB, free: 14.71 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008207/0.4056, allocations: 1.715 MB / 402.7 MB, free: 13.41 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.02085/0.4265, allocations: 9.765 MB / 412.5 MB, free: 7.59 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03697/0.4635, allocations: 18.09 MB / 430.6 MB, free: 6.051 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008835/0.4724, allocations: 4.283 MB / 434.8 MB, free: 1.754 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00964/0.4821, allocations: 4.859 MB / 439.7 MB, free: 12.88 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003377/0.4855, allocations: 0.707 MB / 440.4 MB, free: 12.17 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006995/0.4925, allocations: 1.039 MB / 441.4 MB, free: 11.13 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005879/0.4984, allocations: 2.192 MB / 443.6 MB, free: 8.93 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007364/0.5058, allocations: 2.371 MB / 446 MB, free: 6.547 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0267/0.5326, allocations: 20.04 MB / 466 MB, free: 2.453 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.571e-06/0.5326, allocations: 4 kB / 466 MB, free: 2.449 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.697e-06/0.5326, allocations: 0 / 466 MB, free: 2.449 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0007785/0.5334, allocations: 0 / 466 MB, free: 2.449 MB / 366.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.03592/0.5693, allocations: 11.92 MB / 478 MB, free: 6.418 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.965e-05/0.5694, allocations: 8.031 kB / 478 MB, free: 6.41 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00635/0.5758, allocations: 1.753 MB / 479.7 MB, free: 4.645 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02877/0.6046, allocations: 5.078 MB / 484.8 MB, free: 15.55 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01995/0.6246, allocations: 7.304 MB / 492.1 MB, free: 8.168 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001287/0.6259, allocations: 0.8386 MB / 493 MB, free: 7.328 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005116/0.6311, allocations: 1.086 MB / 494 MB, free: 6.242 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04694/0.678, allocations: 16.47 MB / 0.4985 GB, free: 5.695 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006519/0.6787, allocations: 15.89 kB / 0.4986 GB, free: 5.68 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003855/0.6826, allocations: 471.9 kB / 0.499 GB, free: 5.219 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000713/0.6833, allocations: 0.5773 MB / 0.4996 GB, free: 4.637 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03373/0.7171, allocations: 14.73 MB / 0.514 GB, free: 5.879 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5092/1.226, allocations: 56.42 MB / 0.5691 GB, free: 81.27 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01715/1.243, allocations: 20.89 MB / 0.5895 GB, free: 61.38 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01852/1.262, allocations: 9.724 MB / 0.5989 GB, free: 54.65 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.944e-05/1.262, allocations: 73 kB / 0.599 GB, free: 54.59 MB / 430.1 MB Notification: Performance of pre-optimization done (n=333): time 6.783e-06/1.262, allocations: 0 / 0.599 GB, free: 54.59 MB / 430.1 MB Notification: Performance of matching and sorting (n=360): time 0.03222/1.294, allocations: 17.55 MB / 0.6162 GB, free: 37.12 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.219e-05/1.294, allocations: 112.4 kB / 0.6163 GB, free: 36.99 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009006/1.303, allocations: 5.09 MB / 0.6212 GB, free: 31.91 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006325/1.304, allocations: 81.7 kB / 0.6213 GB, free: 31.82 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002807/1.307, allocations: 5.145 MB / 0.6263 GB, free: 26.65 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001342/1.308, allocations: 1.259 MB / 0.6276 GB, free: 25.4 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007619/1.309, allocations: 132 kB / 0.6277 GB, free: 25.27 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0004338/1.31, allocations: 0.5551 MB / 0.6282 GB, free: 24.71 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004434/1.314, allocations: 2.722 MB / 0.6309 GB, free: 21.98 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005585/1.32, allocations: 5.492 MB / 0.6363 GB, free: 15.17 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005839/1.325, allocations: 3.897 MB / 0.6401 GB, free: 11.25 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.892e-05/1.326, allocations: 24 kB / 0.6401 GB, free: 11.23 MB / 430.1 MB Notification: Performance of matching and sorting (n=832) (initialization): time 0.01721/1.343, allocations: 9.412 MB / 0.6493 GB, free: 1.734 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001455/1.343, allocations: 51.92 kB / 0.6493 GB, free: 1.684 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000198/1.343, allocations: 92.56 kB / 0.6494 GB, free: 1.594 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002329/1.346, allocations: 0.9251 MB / 0.6503 GB, free: 0.6562 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005649/1.351, allocations: 1.513 MB / 0.6518 GB, free: 15.14 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01263/1.364, allocations: 9.933 MB / 0.6615 GB, free: 4.809 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006219/1.37, allocations: 415.1 kB / 0.6619 GB, free: 4.402 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001308/1.371, allocations: 340.1 kB / 0.6622 GB, free: 4.07 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 427 * 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 (780): * Single equations (assignments): 772 * 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.008907/1.38, allocations: 3.747 MB / 0.6659 GB, free: 316 kB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001779/1.382, allocations: 0.5094 MB / 0.6664 GB, free: 15.79 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01298/1.395, allocations: 6.151 MB / 0.6724 GB, free: 9.574 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005685/1.401, allocations: 3.209 MB / 0.6755 GB, free: 6.355 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.038e-05/1.401, allocations: 11.95 kB / 0.6755 GB, free: 6.344 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.943e-05/1.401, allocations: 23.92 kB / 0.6755 GB, free: 6.32 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03726/1.438, allocations: 15.01 MB / 0.6902 GB, free: 7.215 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.021e-05/1.438, allocations: 8.094 kB / 0.6902 GB, free: 7.207 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002987/1.441, allocations: 0.6319 MB / 0.6908 GB, free: 6.574 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002543/1.444, allocations: 0.9031 MB / 0.6917 GB, free: 5.656 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005109/1.445, allocations: 79.97 kB / 0.6918 GB, free: 5.578 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2485/1.693, allocations: 13.11 MB / 0.7046 GB, free: 144 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.857e-06/1.693, allocations: 10.41 kB / 0.7046 GB, free: 144 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01578/1.709, allocations: 9.669 MB / 0.714 GB, free: 140.3 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003206/1.712, allocations: 1.029 MB / 0.715 GB, free: 139.9 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001528/1.714, allocations: 77.02 kB / 0.7151 GB, free: 139.8 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003402/1.717, allocations: 214.1 kB / 0.7153 GB, free: 139.8 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008454/1.718, allocations: 261.4 kB / 0.7156 GB, free: 139.8 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002905/1.718, allocations: 104.5 kB / 0.7157 GB, free: 139.7 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.007654/1.726, allocations: 3.369 MB / 0.719 GB, free: 138.5 MB / 478.1 MB Notification: Performance of sort global known variables: time 4.61e-07/1.726, allocations: 0 / 0.719 GB, free: 138.5 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.01001/1.736, allocations: 1.794 MB / 0.7207 GB, free: 138.3 MB / 478.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 (315): * Single equations (assignments): 306 * 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,65.6%) 26} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01663/1.753, allocations: 11.35 MB / 0.7318 GB, free: 132.1 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01326/1.766, allocations: 7.089 MB / 0.7387 GB, free: 129.2 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.264e-05/1.766, allocations: 0 / 0.7387 GB, free: 129.2 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006688/1.773, allocations: 3.523 MB / 0.7422 GB, free: 127.6 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005823/1.779, allocations: 1.076 MB / 0.7432 GB, free: 127.2 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1208/1.899, allocations: 120 MB / 0.8604 GB, free: 7.512 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006864/1.906, allocations: 6.743 MB / 0.867 GB, free: 0.7266 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.006181/1.913, allocations: 1.846 MB / 0.8688 GB, free: 14.87 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006766/1.919, allocations: 3.983 MB / 0.8726 GB, free: 10.89 MB / 494.1 MB Notification: Performance of SimCode: time 6.91e-07/1.919, allocations: 0 / 0.8726 GB, free: 10.89 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4429/2.362, allocations: 136.6 MB / 1.006 GB, free: 60.91 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001802/2.363, allocations: 265.5 kB / 1.006 GB, free: 60.56 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.268/7.63, allocations: 7.938 kB / 1.006 GB, free: 60.55 MB / 494.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator_res.mat does not exist to compare? outputFormat=mat