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.001308/0.001308, allocations: 121.6 kB / 17.79 MB, free: 5.25 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001302/0.001302, allocations: 199.9 kB / 18.73 MB, free: 4.312 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.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001786/0.001786, allocations: 59.89 kB / 358.3 MB, free: 13.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2616/0.2634, allocations: 50.55 MB / 408.8 MB, free: 1.492 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator): time 0.04732/0.3107, allocations: 41.76 MB / 450.6 MB, free: 7.547 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02577/0.3366, allocations: 11.39 MB / 462 MB, free: 12.12 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008459/0.3451, allocations: 303.1 kB / 462.3 MB, free: 11.82 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01966/0.3648, allocations: 7.902 MB / 470.2 MB, free: 3.898 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01221/0.377, allocations: 3.568 MB / 473.7 MB, free: 320 kB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007053/0.3841, allocations: 2.311 MB / 476 MB, free: 14 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01813/0.4022, allocations: 12.55 MB / 488.6 MB, free: 1.41 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03767/0.44, allocations: 23.52 MB / 0.5001 GB, free: 9.719 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01153/0.4515, allocations: 6.354 MB / 0.5063 GB, free: 3.348 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01285/0.4644, allocations: 7.276 MB / 0.5134 GB, free: 12.05 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005419/0.4699, allocations: 1.824 MB / 0.5152 GB, free: 10.22 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007317/0.4772, allocations: 2.257 MB / 0.5174 GB, free: 7.965 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00554/0.4828, allocations: 3.647 MB / 0.521 GB, free: 4.309 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01316/0.496, allocations: 7.089 MB / 0.5279 GB, free: 13.19 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2722/0.7682, allocations: 24.11 MB / 0.5514 GB, free: 53.97 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.275e-06/0.7683, allocations: 1.562 kB / 0.5514 GB, free: 53.97 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.7683, allocations: 2.125 kB / 0.5514 GB, free: 53.97 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0008264/0.7692, allocations: 0 / 0.5514 GB, free: 53.97 MB / 462.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.04346/0.8126, allocations: 14.51 MB / 0.5656 GB, free: 48.67 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.412e-05/0.8127, allocations: 9.531 kB / 0.5656 GB, free: 48.67 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005925/0.8186, allocations: 1.748 MB / 0.5673 GB, free: 48.25 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02929/0.8479, allocations: 5.281 MB / 0.5725 GB, free: 46.18 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01773/0.8657, allocations: 7.76 MB / 0.5801 GB, free: 43.39 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007581/0.8665, allocations: 0.8278 MB / 0.5809 GB, free: 43.02 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004769/0.8713, allocations: 1.088 MB / 0.5819 GB, free: 42.66 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04121/0.9125, allocations: 16.6 MB / 0.5981 GB, free: 28.61 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005829/0.9132, allocations: 19.64 kB / 0.5982 GB, free: 28.59 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00395/0.9171, allocations: 463.9 kB / 0.5986 GB, free: 28.15 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004839/0.9176, allocations: 0.5768 MB / 0.5992 GB, free: 27.57 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02915/0.9468, allocations: 14.75 MB / 0.6136 GB, free: 12.8 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1037/1.051, allocations: 57.38 MB / 0.6696 GB, free: 2.371 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02372/1.074, allocations: 21.15 MB / 0.6903 GB, free: 10.62 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006598/1.081, allocations: 3.312 MB / 0.6935 GB, free: 7.297 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01913/1.1, allocations: 9.96 MB / 0.7032 GB, free: 13.22 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.181e-05/1.1, allocations: 65.56 kB / 0.7033 GB, free: 13.15 MB / 0.545 GB Notification: Performance of pre-optimization done (n=313): time 6.984e-06/1.1, allocations: 0 / 0.7033 GB, free: 13.15 MB / 0.545 GB Notification: Performance of matching and sorting (n=340): time 0.03757/1.138, allocations: 16.95 MB / 0.7198 GB, free: 12.09 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.55e-05/1.138, allocations: 116.4 kB / 0.7199 GB, free: 11.96 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009071/1.147, allocations: 5.187 MB / 0.725 GB, free: 6.781 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0007327/1.148, allocations: 81.7 kB / 0.7251 GB, free: 6.695 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.004517/1.152, allocations: 5.358 MB / 0.7303 GB, free: 1.328 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001614/1.154, allocations: 1.25 MB / 0.7315 GB, free: 96 kB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002204/1.156, allocations: 1.264 MB / 0.7328 GB, free: 14.82 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001513/1.156, allocations: 301.1 kB / 0.7331 GB, free: 14.52 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004577/1.161, allocations: 2.636 MB / 0.7356 GB, free: 11.88 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007121/1.168, allocations: 5.439 MB / 0.741 GB, free: 5.16 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01242/1.18, allocations: 8.502 MB / 0.7493 GB, free: 11.73 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.51e-05/1.181, allocations: 28 kB / 0.7493 GB, free: 11.7 MB / 0.5919 GB Notification: Performance of matching and sorting (n=816) (initialization): time 0.01813/1.199, allocations: 9.248 MB / 0.7583 GB, free: 3 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 8.698e-05/1.199, allocations: 50.81 kB / 0.7584 GB, free: 2.953 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001713/1.199, allocations: 95.94 kB / 0.7585 GB, free: 2.859 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002476/1.201, allocations: 0.9063 MB / 0.7593 GB, free: 1.945 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00559/1.207, allocations: 1.478 MB / 0.7608 GB, free: 0.5781 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2389/1.446, allocations: 10.51 MB / 0.771 GB, free: 224.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005909/1.452, allocations: 410.7 kB / 0.7714 GB, free: 224 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001148/1.453, allocations: 340.2 kB / 0.7718 GB, free: 223.9 MB / 0.5919 GB 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 (767): * Single equations (assignments): 762 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(8,26,67.2%), (2,8,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006272/1.459, allocations: 3.744 MB / 0.7754 GB, free: 222.2 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001298/1.461, allocations: 0.5306 MB / 0.7759 GB, free: 222.2 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009393/1.47, allocations: 5.881 MB / 0.7817 GB, free: 219.7 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004136/1.474, allocations: 3.044 MB / 0.7847 GB, free: 218.6 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.524e-05/1.474, allocations: 15.62 kB / 0.7847 GB, free: 218.6 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.565e-05/1.474, allocations: 28.31 kB / 0.7847 GB, free: 218.6 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02379/1.498, allocations: 14.57 MB / 0.7989 GB, free: 212.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.546e-05/1.498, allocations: 6 kB / 0.7989 GB, free: 212.5 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002426/1.501, allocations: 0.5894 MB / 0.7995 GB, free: 212.4 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0022/1.503, allocations: 0.9069 MB / 0.8004 GB, free: 212.2 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003006/1.503, allocations: 75.53 kB / 0.8005 GB, free: 212.1 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01169/1.515, allocations: 14.02 MB / 0.8141 GB, free: 200.9 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.25e-06/1.515, allocations: 12.03 kB / 0.8142 GB, free: 200.9 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0118/1.527, allocations: 8.516 MB / 0.8225 GB, free: 193.5 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002383/1.529, allocations: 1.018 MB / 0.8235 GB, free: 192.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009858/1.53, allocations: 74.28 kB / 0.8235 GB, free: 192.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002553/1.533, allocations: 197.3 kB / 0.8237 GB, free: 192.7 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005737/1.533, allocations: 258.8 kB / 0.824 GB, free: 192.5 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002139/1.534, allocations: 99.62 kB / 0.8241 GB, free: 192.4 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.005069/1.539, allocations: 3.438 MB / 0.8274 GB, free: 189.6 MB / 0.5919 GB Notification: Performance of sort global known variables: time 2.4e-07/1.539, allocations: 0 / 0.8274 GB, free: 189.6 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.006562/1.545, allocations: 1.781 MB / 0.8292 GB, free: 187.8 MB / 0.5919 GB 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 (298): * Single equations (assignments): 292 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(2,8,100.0%), (1,4,100.0%), (1,8,100.0%), (3,4,77.8%), (8,26,64.1%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01233/1.558, allocations: 9.248 MB / 0.8382 GB, free: 178.7 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.00972/1.567, allocations: 6.872 MB / 0.8449 GB, free: 171.8 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 7.063e-06/1.567, allocations: 4.938 kB / 0.8449 GB, free: 171.8 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.004796/1.572, allocations: 3.386 MB / 0.8482 GB, free: 168.3 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005746/1.578, allocations: 1.194 MB / 0.8494 GB, free: 167.2 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08942/1.667, allocations: 61.51 MB / 0.9095 GB, free: 101.9 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007343/1.675, allocations: 6.562 MB / 0.9159 GB, free: 95.27 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.004998/1.68, allocations: 1.85 MB / 0.9177 GB, free: 93.41 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004829/1.685, allocations: 4.037 MB / 0.9216 GB, free: 89.38 MB / 0.5919 GB Notification: Performance of SimCode: time 1.553e-06/1.685, allocations: 4 kB / 0.9216 GB, free: 89.37 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4179/2.103, allocations: 139.5 MB / 1.058 GB, free: 195.3 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.13/24.23, allocations: 10.48 kB / 1.058 GB, free: 195.3 MB / 0.5919 GB (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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator_res.csv --start-time 0 --stop-time 30 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 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) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMEE_Generator/SMEE_Generator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches