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.001156/0.001156, allocations: 118.8 kB / 17.79 MB, free: 5.234 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001258/0.001259, allocations: 202 kB / 18.74 MB, free: 4.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.348/1.348, allocations: 227.4 MB / 246.9 MB, free: 10.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001347/0.001347, allocations: 55.91 kB / 358.3 MB, free: 13.34 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2556/0.257, allocations: 50.54 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.03944/0.2965, allocations: 41.78 MB / 450.6 MB, free: 7.535 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0221/0.3186, allocations: 11.38 MB / 462 MB, free: 12.11 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008564/0.3272, allocations: 299.1 kB / 462.3 MB, free: 11.82 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01926/0.3466, allocations: 7.949 MB / 470.2 MB, free: 3.848 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01218/0.3588, allocations: 3.67 MB / 473.9 MB, free: 168 kB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007172/0.3659, allocations: 2.316 MB / 476.2 MB, free: 13.86 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01607/0.382, allocations: 12.54 MB / 488.7 MB, free: 1.273 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03791/0.42, allocations: 23.52 MB / 0.5003 GB, free: 9.578 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009739/0.4298, allocations: 6.373 MB / 0.5065 GB, free: 3.188 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01062/0.4404, allocations: 7.276 MB / 0.5136 GB, free: 11.89 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004479/0.4449, allocations: 1.828 MB / 0.5154 GB, free: 10.06 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006409/0.4514, allocations: 2.257 MB / 0.5176 GB, free: 7.801 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005164/0.4565, allocations: 3.643 MB / 0.5211 GB, free: 4.148 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01192/0.4685, allocations: 7.097 MB / 0.5281 GB, free: 13.02 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2493/0.7178, allocations: 24.11 MB / 0.5516 GB, free: 54.01 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.274e-06/0.7179, allocations: 0 / 0.5516 GB, free: 54.01 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.7179, allocations: 0 / 0.5516 GB, free: 54.01 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0008114/0.7187, allocations: 1.875 kB / 0.5516 GB, free: 54.01 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.04357/0.7623, allocations: 14.52 MB / 0.5658 GB, free: 48.63 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.973e-05/0.7623, allocations: 9.688 kB / 0.5658 GB, free: 48.63 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005909/0.7683, allocations: 1.741 MB / 0.5675 GB, free: 48.21 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02961/0.7979, allocations: 5.277 MB / 0.5726 GB, free: 46.14 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01754/0.8155, allocations: 7.758 MB / 0.5802 GB, free: 43.42 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007687/0.8163, allocations: 0.8261 MB / 0.581 GB, free: 43.04 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004864/0.8212, allocations: 1.1 MB / 0.5821 GB, free: 42.68 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04076/0.8619, allocations: 16.6 MB / 0.5983 GB, free: 28.62 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004184/0.8624, allocations: 15.47 kB / 0.5983 GB, free: 28.61 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003937/0.8663, allocations: 464.4 kB / 0.5988 GB, free: 28.17 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004807/0.8668, allocations: 0.5773 MB / 0.5993 GB, free: 27.59 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02558/0.8924, allocations: 14.76 MB / 0.6137 GB, free: 12.81 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09634/0.9888, allocations: 57.39 MB / 0.6698 GB, free: 2.391 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02222/1.011, allocations: 21.15 MB / 0.6904 GB, free: 10.64 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006421/1.018, allocations: 3.312 MB / 0.6937 GB, free: 7.312 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02116/1.039, allocations: 9.967 MB / 0.7034 GB, free: 13.24 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.562e-05/1.039, allocations: 69.56 kB / 0.7035 GB, free: 13.16 MB / 0.545 GB Notification: Performance of pre-optimization done (n=313): time 6.122e-06/1.039, allocations: 0 / 0.7035 GB, free: 13.16 MB / 0.545 GB Notification: Performance of matching and sorting (n=340): time 0.03824/1.077, allocations: 16.93 MB / 0.72 GB, free: 12.11 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.216e-05/1.077, allocations: 122.8 kB / 0.7201 GB, free: 11.97 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01045/1.088, allocations: 5.183 MB / 0.7252 GB, free: 6.801 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0007258/1.088, allocations: 81.7 kB / 0.7253 GB, free: 6.715 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.003938/1.092, allocations: 5.362 MB / 0.7305 GB, free: 1.344 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001649/1.094, allocations: 1.246 MB / 0.7317 GB, free: 116 kB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003483/1.098, allocations: 1.264 MB / 0.733 GB, free: 14.84 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 9.772e-05/1.098, allocations: 301.1 kB / 0.7332 GB, free: 14.54 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004668/1.102, allocations: 2.636 MB / 0.7358 GB, free: 11.9 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006485/1.109, allocations: 5.434 MB / 0.7411 GB, free: 5.184 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2485/1.357, allocations: 8.501 MB / 0.7494 GB, free: 170.3 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.864e-05/1.358, allocations: 25.91 kB / 0.7495 GB, free: 170.3 MB / 0.5762 GB Notification: Performance of matching and sorting (n=816) (initialization): time 0.01509/1.373, allocations: 9.247 MB / 0.7585 GB, free: 170.1 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 7.595e-05/1.373, allocations: 46.66 kB / 0.7585 GB, free: 170.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001637/1.373, allocations: 96.75 kB / 0.7586 GB, free: 170.1 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002236/1.375, allocations: 0.9108 MB / 0.7595 GB, free: 170 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004743/1.38, allocations: 1.476 MB / 0.761 GB, free: 170 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01075/1.391, allocations: 10.53 MB / 0.7712 GB, free: 163.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005659/1.396, allocations: 403.1 kB / 0.7716 GB, free: 163 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009085/1.397, allocations: 338.3 kB / 0.7719 GB, free: 163 MB / 0.5762 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.007242/1.405, allocations: 3.755 MB / 0.7756 GB, free: 161.2 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001507/1.406, allocations: 0.5278 MB / 0.7761 GB, free: 161.2 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01036/1.416, allocations: 5.883 MB / 0.7819 GB, free: 158.8 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004227/1.421, allocations: 3.046 MB / 0.7848 GB, free: 157.6 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.444e-05/1.421, allocations: 11.88 kB / 0.7848 GB, free: 157.6 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.965e-05/1.421, allocations: 18.86 kB / 0.7849 GB, free: 157.6 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02293/1.444, allocations: 14.57 MB / 0.7991 GB, free: 146.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.48e-05/1.444, allocations: 7.984 kB / 0.7991 GB, free: 146.9 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002439/1.446, allocations: 0.5896 MB / 0.7997 GB, free: 146.3 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002195/1.448, allocations: 0.8936 MB / 0.8005 GB, free: 145.4 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002663/1.449, allocations: 79.97 kB / 0.8006 GB, free: 145.3 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01184/1.461, allocations: 14.03 MB / 0.8143 GB, free: 130.8 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.991e-06/1.461, allocations: 11.53 kB / 0.8143 GB, free: 130.8 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01168/1.472, allocations: 8.522 MB / 0.8227 GB, free: 122.4 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002592/1.475, allocations: 1.008 MB / 0.8236 GB, free: 121.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008951/1.476, allocations: 71.98 kB / 0.8237 GB, free: 121.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002377/1.478, allocations: 195.8 kB / 0.8239 GB, free: 121.2 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004969/1.479, allocations: 256.6 kB / 0.8241 GB, free: 120.9 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001931/1.479, allocations: 104 kB / 0.8242 GB, free: 120.8 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.004337/1.483, allocations: 3.439 MB / 0.8276 GB, free: 117.4 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.11e-07/1.483, allocations: 0 / 0.8276 GB, free: 117.4 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.006221/1.49, allocations: 1.775 MB / 0.8293 GB, free: 115.6 MB / 0.5762 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.01103/1.501, allocations: 9.236 MB / 0.8384 GB, free: 106.3 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.009777/1.51, allocations: 6.884 MB / 0.8451 GB, free: 99.65 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 8.767e-06/1.51, allocations: 0 / 0.8451 GB, free: 99.65 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.004972/1.515, allocations: 3.385 MB / 0.8484 GB, free: 96.27 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005984/1.521, allocations: 1.185 MB / 0.8495 GB, free: 95.12 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08775/1.609, allocations: 61.53 MB / 0.9096 GB, free: 30.19 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008686/1.618, allocations: 6.564 MB / 0.916 GB, free: 23.59 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.005905/1.624, allocations: 1.838 MB / 0.9178 GB, free: 21.75 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005759/1.63, allocations: 4.045 MB / 0.9218 GB, free: 17.7 MB / 0.5762 GB Notification: Performance of SimCode: time 8.01e-07/1.63, allocations: 0 / 0.9218 GB, free: 17.7 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4005/2.03, allocations: 139.5 MB / 1.058 GB, free: 177.2 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.05/23.08, allocations: 4.812 kB / 1.058 GB, free: 177.2 MB / 0.6075 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.0.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