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.001919/0.00192, allocations: 107.2 kB / 16.92 MB, free: 5.855 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.002134/0.002135, allocations: 191.3 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.284/2.284, allocations: 222.9 MB / 241.5 MB, free: 15.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001722/0.001723, allocations: 38.97 kB / 300.7 MB, free: 5.715 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1595/0.1612, allocations: 49.45 MB / 350.2 MB, free: 4.258 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator): time 0.3853/0.5466, allocations: 24.09 MB / 374.3 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02543/0.5721, allocations: 7.125 MB / 381.4 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009301/0.5814, allocations: 144.1 kB / 381.5 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008709/0.5902, allocations: 1.586 MB / 383.1 MB, free: 9.277 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01463/0.605, allocations: 2.288 MB / 385.4 MB, free: 8.188 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007402/0.6124, allocations: 1.434 MB / 386.9 MB, free: 7.406 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01821/0.6307, allocations: 7.164 MB / 394 MB, free: 3.84 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.015/0.6457, allocations: 5.555 MB / 399.6 MB, free: 1.414 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008973/0.6548, allocations: 3.186 MB / 402.8 MB, free: 15.59 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01091/0.6657, allocations: 3.825 MB / 406.6 MB, free: 12.52 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004257/0.6701, allocations: 0.8711 MB / 407.5 MB, free: 11.65 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007808/0.6779, allocations: 1.314 MB / 408.8 MB, free: 10.36 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00628/0.6842, allocations: 2.125 MB / 410.9 MB, free: 8.258 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01264/0.6969, allocations: 3.779 MB / 414.7 MB, free: 4.48 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02312/0.7201, allocations: 11.38 MB / 426.1 MB, free: 9.316 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.04e-05/0.7202, allocations: 0 / 426.1 MB, free: 9.316 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.745e-06/0.7202, allocations: 0 / 426.1 MB, free: 9.316 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0005152/0.7207, allocations: 0 / 426.1 MB, free: 9.316 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: 1496 * Number of variables: 1496 Notification: Performance of Generate backend data structure: time 0.03612/0.7569, allocations: 7.412 MB / 433.5 MB, free: 1.855 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.751e-05/0.757, allocations: 11.89 kB / 433.5 MB, free: 1.844 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004031/0.761, allocations: 0.7737 MB / 434.3 MB, free: 1.062 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01216/0.7732, allocations: 1.225 MB / 435.5 MB, free: 15.83 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01385/0.7871, allocations: 4.026 MB / 439.5 MB, free: 11.79 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007257/0.7879, allocations: 438.8 kB / 439.9 MB, free: 11.36 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002514/0.7904, allocations: 0.5608 MB / 440.5 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02689/0.8174, allocations: 7.283 MB / 447.8 MB, free: 3.477 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002423/0.8177, allocations: 7.906 kB / 447.8 MB, free: 3.469 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001385/0.8191, allocations: 231.1 kB / 448 MB, free: 3.246 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000428/0.8195, allocations: 259.3 kB / 448.3 MB, free: 2.992 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02089/0.8404, allocations: 6.127 MB / 454.4 MB, free: 12.86 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07124/0.9117, allocations: 23.68 MB / 478.1 MB, free: 4.738 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01522/0.927, allocations: 8.714 MB / 486.8 MB, free: 11.09 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007273/0.9343, allocations: 2.381 MB / 489.2 MB, free: 8.703 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02198/0.9563, allocations: 6.934 MB / 496.1 MB, free: 1.625 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.734e-05/0.9565, allocations: 68.56 kB / 496.2 MB, free: 1.551 MB / 398.1 MB Notification: Performance of pre-optimization done (n=238): time 7.434e-06/0.9565, allocations: 0 / 496.2 MB, free: 1.551 MB / 398.1 MB Notification: Performance of matching and sorting (n=282): time 0.05778/1.014, allocations: 13.7 MB / 0.4979 GB, free: 3.656 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001102/1.014, allocations: 81.53 kB / 0.498 GB, free: 3.562 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01095/1.025, allocations: 3.424 MB / 0.5013 GB, free: 156 kB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008929/1.026, allocations: 73.7 kB / 0.5014 GB, free: 76 kB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004582/1.031, allocations: 2.672 MB / 0.504 GB, free: 13.38 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002312/1.033, allocations: 0.9692 MB / 0.505 GB, free: 12.42 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001945/1.035, allocations: 0.6397 MB / 0.5056 GB, free: 11.78 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001853/1.035, allocations: 305.1 kB / 0.5059 GB, free: 11.48 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005212/1.041, allocations: 1.541 MB / 0.5074 GB, free: 9.934 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007345/1.048, allocations: 2.759 MB / 0.5101 GB, free: 6.637 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01312/1.061, allocations: 4.599 MB / 0.5146 GB, free: 1.465 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.013e-05/1.061, allocations: 12 kB / 0.5146 GB, free: 1.453 MB / 430.1 MB Notification: Performance of matching and sorting (n=472) (initialization): time 0.02046/1.082, allocations: 5.467 MB / 0.5199 GB, free: 11.88 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001085/1.082, allocations: 24 kB / 0.5199 GB, free: 11.86 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001023/1.082, allocations: 36.66 kB / 0.52 GB, free: 11.82 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003174/1.085, allocations: 0.6685 MB / 0.5206 GB, free: 11.14 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006693/1.092, allocations: 0.8579 MB / 0.5215 GB, free: 10.28 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3429/1.435, allocations: 10.33 MB / 0.5316 GB, free: 139.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005708/1.441, allocations: 222.5 kB / 0.5318 GB, free: 139.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009763/1.442, allocations: 166.7 kB / 0.5319 GB, free: 139.2 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 (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.005202/1.447, allocations: 1.628 MB / 0.5335 GB, free: 139.1 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001839/1.449, allocations: 389.8 kB / 0.5339 GB, free: 139.1 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01255/1.462, allocations: 4.497 MB / 0.5383 GB, free: 137.9 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.593e-05/1.462, allocations: 31.83 kB / 0.5383 GB, free: 137.9 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.774e-05/1.462, allocations: 9.469 kB / 0.5383 GB, free: 137.9 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.947e-05/1.462, allocations: 17.72 kB / 0.5383 GB, free: 137.9 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03242/1.494, allocations: 9.911 MB / 0.548 GB, free: 133.6 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.65e-05/1.494, allocations: 3.906 kB / 0.548 GB, free: 133.6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003715/1.498, allocations: 499.7 kB / 0.5485 GB, free: 133.6 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003016/1.501, allocations: 0.7353 MB / 0.5492 GB, free: 133.3 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005328/1.502, allocations: 78.34 kB / 0.5493 GB, free: 133.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01834/1.52, allocations: 14.11 MB / 0.5631 GB, free: 122 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.347e-06/1.52, allocations: 7.875 kB / 0.5631 GB, free: 122 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01854/1.539, allocations: 6.588 MB / 0.5695 GB, free: 119 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003324/1.542, allocations: 0.7725 MB / 0.5703 GB, free: 118.7 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001173/1.543, allocations: 65.86 kB / 0.5703 GB, free: 118.6 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003764/1.547, allocations: 166.4 kB / 0.5705 GB, free: 118.6 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007406/1.548, allocations: 204.5 kB / 0.5707 GB, free: 118.6 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003013/1.548, allocations: 81.25 kB / 0.5708 GB, free: 118.6 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00612/1.554, allocations: 2.306 MB / 0.573 GB, free: 117.7 MB / 446.1 MB Notification: Performance of sort global known variables: time 6.02e-07/1.554, allocations: 0 / 0.573 GB, free: 117.7 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.007839/1.562, allocations: 1.092 MB / 0.5741 GB, free: 117.6 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 (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.01673/1.579, allocations: 7.361 MB / 0.5813 GB, free: 112.3 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.02362/1.603, allocations: 6.669 MB / 0.5878 GB, free: 105.6 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.178e-05/1.603, allocations: 0 / 0.5878 GB, free: 105.6 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.007036/1.61, allocations: 2.837 MB / 0.5905 GB, free: 102.6 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007644/1.617, allocations: 0.9003 MB / 0.5914 GB, free: 101.8 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.101/1.718, allocations: 48.18 MB / 0.6385 GB, free: 48.41 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004644/1.723, allocations: 3.491 MB / 0.6419 GB, free: 44.88 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.005331/1.728, allocations: 0.864 MB / 0.6427 GB, free: 44.01 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004546/1.733, allocations: 2.261 MB / 0.6449 GB, free: 41.75 MB / 446.1 MB Notification: Performance of SimCode: time 1.212e-06/1.733, allocations: 0 / 0.6449 GB, free: 41.75 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5824/2.315, allocations: 94.68 MB / 0.7374 GB, free: 137.9 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.45/21.77, allocations: 5.906 kB / 0.7374 GB, free: 137.9 MB / 462.1 MB (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