Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.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.SMEE_Generator,fileNamePrefix="Modelica_4_0_0_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_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001387/0.001387, allocations: 108 kB / 17.06 MB, free: 5.82 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.00149/0.00149, allocations: 195.9 kB / 18 MB, free: 4.965 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.305/1.305, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001113/0.001113, allocations: 47.92 kB / 350.8 MB, free: 3.73 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2754/0.2765, allocations: 49.44 MB / 400.3 MB, free: 8.418 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator): time 0.02242/0.299, allocations: 24.12 MB / 424.4 MB, free: 0.5781 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01496/0.314, allocations: 7.127 MB / 431.5 MB, free: 9.426 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005679/0.3197, allocations: 139.6 kB / 431.6 MB, free: 9.289 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005465/0.3252, allocations: 1.603 MB / 433.3 MB, free: 7.672 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009057/0.3343, allocations: 2.384 MB / 435.6 MB, free: 5.273 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004293/0.3387, allocations: 1.442 MB / 437.1 MB, free: 3.832 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0103/0.349, allocations: 7.2 MB / 444.3 MB, free: 12.61 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008924/0.3579, allocations: 5.558 MB / 449.8 MB, free: 6.965 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005855/0.3638, allocations: 3.212 MB / 453 MB, free: 3.742 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006645/0.3705, allocations: 3.833 MB / 456.9 MB, free: 15.89 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002759/0.3733, allocations: 0.8711 MB / 457.8 MB, free: 15.02 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004685/0.378, allocations: 1.304 MB / 459.1 MB, free: 13.72 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00326/0.3813, allocations: 2.131 MB / 461.2 MB, free: 11.58 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006987/0.3883, allocations: 3.773 MB / 465 MB, free: 7.793 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01585/0.4042, allocations: 11.51 MB / 476.5 MB, free: 12.24 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.883e-06/0.4042, allocations: 0 / 476.5 MB, free: 12.24 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.023e-06/0.4042, allocations: 0 / 476.5 MB, free: 12.24 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003776/0.4046, allocations: 0 / 476.5 MB, free: 12.24 MB / 398.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.02367/0.4283, allocations: 7.583 MB / 484.1 MB, free: 4.566 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.959e-05/0.4284, allocations: 8.031 kB / 484.1 MB, free: 4.559 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002742/0.4311, allocations: 0.7779 MB / 484.8 MB, free: 3.77 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007276/0.4384, allocations: 1.25 MB / 486.1 MB, free: 2.516 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01092/0.4494, allocations: 4.156 MB / 490.2 MB, free: 14.29 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004513/0.4499, allocations: 431.8 kB / 490.7 MB, free: 13.86 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00203/0.4519, allocations: 0.5662 MB / 491.2 MB, free: 13.3 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01915/0.4711, allocations: 7.284 MB / 498.5 MB, free: 5.957 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002332/0.4713, allocations: 11.95 kB / 498.5 MB, free: 5.945 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001298/0.4727, allocations: 232 kB / 498.8 MB, free: 5.719 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003035/0.473, allocations: 259.3 kB / 499 MB, free: 5.465 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01305/0.486, allocations: 6.127 MB / 0.4933 GB, free: 15.33 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04564/0.5317, allocations: 23.46 MB / 0.5162 GB, free: 7.242 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009666/0.5414, allocations: 8.71 MB / 0.5247 GB, free: 13.58 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004172/0.5456, allocations: 2.367 MB / 0.527 GB, free: 11.21 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01383/0.5595, allocations: 6.923 MB / 0.5338 GB, free: 4.062 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.628e-05/0.5596, allocations: 60.56 kB / 0.5338 GB, free: 3.992 MB / 462.1 MB Notification: Performance of pre-optimization done (n=238): time 5.139e-06/0.5596, allocations: 0 / 0.5338 GB, free: 3.992 MB / 462.1 MB Notification: Performance of matching and sorting (n=282): time 0.2414/0.801, allocations: 13.78 MB / 0.5473 GB, free: 124.3 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.267e-05/0.8011, allocations: 81.22 kB / 0.5474 GB, free: 124.2 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00447/0.8056, allocations: 3.429 MB / 0.5507 GB, free: 122.9 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003448/0.8059, allocations: 73.22 kB / 0.5508 GB, free: 122.9 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001285/0.8072, allocations: 2.747 MB / 0.5535 GB, free: 120.8 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007134/0.8079, allocations: 1.014 MB / 0.5545 GB, free: 120 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008713/0.8088, allocations: 0.6461 MB / 0.5551 GB, free: 119.6 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.781e-05/0.8089, allocations: 301.1 kB / 0.5554 GB, free: 119.4 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002147/0.811, allocations: 1.544 MB / 0.5569 GB, free: 118.8 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002489/0.8135, allocations: 2.761 MB / 0.5596 GB, free: 116.7 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004828/0.8184, allocations: 4.603 MB / 0.5641 GB, free: 113.6 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.115e-05/0.8184, allocations: 8 kB / 0.5641 GB, free: 113.5 MB / 462.1 MB Notification: Performance of matching and sorting (n=472) (initialization): time 0.007753/0.8262, allocations: 5.49 MB / 0.5695 GB, free: 108.1 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.869e-05/0.8262, allocations: 20 kB / 0.5695 GB, free: 108.1 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.541e-05/0.8263, allocations: 40 kB / 0.5695 GB, free: 108 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001364/0.8277, allocations: 0.6581 MB / 0.5702 GB, free: 107.4 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002964/0.8306, allocations: 0.8618 MB / 0.571 GB, free: 106.5 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007789/0.8384, allocations: 10.34 MB / 0.5811 GB, free: 95.65 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00358/0.8421, allocations: 225.8 kB / 0.5813 GB, free: 95.43 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004255/0.8425, allocations: 167.4 kB / 0.5815 GB, free: 95.27 MB / 462.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 (430): * Single equations (assignments): 420 * 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,3,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.002557/0.8451, allocations: 1.625 MB / 0.5831 GB, free: 93.64 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008547/0.8459, allocations: 405.5 kB / 0.5834 GB, free: 93.24 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006181/0.8521, allocations: 4.499 MB / 0.5878 GB, free: 88.61 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.37e-05/0.8522, allocations: 35.94 kB / 0.5879 GB, free: 88.58 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.045e-05/0.8522, allocations: 8 kB / 0.5879 GB, free: 88.57 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.909e-05/0.8522, allocations: 11.95 kB / 0.5879 GB, free: 88.56 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01324/0.8655, allocations: 9.887 MB / 0.5975 GB, free: 78.5 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.096e-05/0.8655, allocations: 4.094 kB / 0.5976 GB, free: 78.49 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001944/0.8675, allocations: 0.4993 MB / 0.598 GB, free: 77.99 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001566/0.869, allocations: 0.7327 MB / 0.5988 GB, free: 77.25 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001663/0.8692, allocations: 71.97 kB / 0.5988 GB, free: 77.18 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009338/0.8786, allocations: 14.14 MB / 0.6126 GB, free: 62.22 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.308e-06/0.8786, allocations: 4 kB / 0.6126 GB, free: 62.22 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008844/0.8875, allocations: 6.621 MB / 0.6191 GB, free: 55.35 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001857/0.8894, allocations: 0.7873 MB / 0.6199 GB, free: 54.54 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006019/0.89, allocations: 56 kB / 0.6199 GB, free: 54.49 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001924/0.8919, allocations: 167.8 kB / 0.6201 GB, free: 54.32 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000423/0.8923, allocations: 209.7 kB / 0.6203 GB, free: 54.12 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001647/0.8925, allocations: 83.97 kB / 0.6204 GB, free: 54.04 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003033/0.8955, allocations: 2.302 MB / 0.6226 GB, free: 51.75 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.8956, allocations: 0 / 0.6226 GB, free: 51.75 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004064/0.8996, allocations: 1.098 MB / 0.6237 GB, free: 50.65 MB / 462.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 (238): * Single equations (assignments): 228 * 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,3,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.009324/0.909, allocations: 7.359 MB / 0.6309 GB, free: 43.04 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006576/0.9156, allocations: 4.695 MB / 0.6355 GB, free: 38.23 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.456e-06/0.9156, allocations: 4 kB / 0.6355 GB, free: 38.23 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003838/0.9195, allocations: 2.849 MB / 0.6382 GB, free: 35.3 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003973/0.9235, allocations: 0.8986 MB / 0.6391 GB, free: 34.41 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05271/0.9762, allocations: 39.2 MB / 0.6774 GB, free: 9.617 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003304/0.9796, allocations: 3.495 MB / 0.6808 GB, free: 6.086 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002986/0.9826, allocations: 0.864 MB / 0.6817 GB, free: 5.215 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003079/0.9857, allocations: 2.26 MB / 0.6839 GB, free: 2.953 MB / 478.1 MB Notification: Performance of SimCode: time 1.392e-06/0.9857, allocations: 0 / 0.6839 GB, free: 2.953 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3568/1.342, allocations: 93.73 MB / 0.7754 GB, free: 158.6 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.62/18.96, allocations: 5.75 kB / 0.7754 GB, free: 158.6 MB / 0.5137 GB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches