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.002134/0.002135, allocations: 107.6 kB / 16.92 MB, free: 5.668 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.002644/0.002644, allocations: 190.8 kB / 17.85 MB, free: 5.176 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.341/2.341, allocations: 222.9 MB / 241.5 MB, free: 15.31 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00185/0.00185, allocations: 46.14 kB / 300.8 MB, free: 5.75 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1834/0.1853, allocations: 49.44 MB / 350.2 MB, free: 4.301 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase): time 0.4061/0.5915, allocations: 29.5 MB / 379.7 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.03969/0.6313, allocations: 8.131 MB / 387.8 MB, free: 7.246 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01618/0.6476, allocations: 191 kB / 388 MB, free: 7.207 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0143/0.662, allocations: 1.947 MB / 390 MB, free: 6.156 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02319/0.6853, allocations: 2.679 MB / 392.6 MB, free: 4.34 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01179/0.6971, allocations: 1.723 MB / 394.4 MB, free: 3.242 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.02986/0.727, allocations: 10.15 MB / 404.5 MB, free: 13.35 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02165/0.7488, allocations: 9.597 MB / 414.1 MB, free: 5.938 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01612/0.765, allocations: 4.763 MB / 418.9 MB, free: 1.16 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01392/0.779, allocations: 5.526 MB / 424.4 MB, free: 11.61 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00523/0.7843, allocations: 1.367 MB / 425.8 MB, free: 10.24 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01121/0.7955, allocations: 1.73 MB / 427.5 MB, free: 8.512 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00905/0.8047, allocations: 3.023 MB / 430.5 MB, free: 5.48 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0238/0.8285, allocations: 5.664 MB / 436.2 MB, free: 15.79 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03842/0.867, allocations: 17.43 MB / 453.6 MB, free: 14.31 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.449e-05/0.8671, allocations: 7.984 kB / 453.6 MB, free: 14.3 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.414e-06/0.8672, allocations: 0 / 453.6 MB, free: 14.3 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0006885/0.8679, allocations: 4 kB / 453.6 MB, free: 14.3 MB / 366.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.06839/0.9363, allocations: 10.97 MB / 464.6 MB, free: 3.223 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001037/0.9364, allocations: 8.031 kB / 464.6 MB, free: 3.215 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005329/0.9418, allocations: 1.173 MB / 465.8 MB, free: 2.031 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01435/0.9561, allocations: 2.078 MB / 467.9 MB, free: 15.94 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02824/0.9844, allocations: 6.046 MB / 473.9 MB, free: 9.824 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002013/0.9866, allocations: 0.6427 MB / 474.5 MB, free: 9.18 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007164/0.9938, allocations: 0.8474 MB / 475.4 MB, free: 8.332 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06506/1.059, allocations: 11.43 MB / 486.8 MB, free: 12.82 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000674/1.06, allocations: 15.89 kB / 486.8 MB, free: 12.8 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004785/1.065, allocations: 356 kB / 487.2 MB, free: 12.46 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004927/1.065, allocations: 381.5 kB / 487.6 MB, free: 12.08 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03061/1.096, allocations: 9.665 MB / 497.2 MB, free: 2.402 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08269/1.178, allocations: 35.72 MB / 0.5204 GB, free: 13.79 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.5942/1.773, allocations: 16.93 MB / 0.537 GB, free: 131.8 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008995/1.782, allocations: 3.521 MB / 0.5404 GB, free: 131.8 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02313/1.805, allocations: 9.745 MB / 0.5499 GB, free: 126.8 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.266e-05/1.805, allocations: 64.89 kB / 0.55 GB, free: 126.7 MB / 446.1 MB Notification: Performance of pre-optimization done (n=310): time 5.941e-06/1.805, allocations: 0 / 0.55 GB, free: 126.7 MB / 446.1 MB Notification: Performance of matching and sorting (n=362): time 0.04251/1.848, allocations: 15.26 MB / 0.5649 GB, free: 120.1 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.151e-05/1.848, allocations: 85.98 kB / 0.565 GB, free: 120 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01364/1.861, allocations: 4.438 MB / 0.5693 GB, free: 118.4 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009431/1.862, allocations: 81.45 kB / 0.5694 GB, free: 118.3 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003595/1.866, allocations: 3.89 MB / 0.5732 GB, free: 115.4 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00198/1.868, allocations: 1.225 MB / 0.5744 GB, free: 114.4 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002016/1.87, allocations: 0.7975 MB / 0.5752 GB, free: 114 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.34e-05/1.87, allocations: 308 kB / 0.5755 GB, free: 113.7 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00582/1.876, allocations: 1.894 MB / 0.5773 GB, free: 113 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006789/1.883, allocations: 3.361 MB / 0.5806 GB, free: 110.4 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01343/1.896, allocations: 5.617 MB / 0.5861 GB, free: 106.3 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.683e-05/1.896, allocations: 12 kB / 0.5861 GB, free: 106.3 MB / 446.1 MB Notification: Performance of matching and sorting (n=587) (initialization): time 0.0222/1.919, allocations: 6.515 MB / 0.5924 GB, free: 99.71 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.952e-05/1.919, allocations: 27.94 kB / 0.5925 GB, free: 99.68 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001212/1.919, allocations: 44 kB / 0.5925 GB, free: 99.64 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003139/1.922, allocations: 0.7399 MB / 0.5932 GB, free: 98.88 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007996/1.93, allocations: 1.041 MB / 0.5943 GB, free: 97.84 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0161/1.946, allocations: 10.99 MB / 0.605 GB, free: 86.32 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008552/1.955, allocations: 231.7 kB / 0.6052 GB, free: 86.09 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001483/1.956, allocations: 212 kB / 0.6054 GB, free: 85.88 MB / 446.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.01081/1.967, allocations: 2.531 MB / 0.6079 GB, free: 83.34 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003774/1.971, allocations: 490 kB / 0.6083 GB, free: 82.86 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02037/1.992, allocations: 5.431 MB / 0.6137 GB, free: 77.33 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.077e-05/1.992, allocations: 40 kB / 0.6137 GB, free: 77.29 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.45e-05/1.992, allocations: 8 kB / 0.6137 GB, free: 77.29 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.627e-05/1.992, allocations: 19.94 kB / 0.6137 GB, free: 77.27 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04089/2.033, allocations: 12.85 MB / 0.6263 GB, free: 64.27 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.853e-05/2.033, allocations: 4.562 kB / 0.6263 GB, free: 64.26 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005333/2.038, allocations: 0.6007 MB / 0.6269 GB, free: 63.66 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003929/2.042, allocations: 0.9207 MB / 0.6278 GB, free: 62.73 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005939/2.043, allocations: 83.97 kB / 0.6278 GB, free: 62.64 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02432/2.067, allocations: 15.29 MB / 0.6428 GB, free: 46.68 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.608e-05/2.067, allocations: 15.88 kB / 0.6428 GB, free: 46.66 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0235/2.091, allocations: 7.964 MB / 0.6506 GB, free: 38.51 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004715/2.096, allocations: 0.9636 MB / 0.6515 GB, free: 37.52 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002298/2.098, allocations: 76 kB / 0.6516 GB, free: 37.45 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005927/2.104, allocations: 187.8 kB / 0.6517 GB, free: 37.27 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001138/2.105, allocations: 270.3 kB / 0.652 GB, free: 37 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005222/2.106, allocations: 104 kB / 0.6521 GB, free: 36.9 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.01036/2.116, allocations: 3.008 MB / 0.655 GB, free: 33.89 MB / 446.1 MB Notification: Performance of sort global known variables: time 9.71e-07/2.116, allocations: 0 / 0.655 GB, free: 33.89 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.01172/2.128, allocations: 1.462 MB / 0.6565 GB, free: 32.44 MB / 446.1 MB 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.02602/2.154, allocations: 8.699 MB / 0.665 GB, free: 23.55 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.03987/2.194, allocations: 8.173 MB / 0.6729 GB, free: 15.31 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.576e-05/2.194, allocations: 6.625 kB / 0.673 GB, free: 15.31 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.01123/2.205, allocations: 3.366 MB / 0.6762 GB, free: 11.88 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01599/2.221, allocations: 1.15 MB / 0.6774 GB, free: 10.73 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5811/2.802, allocations: 66.31 MB / 0.7421 GB, free: 119 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0135/2.816, allocations: 5.077 MB / 0.7471 GB, free: 117.3 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.008965/2.825, allocations: 1.069 MB / 0.7481 GB, free: 117.2 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006898/2.832, allocations: 3.36 MB / 0.7514 GB, free: 114.4 MB / 462.1 MB Notification: Performance of SimCode: time 1.623e-06/2.832, allocations: 0 / 0.7514 GB, free: 114.4 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8582/3.69, allocations: 125.6 MB / 0.8741 GB, free: 126.9 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 20.31/24, allocations: 6.297 kB / 0.8741 GB, free: 126.9 MB / 478.1 MB (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