Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 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.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_3_2_3_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_3_2_3_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.0009796/0.0009796, allocations: 93.39 kB / 16.93 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.001327/0.001327, allocations: 179.6 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.356/1.356, allocations: 205.4 MB / 224 MB, free: 13.17 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.0006167/0.0006168, allocations: 12 kB / 280.9 MB, free: 3.621 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1113/0.112, allocations: 47.58 MB / 328.4 MB, free: 3.977 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator): time 0.03632/0.1483, allocations: 33.02 MB / 361.5 MB, free: 2.844 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02414/0.1725, allocations: 10.72 MB / 372.2 MB, free: 8.094 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008306/0.1809, allocations: 243.1 kB / 372.4 MB, free: 7.855 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008854/0.1898, allocations: 2.11 MB / 374.5 MB, free: 5.734 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01513/0.2049, allocations: 3.759 MB / 378.3 MB, free: 1.965 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008923/0.2139, allocations: 1.707 MB / 380 MB, free: 264 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.1786/0.3925, allocations: 9.866 MB / 389.9 MB, free: 11.27 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02828/0.4208, allocations: 18.12 MB / 408 MB, free: 8.754 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007968/0.4288, allocations: 4.338 MB / 412.3 MB, free: 8.637 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007704/0.4365, allocations: 4.959 MB / 417.3 MB, free: 6.777 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002311/0.4389, allocations: 0.7109 MB / 418 MB, free: 6.066 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004211/0.4431, allocations: 1.042 MB / 419 MB, free: 5.188 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002017/0.4451, allocations: 2.255 MB / 421.3 MB, free: 4.285 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003535/0.4487, allocations: 2.402 MB / 423.7 MB, free: 3.375 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01968/0.4684, allocations: 20.15 MB / 443.8 MB, free: 2.105 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.417e-06/0.4684, allocations: 0 / 443.8 MB, free: 2.105 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.745e-06/0.4684, allocations: 3.938 kB / 443.9 MB, free: 2.102 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0005519/0.469, allocations: 0 / 443.9 MB, free: 2.102 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: 3112 * Number of variables: 3112 Notification: Performance of Generate backend data structure: time 0.03064/0.4996, allocations: 12.12 MB / 456 MB, free: 7.227 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.924e-05/0.4997, allocations: 8.031 kB / 456 MB, free: 7.219 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00485/0.5045, allocations: 1.785 MB / 457.8 MB, free: 6.168 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03359/0.5381, allocations: 6.073 MB / 463.8 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01587/0.554, allocations: 6.88 MB / 470.7 MB, free: 10.33 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008465/0.5549, allocations: 0.8611 MB / 471.6 MB, free: 9.48 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003489/0.5584, allocations: 1.108 MB / 472.7 MB, free: 8.383 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04409/0.6025, allocations: 17.03 MB / 489.7 MB, free: 7.285 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004039/0.603, allocations: 19.89 kB / 489.7 MB, free: 7.266 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002832/0.6058, allocations: 466.5 kB / 490.2 MB, free: 6.82 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007124/0.6066, allocations: 0.6126 MB / 490.8 MB, free: 6.207 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0324/0.639, allocations: 15.54 MB / 0.4945 GB, free: 6.656 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4183/1.057, allocations: 58.72 MB / 0.5518 GB, free: 63.47 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01662/1.074, allocations: 20.91 MB / 0.5722 GB, free: 47.11 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01813/1.092, allocations: 9.83 MB / 0.5818 GB, free: 45.69 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.703e-05/1.092, allocations: 72.62 kB / 0.5819 GB, free: 45.65 MB / 430.1 MB Notification: Performance of pre-optimization done (n=333): time 5.31e-06/1.092, allocations: 0 / 0.5819 GB, free: 45.65 MB / 430.1 MB Notification: Performance of matching and sorting (n=360): time 0.03203/1.124, allocations: 17.64 MB / 0.5991 GB, free: 40.85 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.867e-05/1.124, allocations: 114.5 kB / 0.5992 GB, free: 40.76 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007092/1.131, allocations: 5.332 MB / 0.6044 GB, free: 40.31 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006184/1.132, allocations: 84.45 kB / 0.6045 GB, free: 40.28 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002433/1.135, allocations: 5.331 MB / 0.6097 GB, free: 37.35 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00125/1.136, allocations: 1.273 MB / 0.611 GB, free: 36.44 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004321/1.136, allocations: 136.8 kB / 0.6111 GB, free: 36.44 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002818/1.137, allocations: 0.5758 MB / 0.6117 GB, free: 36.04 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00415/1.141, allocations: 2.836 MB / 0.6144 GB, free: 35.58 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00617/1.147, allocations: 5.851 MB / 0.6202 GB, free: 31.2 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006213/1.153, allocations: 4.094 MB / 0.6242 GB, free: 29.14 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.485e-05/1.153, allocations: 26.47 kB / 0.6242 GB, free: 29.14 MB / 430.1 MB Notification: Performance of matching and sorting (n=883) (initialization): time 0.01716/1.17, allocations: 9.868 MB / 0.6338 GB, free: 20.84 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.865e-05/1.171, allocations: 52.56 kB / 0.6339 GB, free: 20.79 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001692/1.171, allocations: 100 kB / 0.634 GB, free: 20.69 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00211/1.173, allocations: 0.957 MB / 0.6349 GB, free: 19.73 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005452/1.178, allocations: 1.607 MB / 0.6365 GB, free: 18.23 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009429/1.188, allocations: 9.963 MB / 0.6462 GB, free: 7.957 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00579/1.194, allocations: 443.1 kB / 0.6466 GB, free: 7.523 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001079/1.195, allocations: 367.6 kB / 0.647 GB, free: 7.168 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 466 * 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 (831): * Single equations (assignments): 823 * 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.006445/1.201, allocations: 3.839 MB / 0.6507 GB, free: 3.438 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001185/1.202, allocations: 0.517 MB / 0.6512 GB, free: 2.914 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01013/1.213, allocations: 6.161 MB / 0.6572 GB, free: 12.72 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005096/1.218, allocations: 3.207 MB / 0.6604 GB, free: 9.52 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.211e-05/1.218, allocations: 17.27 kB / 0.6604 GB, free: 9.504 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.01e-05/1.218, allocations: 19.92 kB / 0.6604 GB, free: 9.484 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03006/1.248, allocations: 15.12 MB / 0.6752 GB, free: 10.35 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.36e-05/1.248, allocations: 12.03 kB / 0.6752 GB, free: 10.34 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002886/1.251, allocations: 0.6353 MB / 0.6758 GB, free: 9.734 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002381/1.253, allocations: 0.9056 MB / 0.6767 GB, free: 8.816 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003091/1.254, allocations: 79.97 kB / 0.6768 GB, free: 8.738 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01476/1.268, allocations: 13.08 MB / 0.6895 GB, free: 11.06 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.885e-06/1.268, allocations: 11.56 kB / 0.6895 GB, free: 11.05 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01591/1.284, allocations: 9.706 MB / 0.699 GB, free: 1.113 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003234/1.288, allocations: 1.053 MB / 0.7001 GB, free: 36 kB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001387/1.289, allocations: 77.11 kB / 0.7001 GB, free: 15.96 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003242/1.292, allocations: 211.7 kB / 0.7003 GB, free: 15.76 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007118/1.293, allocations: 273.8 kB / 0.7006 GB, free: 15.5 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002889/1.293, allocations: 108 kB / 0.7007 GB, free: 15.39 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.007475/1.301, allocations: 3.512 MB / 0.7041 GB, free: 11.9 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.142e-06/1.301, allocations: 4 kB / 0.7041 GB, free: 11.89 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.01127/1.312, allocations: 1.84 MB / 0.7059 GB, free: 10.06 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 (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.2375/1.55, allocations: 11.35 MB / 0.717 GB, free: 170.3 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01537/1.565, allocations: 7.324 MB / 0.7242 GB, free: 169.4 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-05/1.565, allocations: 1.844 kB / 0.7242 GB, free: 169.4 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.007081/1.572, allocations: 3.546 MB / 0.7276 GB, free: 168.7 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006276/1.578, allocations: 1.08 MB / 0.7287 GB, free: 168.7 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1249/1.703, allocations: 127.5 MB / 0.8532 GB, free: 60.36 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008211/1.712, allocations: 6.861 MB / 0.8599 GB, free: 55.16 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.006083/1.718, allocations: 1.949 MB / 0.8618 GB, free: 53.21 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005568/1.723, allocations: 4.096 MB / 0.8658 GB, free: 49.11 MB / 494.1 MB Notification: Performance of SimCode: time 1.183e-06/1.723, allocations: 0 / 0.8658 GB, free: 49.11 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4154/2.139, allocations: 139.6 MB / 1.002 GB, free: 100.8 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001629/2.139, allocations: 267.5 kB / 1.002 GB, free: 100.5 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.763/6.902, allocations: 1.125 kB / 1.002 GB, free: 100.5 MB / 494.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator.fmu > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator_res.mat does not exist to compare? outputFormat=mat