Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.SMEE_Generator_MultiPhase,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator_MultiPhase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator_MultiPhase",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.001784/0.001784, allocations: 99.02 kB / 17.58 MB, free: 5.418 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.001884/0.001884, allocations: 192 kB / 18.51 MB, free: 4.508 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.269/2.269, allocations: 205.1 MB / 224.4 MB, free: 12.31 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002362/0.002363, allocations: 51.92 kB / 280.8 MB, free: 3.074 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1455/0.1479, allocations: 46.63 MB / 327.4 MB, free: 4.379 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase): time 0.04893/0.1969, allocations: 29.42 MB / 356.8 MB, free: 6.812 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02674/0.2237, allocations: 8.132 MB / 364.9 MB, free: 14.66 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009667/0.2335, allocations: 171.4 kB / 365.1 MB, free: 14.49 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009691/0.2432, allocations: 1.94 MB / 367 MB, free: 12.54 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0153/0.2586, allocations: 2.647 MB / 369.7 MB, free: 9.871 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008854/0.2675, allocations: 1.766 MB / 371.5 MB, free: 8.102 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.3112/0.5787, allocations: 10.16 MB / 381.6 MB, free: 13.59 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0218/0.6006, allocations: 9.463 MB / 391.1 MB, free: 11.71 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0129/0.6135, allocations: 4.739 MB / 395.8 MB, free: 11.25 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01439/0.628, allocations: 5.529 MB / 401.3 MB, free: 10.29 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.007795/0.6358, allocations: 1.365 MB / 402.7 MB, free: 10.29 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01068/0.6466, allocations: 1.725 MB / 404.4 MB, free: 10.29 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.008715/0.6554, allocations: 3.033 MB / 407.5 MB, free: 8.809 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01771/0.6732, allocations: 5.649 MB / 413.1 MB, free: 5.094 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03317/0.7064, allocations: 17.4 MB / 430.5 MB, free: 5.961 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.119e-05/0.7065, allocations: 0 / 430.5 MB, free: 5.961 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.425e-06/0.7065, allocations: 4 kB / 430.5 MB, free: 5.957 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0007363/0.7072, allocations: 0 / 430.5 MB, free: 5.957 MB / 334.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.05632/0.7636, allocations: 10.96 MB / 441.5 MB, free: 10.95 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.894e-05/0.7637, allocations: 8.031 kB / 441.5 MB, free: 10.94 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007419/0.7711, allocations: 1.176 MB / 442.7 MB, free: 9.754 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02336/0.7945, allocations: 2.081 MB / 444.8 MB, free: 7.672 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0237/0.8183, allocations: 5.818 MB / 450.6 MB, free: 2.066 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001181/0.8195, allocations: 0.6455 MB / 451.2 MB, free: 1.422 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00472/0.8243, allocations: 0.85 MB / 452.1 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04479/0.8691, allocations: 11.42 MB / 463.5 MB, free: 5.086 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000524/0.8697, allocations: 7.906 kB / 463.5 MB, free: 5.078 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004521/0.8742, allocations: 356.8 kB / 463.8 MB, free: 4.734 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005809/0.8748, allocations: 381.5 kB / 464.2 MB, free: 4.359 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03389/0.9087, allocations: 9.626 MB / 473.8 MB, free: 10.73 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1128/1.022, allocations: 35.72 MB / 0.4976 GB, free: 6.871 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02896/1.051, allocations: 16.93 MB / 0.5141 GB, free: 4.117 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01142/1.062, allocations: 3.499 MB / 0.5176 GB, free: 0.6094 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03241/1.095, allocations: 9.697 MB / 0.527 GB, free: 6.719 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000101/1.095, allocations: 68.97 kB / 0.5271 GB, free: 6.641 MB / 446.1 MB Notification: Performance of pre-optimization done (n=308): time 9.047e-06/1.095, allocations: 3.75 kB / 0.5271 GB, free: 6.641 MB / 446.1 MB Notification: Performance of matching and sorting (n=360): time 0.5678/1.663, allocations: 15.31 MB / 0.5421 GB, free: 147.1 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.683e-05/1.663, allocations: 88.97 kB / 0.5421 GB, free: 147.1 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01361/1.676, allocations: 4.443 MB / 0.5465 GB, free: 145.4 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009054/1.677, allocations: 84.95 kB / 0.5466 GB, free: 145.4 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004299/1.682, allocations: 3.883 MB / 0.5503 GB, free: 142.4 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002145/1.684, allocations: 1.223 MB / 0.5515 GB, free: 141.5 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002374/1.686, allocations: 0.7879 MB / 0.5523 GB, free: 141.1 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001043/1.686, allocations: 308.9 kB / 0.5526 GB, free: 140.8 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004995/1.691, allocations: 1.893 MB / 0.5545 GB, free: 140.1 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006552/1.698, allocations: 3.359 MB / 0.5577 GB, free: 137.5 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01083/1.709, allocations: 5.601 MB / 0.5632 GB, free: 133.7 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.258e-05/1.709, allocations: 15.75 kB / 0.5632 GB, free: 133.7 MB / 446.1 MB Notification: Performance of matching and sorting (n=587) (initialization): time 0.01806/1.727, allocations: 6.499 MB / 0.5696 GB, free: 130.9 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.699e-05/1.727, allocations: 25.09 kB / 0.5696 GB, free: 130.9 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001206/1.727, allocations: 46.25 kB / 0.5696 GB, free: 130.9 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0026/1.73, allocations: 0.7468 MB / 0.5704 GB, free: 130.6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00617/1.736, allocations: 1.06 MB / 0.5714 GB, free: 130.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01396/1.75, allocations: 11.01 MB / 0.5822 GB, free: 121.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006925/1.757, allocations: 233.2 kB / 0.5824 GB, free: 121.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009975/1.758, allocations: 212.4 kB / 0.5826 GB, free: 121.7 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 210 * 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,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.008905/1.767, allocations: 2.539 MB / 0.5851 GB, free: 120.3 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002325/1.769, allocations: 487.2 kB / 0.5855 GB, free: 119.9 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01403/1.784, allocations: 5.397 MB / 0.5908 GB, free: 115.2 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.438e-05/1.784, allocations: 36 kB / 0.5908 GB, free: 115.2 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.733e-05/1.784, allocations: 12.81 kB / 0.5908 GB, free: 115.2 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.444e-05/1.784, allocations: 21.52 kB / 0.5909 GB, free: 115.2 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03183/1.816, allocations: 12.82 MB / 0.6034 GB, free: 102.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.252e-05/1.816, allocations: 7.562 kB / 0.6034 GB, free: 102.8 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003974/1.82, allocations: 0.6053 MB / 0.604 GB, free: 102.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003197/1.823, allocations: 0.9156 MB / 0.6049 GB, free: 101.3 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006427/1.824, allocations: 88.77 kB / 0.605 GB, free: 101.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02059/1.844, allocations: 15.28 MB / 0.6199 GB, free: 85.28 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.806e-06/1.844, allocations: 11.94 kB / 0.6199 GB, free: 85.27 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02213/1.866, allocations: 7.938 MB / 0.6276 GB, free: 77.14 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004275/1.871, allocations: 0.9637 MB / 0.6286 GB, free: 76.15 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002322/1.873, allocations: 75.94 kB / 0.6287 GB, free: 76.07 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005546/1.879, allocations: 185 kB / 0.6288 GB, free: 75.89 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001108/1.88, allocations: 283.7 kB / 0.6291 GB, free: 75.62 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003779/1.88, allocations: 108 kB / 0.6292 GB, free: 75.51 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.008048/1.888, allocations: 3.005 MB / 0.6321 GB, free: 72.51 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.743e-06/1.888, allocations: 0 / 0.6321 GB, free: 72.51 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.01183/1.9, allocations: 1.464 MB / 0.6336 GB, free: 71.05 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * Number of states: 10 (smeeM.phiMechanical,smeeM.stator.core.Phi.re,smeeM.stator.core.Phi.im,smeeM.stator.strayReluctance.Phi.re,smeeM.stator.strayReluctance.Phi.im,smee3.phiMechanical,smee3.stator.core.Phi.re,smee3.stator.core.Phi.im,smee3.stator.strayReluctance.Phi.re,smee3.stator.strayReluctance.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.02162/1.922, allocations: 8.659 MB / 0.642 GB, free: 62.2 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0316/1.953, allocations: 8.147 MB / 0.65 GB, free: 53.98 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.573e-05/1.954, allocations: 8 kB / 0.65 GB, free: 53.98 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.008179/1.962, allocations: 3.392 MB / 0.6533 GB, free: 50.52 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0103/1.972, allocations: 1.143 MB / 0.6544 GB, free: 49.38 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4487/2.421, allocations: 66.34 MB / 0.7192 GB, free: 126.4 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01035/2.431, allocations: 5.071 MB / 0.7242 GB, free: 124.8 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.007514/2.439, allocations: 1.058 MB / 0.7252 GB, free: 124.7 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00787/2.447, allocations: 3.365 MB / 0.7285 GB, free: 121.9 MB / 446.1 MB Notification: Performance of SimCode: time 1.453e-06/2.447, allocations: 0 / 0.7285 GB, free: 121.9 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3132/2.76, allocations: 125.6 MB / 0.8511 GB, free: 8.469 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.6/22.36, allocations: 8.375 kB / 0.8511 GB, free: 8.461 MB / 446.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase_res.csv --start-time 0 --stop-time 30 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator_MultiPhase.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SMEE_Generator_MultiPhase/SMEE_Generator_MultiPhase.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches