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.0009886/0.0009889, allocations: 96.28 kB / 16.95 MB, free: 6.465 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.001187/0.001187, allocations: 183.6 kB / 17.84 MB, free: 6.016 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.536/1.536, allocations: 205.4 MB / 224 MB, free: 13.16 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.0005304/0.0005306, allocations: 8 kB / 280.9 MB, free: 3.602 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1196/0.1201, allocations: 47.57 MB / 328.5 MB, free: 3.961 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator): time 0.03941/0.1596, allocations: 36.12 MB / 364.6 MB, free: 15.71 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02624/0.1859, allocations: 10.31 MB / 374.9 MB, free: 5.371 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009747/0.1957, allocations: 243.2 kB / 375.1 MB, free: 5.133 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007398/0.2031, allocations: 1.744 MB / 376.9 MB, free: 3.379 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0126/0.2157, allocations: 2.988 MB / 379.9 MB, free: 384 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.2286/0.4443, allocations: 1.441 MB / 381.3 MB, free: 11.8 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.02559/0.4699, allocations: 13.57 MB / 394.9 MB, free: 11.77 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03444/0.5044, allocations: 18.28 MB / 413.2 MB, free: 8.875 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01122/0.5157, allocations: 4.597 MB / 417.8 MB, free: 6.441 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01239/0.5281, allocations: 5.405 MB / 423.2 MB, free: 2.395 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003903/0.5321, allocations: 0.7148 MB / 423.9 MB, free: 1.68 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007738/0.5399, allocations: 1.097 MB / 425 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005952/0.5459, allocations: 2.327 MB / 427.3 MB, free: 15.25 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007567/0.5535, allocations: 2.404 MB / 429.7 MB, free: 13.98 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02844/0.5819, allocations: 20.21 MB / 449.9 MB, free: 12.09 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.012e-05/0.582, allocations: 4 kB / 449.9 MB, free: 12.09 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.796e-06/0.582, allocations: 0 / 449.9 MB, free: 12.09 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0008571/0.5829, allocations: 0 / 449.9 MB, free: 12.09 MB / 350.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.04124/0.6241, allocations: 12.17 MB / 462.1 MB, free: 15.96 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.214e-05/0.6242, allocations: 8.031 kB / 462.1 MB, free: 15.96 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007742/0.6319, allocations: 1.799 MB / 463.9 MB, free: 14.16 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03452/0.6665, allocations: 6.166 MB / 470.1 MB, free: 8.047 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01683/0.6834, allocations: 6.873 MB / 476.9 MB, free: 1.191 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001036/0.6845, allocations: 0.8599 MB / 477.8 MB, free: 348 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005193/0.6897, allocations: 1.117 MB / 478.9 MB, free: 15.23 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05133/0.741, allocations: 17.12 MB / 496 MB, free: 14.03 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006841/0.7418, allocations: 19.73 kB / 496.1 MB, free: 14.01 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0048/0.7466, allocations: 471.5 kB / 496.5 MB, free: 13.56 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007509/0.7473, allocations: 0.6052 MB / 497.1 MB, free: 12.95 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0393/0.7867, allocations: 15.54 MB / 0.5006 GB, free: 13.39 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5172/1.304, allocations: 58.75 MB / 0.558 GB, free: 97.47 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01515/1.319, allocations: 20.89 MB / 0.5784 GB, free: 81 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0056/1.325, allocations: 3.407 MB / 0.5818 GB, free: 79.77 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01576/1.341, allocations: 9.699 MB / 0.5912 GB, free: 73.53 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.842e-05/1.341, allocations: 65.31 kB / 0.5913 GB, free: 73.47 MB / 430.1 MB Notification: Performance of pre-optimization done (n=319): time 6.392e-06/1.341, allocations: 3.938 kB / 0.5913 GB, free: 73.47 MB / 430.1 MB Notification: Performance of matching and sorting (n=346): time 0.03449/1.375, allocations: 17.78 MB / 0.6087 GB, free: 62.57 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.894e-05/1.375, allocations: 121.1 kB / 0.6088 GB, free: 62.46 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007113/1.382, allocations: 5.385 MB / 0.614 GB, free: 59.59 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000544/1.383, allocations: 81.55 kB / 0.6141 GB, free: 59.52 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002758/1.386, allocations: 5.335 MB / 0.6193 GB, free: 54.86 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001409/1.387, allocations: 1.218 MB / 0.6205 GB, free: 53.74 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003797/1.388, allocations: 136 kB / 0.6206 GB, free: 53.61 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0003454/1.388, allocations: 0.5715 MB / 0.6212 GB, free: 53.03 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00382/1.392, allocations: 2.793 MB / 0.6239 GB, free: 50.23 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004599/1.396, allocations: 5.837 MB / 0.6296 GB, free: 42.95 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004914/1.401, allocations: 4.045 MB / 0.6336 GB, free: 38.88 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.917e-05/1.401, allocations: 28 kB / 0.6336 GB, free: 38.85 MB / 430.1 MB Notification: Performance of matching and sorting (n=873) (initialization): time 0.01435/1.416, allocations: 9.765 MB / 0.6431 GB, free: 29.01 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.778e-05/1.416, allocations: 55.95 kB / 0.6432 GB, free: 28.95 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001397/1.416, allocations: 100 kB / 0.6433 GB, free: 28.86 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002106/1.418, allocations: 0.9518 MB / 0.6442 GB, free: 27.89 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005444/1.424, allocations: 1.595 MB / 0.6458 GB, free: 26.3 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01137/1.435, allocations: 9.769 MB / 0.6553 GB, free: 16.13 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006794/1.442, allocations: 451 kB / 0.6557 GB, free: 15.69 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001407/1.443, allocations: 360 kB / 0.6561 GB, free: 15.34 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 470 * 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 (821): * Single equations (assignments): 813 * 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.008418/1.452, allocations: 3.83 MB / 0.6598 GB, free: 11.49 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001694/1.453, allocations: 0.5159 MB / 0.6603 GB, free: 10.97 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01107/1.464, allocations: 6.035 MB / 0.6662 GB, free: 4.867 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004566/1.469, allocations: 3.125 MB / 0.6693 GB, free: 1.738 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.694e-05/1.469, allocations: 8 kB / 0.6693 GB, free: 1.73 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.143e-05/1.469, allocations: 15.94 kB / 0.6693 GB, free: 1.715 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03514/1.504, allocations: 14.87 MB / 0.6838 GB, free: 2.758 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.229e-05/1.504, allocations: 4 kB / 0.6838 GB, free: 2.754 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002925/1.507, allocations: 0.6091 MB / 0.6844 GB, free: 2.145 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002666/1.51, allocations: 0.9097 MB / 0.6853 GB, free: 1.219 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000545/1.511, allocations: 79.97 kB / 0.6854 GB, free: 1.141 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01628/1.527, allocations: 12.89 MB / 0.698 GB, free: 3.59 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.998e-06/1.527, allocations: 12.03 kB / 0.698 GB, free: 3.578 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2664/1.793, allocations: 8.704 MB / 0.7065 GB, free: 139.2 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002957/1.796, allocations: 1.036 MB / 0.7075 GB, free: 139.1 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001381/1.798, allocations: 67.97 kB / 0.7076 GB, free: 139.1 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002949/1.801, allocations: 213.7 kB / 0.7078 GB, free: 139.1 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006772/1.802, allocations: 255.8 kB / 0.708 GB, free: 139.1 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000263/1.802, allocations: 106.4 kB / 0.7081 GB, free: 139.1 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.007212/1.809, allocations: 3.543 MB / 0.7116 GB, free: 138.9 MB / 462.1 MB Notification: Performance of sort global known variables: time 5.71e-07/1.809, allocations: 0 / 0.7116 GB, free: 138.9 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.009277/1.818, allocations: 1.832 MB / 0.7134 GB, free: 138.8 MB / 462.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.01442/1.833, allocations: 9.435 MB / 0.7226 GB, free: 134.5 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01119/1.844, allocations: 7.197 MB / 0.7296 GB, free: 131.6 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.099e-05/1.844, allocations: 0.7188 kB / 0.7296 GB, free: 131.6 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00551/1.85, allocations: 3.474 MB / 0.733 GB, free: 129.9 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007593/1.857, allocations: 1.14 MB / 0.7341 GB, free: 129.6 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1215/1.979, allocations: 57.58 MB / 0.7903 GB, free: 80.19 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009933/1.989, allocations: 6.665 MB / 0.7969 GB, free: 73.48 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.007287/1.996, allocations: 1.937 MB / 0.7987 GB, free: 71.54 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005802/2.002, allocations: 4.1 MB / 0.8027 GB, free: 67.44 MB / 462.1 MB Notification: Performance of SimCode: time 1.162e-06/2.002, allocations: 0 / 0.8027 GB, free: 67.44 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4056/2.407, allocations: 139.4 MB / 0.9389 GB, free: 109.7 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004041/2.408, allocations: 268.5 kB / 0.9392 GB, free: 109.3 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.949/8.357, allocations: 0 / 0.9392 GB, free: 109.3 MB / 478.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