Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.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.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_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.001531/0.001531, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002211/0.002212, allocations: 210.4 kB / 18.58 MB, free: 4.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.38/1.38, allocations: 227.4 MB / 246.8 MB, free: 10.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001273/0.001273, allocations: 57.03 kB / 307.1 MB, free: 0.4922 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09246/0.09376, allocations: 50.53 MB / 357.6 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator): time 0.1939/0.2877, allocations: 24.77 MB / 382.4 MB, free: 8.215 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01307/0.3008, allocations: 7.395 MB / 389.8 MB, free: 3.418 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005422/0.3062, allocations: 147 kB / 389.9 MB, free: 3.387 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005262/0.3115, allocations: 1.59 MB / 391.5 MB, free: 2.527 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009085/0.3207, allocations: 2.27 MB / 393.8 MB, free: 1.023 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004171/0.3249, allocations: 1.498 MB / 395.3 MB, free: 88 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01011/0.335, allocations: 7.218 MB / 402.5 MB, free: 12.05 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007218/0.3422, allocations: 5.558 MB / 408 MB, free: 9.258 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005651/0.3479, allocations: 3.198 MB / 411.2 MB, free: 6.609 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007457/0.3554, allocations: 3.95 MB / 415.2 MB, free: 2.645 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002149/0.3576, allocations: 0.875 MB / 416.1 MB, free: 1.77 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004114/0.3617, allocations: 1.308 MB / 417.4 MB, free: 472 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002718/0.3645, allocations: 2.131 MB / 419.5 MB, free: 14.32 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006734/0.3712, allocations: 3.792 MB / 423.3 MB, free: 10.51 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01484/0.3861, allocations: 11.43 MB / 434.7 MB, free: 15.05 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.055e-06/0.3861, allocations: 0 / 434.7 MB, free: 15.05 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.3861, allocations: 0 / 434.7 MB, free: 15.05 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0003886/0.3865, allocations: 0 / 434.7 MB, free: 15.05 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: 1496 * Number of variables: 1496 Notification: Performance of Generate backend data structure: time 0.01894/0.4055, allocations: 7.455 MB / 442.2 MB, free: 7.512 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.993e-05/0.4055, allocations: 8.031 kB / 442.2 MB, free: 7.504 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001286/0.4068, allocations: 0.7701 MB / 442.9 MB, free: 6.723 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006134/0.413, allocations: 1.258 MB / 444.2 MB, free: 5.457 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008064/0.4211, allocations: 4.052 MB / 448.3 MB, free: 1.332 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003496/0.4214, allocations: 440 kB / 448.7 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001065/0.4225, allocations: 0.5622 MB / 449.2 MB, free: 348 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.012/0.4345, allocations: 7.28 MB / 456.5 MB, free: 9.004 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001136/0.4346, allocations: 11.84 kB / 456.5 MB, free: 8.992 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004977/0.4351, allocations: 240 kB / 456.8 MB, free: 8.758 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002449/0.4354, allocations: 263.3 kB / 457 MB, free: 8.5 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01056/0.446, allocations: 6.115 MB / 463.1 MB, free: 2.379 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04245/0.4884, allocations: 23.77 MB / 486.9 MB, free: 9.945 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009213/0.4977, allocations: 8.984 MB / 495.9 MB, free: 15.97 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004285/0.502, allocations: 2.473 MB / 498.4 MB, free: 13.49 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01363/0.5157, allocations: 7.546 MB / 0.4941 GB, free: 5.582 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.015e-05/0.5157, allocations: 56.56 kB / 0.4941 GB, free: 5.52 MB / 414.1 MB Notification: Performance of pre-optimization done (n=238): time 5.17e-06/0.5158, allocations: 3.938 kB / 0.4941 GB, free: 5.516 MB / 414.1 MB Notification: Performance of matching and sorting (n=282): time 0.03555/0.5513, allocations: 13.83 MB / 0.5076 GB, free: 7.469 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.948e-05/0.5514, allocations: 81.59 kB / 0.5077 GB, free: 7.375 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00757/0.559, allocations: 3.449 MB / 0.5111 GB, free: 3.941 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003495/0.5594, allocations: 73.64 kB / 0.5111 GB, free: 3.863 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002285/0.5617, allocations: 2.698 MB / 0.5138 GB, free: 1.133 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001044/0.5627, allocations: 0.9628 MB / 0.5147 GB, free: 160 kB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001384/0.5641, allocations: 0.6411 MB / 0.5153 GB, free: 15.5 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001142/0.5643, allocations: 309.1 kB / 0.5156 GB, free: 15.2 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00301/0.5673, allocations: 1.545 MB / 0.5171 GB, free: 13.65 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003566/0.5709, allocations: 2.752 MB / 0.5198 GB, free: 10.36 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006783/0.5777, allocations: 4.599 MB / 0.5243 GB, free: 5.191 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.064e-05/0.5777, allocations: 8 kB / 0.5243 GB, free: 5.184 MB / 446.1 MB Notification: Performance of matching and sorting (n=472) (initialization): time 0.1698/0.7475, allocations: 5.488 MB / 0.5297 GB, free: 135.4 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.972e-05/0.7476, allocations: 22.64 kB / 0.5297 GB, free: 135.4 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.299e-05/0.7477, allocations: 39.75 kB / 0.5298 GB, free: 135.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00166/0.7493, allocations: 0.6912 MB / 0.5304 GB, free: 135.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003488/0.7528, allocations: 0.8545 MB / 0.5313 GB, free: 135.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009047/0.7619, allocations: 10.48 MB / 0.5415 GB, free: 128.6 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003305/0.7652, allocations: 234.4 kB / 0.5417 GB, free: 128.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003798/0.7656, allocations: 166.2 kB / 0.5419 GB, free: 128.5 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 175 * 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 (427): * Single equations (assignments): 417 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (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): 4 systems {(3,12,100.0%), (1,6,100.0%), (2,13,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002751/0.7684, allocations: 1.627 MB / 0.5435 GB, free: 127.6 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008013/0.7692, allocations: 391.6 kB / 0.5438 GB, free: 127.6 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008507/0.7777, allocations: 4.529 MB / 0.5483 GB, free: 125.6 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.318e-05/0.7778, allocations: 32.17 kB / 0.5483 GB, free: 125.6 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.982e-05/0.7778, allocations: 11.12 kB / 0.5483 GB, free: 125.6 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.284e-05/0.7778, allocations: 13.41 kB / 0.5483 GB, free: 125.6 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0171/0.7949, allocations: 9.937 MB / 0.558 GB, free: 121.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-05/0.795, allocations: 9.219 kB / 0.558 GB, free: 121.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00193/0.7969, allocations: 0.4917 MB / 0.5585 GB, free: 121.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001697/0.7986, allocations: 0.7553 MB / 0.5592 GB, free: 121 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001696/0.7988, allocations: 70.77 kB / 0.5593 GB, free: 121 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01011/0.8089, allocations: 14.29 MB / 0.5733 GB, free: 109.6 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.589e-06/0.809, allocations: 7.812 kB / 0.5733 GB, free: 109.6 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008965/0.8179, allocations: 6.603 MB / 0.5797 GB, free: 106.4 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001751/0.8197, allocations: 0.7715 MB / 0.5805 GB, free: 106 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005106/0.8202, allocations: 74.16 kB / 0.5805 GB, free: 105.9 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001841/0.8221, allocations: 158.5 kB / 0.5807 GB, free: 105.9 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003956/0.8225, allocations: 208.1 kB / 0.5809 GB, free: 105.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00015/0.8226, allocations: 85.39 kB / 0.581 GB, free: 105.7 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002981/0.8256, allocations: 2.332 MB / 0.5833 GB, free: 104.3 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.8256, allocations: 0 / 0.5833 GB, free: 104.3 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003934/0.8296, allocations: 1.104 MB / 0.5843 GB, free: 103.2 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 10 (smeeM.phiMechanical,smeeM.stator.core.Phi.re,smeeM.stator.core.Phi.im,smeeM.stator.stray.Phi.re,smeeM.stator.stray.Phi.im,smeeE.phiMechanical,smeeE.idq_sr[1],smeeE.idq_sr[2],smeeE.idq_rr[2],smeeE.idq_dr[1]) * 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 (235): * Single equations (assignments): 225 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(2,13,100.0%), (1,5,100.0%), (1,8,100.0%), (3,12,100.0%), (1,6,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.009488/0.8391, allocations: 7.368 MB / 0.5915 GB, free: 95.62 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01235/0.8515, allocations: 6.66 MB / 0.598 GB, free: 88.88 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.725e-06/0.8515, allocations: 0 / 0.598 GB, free: 88.88 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003756/0.8553, allocations: 2.861 MB / 0.6008 GB, free: 85.95 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003979/0.8593, allocations: 0.9187 MB / 0.6017 GB, free: 85.05 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05402/0.9133, allocations: 48.33 MB / 0.6489 GB, free: 31.54 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003118/0.9165, allocations: 3.518 MB / 0.6524 GB, free: 27.99 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003269/0.9198, allocations: 0.8564 MB / 0.6532 GB, free: 27.12 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002415/0.9222, allocations: 2.268 MB / 0.6554 GB, free: 24.86 MB / 446.1 MB Notification: Performance of SimCode: time 1.493e-06/0.9222, allocations: 0 / 0.6554 GB, free: 24.86 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.382/1.304, allocations: 95.18 MB / 0.7484 GB, free: 118 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.62/12.93, allocations: 17.75 kB / 0.7484 GB, free: 118 MB / 462.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Magnetic.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_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.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/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMEE_Generator/SMEE_Generator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches