Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_trunk_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_trunk_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 trunk/package.mo): time 0.001173/0.001173, allocations: 117.6 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001265/0.001265, allocations: 199.9 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.341/1.341, allocations: 227.4 MB / 246.9 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00124/0.001241, allocations: 59.89 kB / 358.2 MB, free: 13.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2548/0.256, allocations: 50.54 MB / 408.8 MB, free: 1.52 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator): time 0.02431/0.2804, allocations: 24.75 MB / 433.5 MB, free: 8.668 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01584/0.2963, allocations: 7.407 MB / 440.9 MB, free: 1.234 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006445/0.3028, allocations: 147.5 kB / 441.1 MB, free: 1.09 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005711/0.3085, allocations: 1.622 MB / 442.7 MB, free: 15.46 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008044/0.3166, allocations: 2.353 MB / 445.1 MB, free: 13.09 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004426/0.3211, allocations: 1.493 MB / 446.6 MB, free: 11.6 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.008991/0.3301, allocations: 7.26 MB / 453.8 MB, free: 4.316 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008193/0.3383, allocations: 5.566 MB / 459.4 MB, free: 14.66 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00549/0.3438, allocations: 3.228 MB / 462.6 MB, free: 11.43 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007752/0.3516, allocations: 3.962 MB / 466.6 MB, free: 7.449 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003117/0.3548, allocations: 0.8711 MB / 467.4 MB, free: 6.578 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004709/0.3595, allocations: 1.292 MB / 468.7 MB, free: 5.285 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003625/0.3632, allocations: 2.127 MB / 470.9 MB, free: 3.152 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007265/0.3705, allocations: 3.788 MB / 474.7 MB, free: 15.34 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01586/0.3864, allocations: 11.55 MB / 486.2 MB, free: 3.758 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.975e-06/0.3864, allocations: 0 / 486.2 MB, free: 3.758 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.266e-06/0.3865, allocations: 7.922 kB / 486.2 MB, free: 3.75 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003564/0.3868, allocations: 0 / 486.2 MB, free: 3.75 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.02275/0.4096, allocations: 7.63 MB / 493.8 MB, free: 12.03 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.117e-05/0.4096, allocations: 8.031 kB / 493.8 MB, free: 12.02 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002731/0.4124, allocations: 0.7701 MB / 494.6 MB, free: 11.24 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007732/0.4201, allocations: 1.293 MB / 495.9 MB, free: 9.941 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01053/0.4307, allocations: 4.191 MB / 0.4884 GB, free: 5.68 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004342/0.4312, allocations: 431.8 kB / 0.4888 GB, free: 5.258 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001727/0.4329, allocations: 0.5585 MB / 0.4893 GB, free: 4.699 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01715/0.4501, allocations: 7.272 MB / 0.4964 GB, free: 13.37 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002452/0.4504, allocations: 15.89 kB / 0.4965 GB, free: 13.36 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001301/0.4517, allocations: 232 kB / 0.4967 GB, free: 13.13 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003288/0.452, allocations: 259.3 kB / 0.4969 GB, free: 12.88 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01366/0.4657, allocations: 6.131 MB / 0.5029 GB, free: 6.738 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04719/0.5129, allocations: 23.56 MB / 0.5259 GB, free: 14.52 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009184/0.5222, allocations: 8.976 MB / 0.5347 GB, free: 4.547 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004747/0.527, allocations: 2.48 MB / 0.5371 GB, free: 2.059 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2544/0.7814, allocations: 7.529 MB / 0.5445 GB, free: 117.3 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.279e-05/0.7815, allocations: 58.66 kB / 0.5445 GB, free: 117.2 MB / 462.1 MB Notification: Performance of pre-optimization done (n=238): time 7.023e-06/0.7815, allocations: 0 / 0.5445 GB, free: 117.2 MB / 462.1 MB Notification: Performance of matching and sorting (n=282): time 0.03129/0.8128, allocations: 13.91 MB / 0.5581 GB, free: 112.2 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.896e-05/0.8129, allocations: 85 kB / 0.5582 GB, free: 112.2 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004473/0.8174, allocations: 3.455 MB / 0.5616 GB, free: 110.5 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000282/0.8177, allocations: 77.7 kB / 0.5616 GB, free: 110.4 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001336/0.819, allocations: 2.763 MB / 0.5643 GB, free: 108 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008235/0.8198, allocations: 1.022 MB / 0.5653 GB, free: 107 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008406/0.8207, allocations: 0.6336 MB / 0.5659 GB, free: 106.4 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 5.692e-05/0.8208, allocations: 305.1 kB / 0.5662 GB, free: 106.1 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002185/0.823, allocations: 1.549 MB / 0.5678 GB, free: 104.5 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002562/0.8255, allocations: 2.752 MB / 0.5704 GB, free: 101.3 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004948/0.8305, allocations: 4.597 MB / 0.5749 GB, free: 96.09 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.192e-05/0.8305, allocations: 8 kB / 0.5749 GB, free: 96.08 MB / 462.1 MB Notification: Performance of matching and sorting (n=472) (initialization): time 0.008016/0.8386, allocations: 5.509 MB / 0.5803 GB, free: 90.47 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.533e-05/0.8386, allocations: 24.03 kB / 0.5803 GB, free: 90.45 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.198e-05/0.8387, allocations: 43.62 kB / 0.5804 GB, free: 90.41 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001418/0.8401, allocations: 0.6824 MB / 0.581 GB, free: 89.71 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002834/0.8429, allocations: 0.8463 MB / 0.5819 GB, free: 88.86 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007795/0.8508, allocations: 10.51 MB / 0.5921 GB, free: 77.83 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003251/0.854, allocations: 223.7 kB / 0.5923 GB, free: 77.61 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003471/0.8544, allocations: 172 kB / 0.5925 GB, free: 77.44 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 (427): * Single equations (assignments): 417 * 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,6,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.002552/0.857, allocations: 1.636 MB / 0.5941 GB, free: 75.8 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000806/0.8578, allocations: 409.4 kB / 0.5945 GB, free: 75.39 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006539/0.8643, allocations: 4.523 MB / 0.5989 GB, free: 70.75 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.489e-05/0.8644, allocations: 35.98 kB / 0.599 GB, free: 70.72 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.814e-05/0.8644, allocations: 11.94 kB / 0.599 GB, free: 70.71 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.825e-05/0.8645, allocations: 11.95 kB / 0.599 GB, free: 70.7 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01535/0.8798, allocations: 9.926 MB / 0.6087 GB, free: 60.6 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.675e-05/0.8799, allocations: 8 kB / 0.6087 GB, free: 60.59 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002031/0.8819, allocations: 0.4997 MB / 0.6092 GB, free: 60.09 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001684/0.8836, allocations: 0.7496 MB / 0.6099 GB, free: 59.33 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002656/0.8839, allocations: 71.97 kB / 0.61 GB, free: 59.26 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01026/0.8942, allocations: 14.26 MB / 0.6239 GB, free: 44.19 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.682e-06/0.8942, allocations: 11.94 kB / 0.6239 GB, free: 44.18 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01014/0.9044, allocations: 6.628 MB / 0.6304 GB, free: 37.3 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002302/0.9067, allocations: 0.7911 MB / 0.6311 GB, free: 36.49 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000946/0.9077, allocations: 63.98 kB / 0.6312 GB, free: 36.43 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002379/0.9101, allocations: 171.7 kB / 0.6314 GB, free: 36.26 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004939/0.9106, allocations: 201.8 kB / 0.6316 GB, free: 36.06 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001827/0.9108, allocations: 83.97 kB / 0.6316 GB, free: 35.98 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003431/0.9142, allocations: 2.327 MB / 0.6339 GB, free: 33.67 MB / 462.1 MB Notification: Performance of sort global known variables: time 4.11e-07/0.9143, allocations: 0 / 0.6339 GB, free: 33.67 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004811/0.9191, allocations: 1.094 MB / 0.635 GB, free: 32.58 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 (235): * Single equations (assignments): 225 * 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,6,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.01005/0.9292, allocations: 7.407 MB / 0.6422 GB, free: 24.92 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006894/0.9361, allocations: 4.704 MB / 0.6468 GB, free: 20.1 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.129e-05/0.9362, allocations: 0 / 0.6468 GB, free: 20.1 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004216/0.9404, allocations: 2.859 MB / 0.6496 GB, free: 17.16 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004784/0.9452, allocations: 0.9271 MB / 0.6505 GB, free: 16.25 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06761/1.013, allocations: 39.33 MB / 0.6889 GB, free: 7.328 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004314/1.017, allocations: 3.511 MB / 0.6923 GB, free: 3.785 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.003214/1.02, allocations: 0.8565 MB / 0.6932 GB, free: 2.922 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00353/1.024, allocations: 2.264 MB / 0.6954 GB, free: 0.6562 MB / 494.1 MB Notification: Performance of SimCode: time 1.222e-06/1.024, allocations: 4 kB / 0.6954 GB, free: 0.6523 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3773/1.401, allocations: 94.11 MB / 0.7873 GB, free: 158.3 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.79/19.19, allocations: 12.84 kB / 0.7873 GB, free: 158.3 MB / 0.5294 GB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches