Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMEE_Generator_Polyphase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMEE_Generator_Polyphase",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.00116/0.00116, allocations: 107.8 kB / 17.06 MB, free: 6.02 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.001173/0.001173, allocations: 191 kB / 18 MB, free: 5.102 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.45/1.45, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00104/0.00104, allocations: 47.92 kB / 350.9 MB, free: 3.707 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2857/0.2868, allocations: 49.43 MB / 400.3 MB, free: 8.422 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase): time 0.03151/0.3183, allocations: 29.51 MB / 429.8 MB, free: 11.18 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0199/0.3383, allocations: 8.118 MB / 437.9 MB, free: 3.031 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007238/0.3456, allocations: 191.4 kB / 438.1 MB, free: 2.844 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007681/0.3534, allocations: 1.987 MB / 440.1 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01125/0.3647, allocations: 2.784 MB / 442.9 MB, free: 14.04 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006631/0.3713, allocations: 1.737 MB / 444.6 MB, free: 12.31 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01693/0.3883, allocations: 10.2 MB / 454.8 MB, free: 2.066 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01892/0.4072, allocations: 9.599 MB / 464.4 MB, free: 8.359 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009521/0.4168, allocations: 4.798 MB / 469.2 MB, free: 3.547 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01025/0.4271, allocations: 5.55 MB / 474.8 MB, free: 13.98 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004644/0.4318, allocations: 1.367 MB / 476.1 MB, free: 12.61 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006068/0.4379, allocations: 1.726 MB / 477.9 MB, free: 10.88 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005489/0.4434, allocations: 3.019 MB / 480.9 MB, free: 7.855 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01176/0.4552, allocations: 5.664 MB / 486.5 MB, free: 2.168 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02581/0.4811, allocations: 17.62 MB / 0.4923 GB, free: 500 kB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.886e-06/0.4811, allocations: 3.938 kB / 0.4923 GB, free: 496 kB / 414.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.4811, allocations: 0 / 0.4923 GB, free: 496 kB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0006267/0.4818, allocations: 0 / 0.4923 GB, free: 496 kB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2293 * Number of variables: 2293 Notification: Performance of Generate backend data structure: time 0.04164/0.5234, allocations: 11.22 MB / 0.5033 GB, free: 5.148 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.538e-05/0.5235, allocations: 8.031 kB / 0.5033 GB, free: 5.141 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005083/0.5286, allocations: 1.169 MB / 0.5045 GB, free: 3.961 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01374/0.5424, allocations: 2.118 MB / 0.5065 GB, free: 1.836 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0178/0.5602, allocations: 6.225 MB / 0.5126 GB, free: 11.54 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008224/0.5611, allocations: 0.6385 MB / 0.5132 GB, free: 10.9 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003498/0.5646, allocations: 0.8475 MB / 0.514 GB, free: 10.05 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03374/0.5983, allocations: 11.44 MB / 0.5252 GB, free: 14.54 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000437/0.5988, allocations: 7.984 kB / 0.5252 GB, free: 14.53 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002758/0.6016, allocations: 360 kB / 0.5256 GB, free: 14.18 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004662/0.6021, allocations: 381.5 kB / 0.5259 GB, free: 13.8 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02482/0.6269, allocations: 9.665 MB / 0.5354 GB, free: 4.121 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4796/1.107, allocations: 35.33 MB / 0.5699 GB, free: 98.2 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01438/1.121, allocations: 16.94 MB / 0.5864 GB, free: 82.39 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005806/1.127, allocations: 3.497 MB / 0.5898 GB, free: 79.5 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01828/1.145, allocations: 9.724 MB / 0.5993 GB, free: 69.68 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.124e-05/1.145, allocations: 72.97 kB / 0.5994 GB, free: 69.6 MB / 462.1 MB Notification: Performance of pre-optimization done (n=310): time 6.813e-06/1.145, allocations: 0 / 0.5994 GB, free: 69.6 MB / 462.1 MB Notification: Performance of matching and sorting (n=362): time 0.03103/1.176, allocations: 15.37 MB / 0.6144 GB, free: 54.39 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.535e-05/1.176, allocations: 94.22 kB / 0.6145 GB, free: 54.29 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007516/1.184, allocations: 4.436 MB / 0.6188 GB, free: 49.88 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003654/1.184, allocations: 89.7 kB / 0.6189 GB, free: 49.79 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002182/1.187, allocations: 3.998 MB / 0.6228 GB, free: 46.27 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001001/1.188, allocations: 1.292 MB / 0.6241 GB, free: 44.99 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001445/1.189, allocations: 0.7888 MB / 0.6249 GB, free: 44.19 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.389e-05/1.189, allocations: 309.1 kB / 0.6251 GB, free: 43.89 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003037/1.192, allocations: 1.899 MB / 0.627 GB, free: 41.98 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00375/1.196, allocations: 3.359 MB / 0.6303 GB, free: 37.96 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006849/1.203, allocations: 5.624 MB / 0.6358 GB, free: 31.67 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.89e-05/1.203, allocations: 12 kB / 0.6358 GB, free: 31.66 MB / 462.1 MB Notification: Performance of matching and sorting (n=587) (initialization): time 0.01076/1.214, allocations: 6.548 MB / 0.6422 GB, free: 25.04 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.022e-05/1.214, allocations: 25.25 kB / 0.6422 GB, free: 25.02 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.022e-05/1.214, allocations: 44 kB / 0.6422 GB, free: 24.98 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001746/1.215, allocations: 0.7404 MB / 0.643 GB, free: 24.22 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00366/1.219, allocations: 1.041 MB / 0.644 GB, free: 23.18 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008964/1.228, allocations: 10.98 MB / 0.6547 GB, free: 11.66 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004436/1.233, allocations: 239.9 kB / 0.6549 GB, free: 11.42 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000719/1.233, allocations: 208 kB / 0.6551 GB, free: 11.22 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 208 * 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 (534): * Single equations (assignments): 526 * Array equations: 2 * 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 {(2,13,100.0%), (1,5,100.0%), (2,13,100.0%), (3,14,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004862/1.238, allocations: 2.534 MB / 0.6576 GB, free: 8.672 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00155/1.24, allocations: 0.5007 MB / 0.6581 GB, free: 8.168 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009799/1.25, allocations: 5.427 MB / 0.6634 GB, free: 2.648 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.075e-05/1.25, allocations: 36 kB / 0.6634 GB, free: 2.613 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.57e-05/1.25, allocations: 15.98 kB / 0.6635 GB, free: 2.598 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.147e-05/1.25, allocations: 15.94 kB / 0.6635 GB, free: 2.582 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0291/1.279, allocations: 12.83 MB / 0.676 GB, free: 5.605 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-05/1.279, allocations: 12.03 kB / 0.676 GB, free: 5.594 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002885/1.282, allocations: 0.5968 MB / 0.6766 GB, free: 4.996 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002471/1.284, allocations: 0.9025 MB / 0.6775 GB, free: 4.078 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004631/1.285, allocations: 87.95 kB / 0.6776 GB, free: 3.992 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01803/1.303, allocations: 15.3 MB / 0.6925 GB, free: 4.023 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.626e-06/1.303, allocations: 8 kB / 0.6925 GB, free: 4.016 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01526/1.318, allocations: 8 MB / 0.7003 GB, free: 11.83 MB / 0.4982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003094/1.321, allocations: 0.9858 MB / 0.7013 GB, free: 10.82 MB / 0.4982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00143/1.323, allocations: 76 kB / 0.7013 GB, free: 10.75 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003353/1.326, allocations: 187.8 kB / 0.7015 GB, free: 10.56 MB / 0.4982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007776/1.327, allocations: 272.6 kB / 0.7018 GB, free: 10.3 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000343/1.327, allocations: 104 kB / 0.7019 GB, free: 10.2 MB / 0.4982 GB Notification: Performance of sorting global known variables: time 0.006668/1.334, allocations: 3.005 MB / 0.7048 GB, free: 7.195 MB / 0.4982 GB Notification: Performance of sort global known variables: time 4.11e-07/1.334, allocations: 4 kB / 0.7048 GB, free: 7.191 MB / 0.4982 GB Notification: Performance of remove unused functions: time 0.007084/1.341, allocations: 1.461 MB / 0.7062 GB, free: 5.73 MB / 0.4982 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * 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,smee3.phiMechanical,smee3.stator.core.Phi.re,smee3.stator.core.Phi.im,smee3.stator.stray.Phi.re,smee3.stator.stray.Phi.im) * 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 (284): * Single equations (assignments): 277 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * 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,13,100.0%), (2,13,100.0%), (4,33,93.8%), (1,5,100.0%), (1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01605/1.357, allocations: 8.712 MB / 0.7148 GB, free: 12.83 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.0107/1.368, allocations: 5.63 MB / 0.7203 GB, free: 7.094 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 9.438e-06/1.368, allocations: 4 kB / 0.7203 GB, free: 7.09 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.006337/1.374, allocations: 3.388 MB / 0.7236 GB, free: 3.637 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007678/1.382, allocations: 1.14 MB / 0.7247 GB, free: 2.504 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3691/1.751, allocations: 51.35 MB / 0.7748 GB, free: 169.9 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00783/1.759, allocations: 5.066 MB / 0.7798 GB, free: 165.3 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.004599/1.764, allocations: 1.067 MB / 0.7808 GB, free: 164.2 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005499/1.769, allocations: 3.366 MB / 0.7841 GB, free: 160.9 MB / 0.5294 GB Notification: Performance of SimCode: time 1.272e-06/1.769, allocations: 0 / 0.7841 GB, free: 160.9 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1952/1.964, allocations: 123.3 MB / 0.9045 GB, free: 38.56 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.19/23.15, allocations: 8.766 kB / 0.9045 GB, free: 38.55 MB / 0.5294 GB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase_res.csv --start-time 0 --stop-time 30 --timeout 50 --relative-tolerance 1e-07 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMEE_Generator_Polyphase.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/ComparisonPolyphase/SMEE_Generator_Polyphase/SMEE_Generator_Polyphase.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches