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.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,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_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.001881/0.001881, allocations: 104.2 kB / 17.58 MB, free: 5.559 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.00234/0.002341, allocations: 192 kB / 18.51 MB, free: 4.641 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.219/2.219, allocations: 205.1 MB / 224.4 MB, free: 12.3 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.001474/0.001474, allocations: 51.92 kB / 280.8 MB, free: 3.066 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09499/0.09648, allocations: 46.63 MB / 327.4 MB, free: 4.367 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator): time 0.0284/0.125, allocations: 24.04 MB / 351.4 MB, free: 12.2 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01893/0.1439, allocations: 7.117 MB / 358.5 MB, free: 5.066 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005704/0.1497, allocations: 123.6 kB / 358.7 MB, free: 4.945 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006482/0.1563, allocations: 1.572 MB / 360.2 MB, free: 3.359 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01071/0.167, allocations: 2.283 MB / 362.5 MB, free: 1.062 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006044/0.1731, allocations: 1.462 MB / 364 MB, free: 15.6 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0118/0.1849, allocations: 7.165 MB / 371.2 MB, free: 8.402 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01034/0.1953, allocations: 5.474 MB / 376.6 MB, free: 2.852 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2549/0.4503, allocations: 3.178 MB / 379.8 MB, free: 16.93 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01373/0.4641, allocations: 3.812 MB / 383.6 MB, free: 16.84 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.007223/0.4714, allocations: 0.8725 MB / 384.5 MB, free: 16.84 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01093/0.4824, allocations: 1.316 MB / 385.8 MB, free: 16.84 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007752/0.4902, allocations: 2.125 MB / 387.9 MB, free: 16.6 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01829/0.5086, allocations: 3.786 MB / 391.7 MB, free: 15.66 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03115/0.5398, allocations: 11.36 MB / 403.1 MB, free: 12.33 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.491e-05/0.54, allocations: 0 / 403.1 MB, free: 12.33 MB / 318.1 MB Notification: Performance of FrontEnd: time 5.601e-06/0.54, allocations: 0 / 403.1 MB, free: 12.33 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0008158/0.5408, allocations: 0 / 403.1 MB, free: 12.33 MB / 318.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.05725/0.5981, allocations: 7.412 MB / 410.5 MB, free: 7.492 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001218/0.5983, allocations: 9.688 kB / 410.5 MB, free: 7.492 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007592/0.6059, allocations: 0.7774 MB / 411.3 MB, free: 6.918 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01724/0.6232, allocations: 1.224 MB / 412.5 MB, free: 6.34 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02149/0.6448, allocations: 3.873 MB / 416.4 MB, free: 3.789 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001078/0.646, allocations: 440.5 kB / 416.8 MB, free: 3.594 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005591/0.6516, allocations: 0.5573 MB / 417.4 MB, free: 3.402 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03719/0.6889, allocations: 7.268 MB / 424.6 MB, free: 14.01 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000476/0.6895, allocations: 15.38 kB / 424.6 MB, free: 14 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003091/0.6926, allocations: 228 kB / 424.9 MB, free: 13.77 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005246/0.6932, allocations: 271.2 kB / 425.1 MB, free: 13.51 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02325/0.7165, allocations: 6.104 MB / 431.2 MB, free: 7.41 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05926/0.7758, allocations: 23.69 MB / 454.9 MB, free: 15.61 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01171/0.7875, allocations: 8.715 MB / 463.6 MB, free: 5.969 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006161/0.7938, allocations: 2.38 MB / 466 MB, free: 3.59 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01995/0.8137, allocations: 6.934 MB / 473 MB, free: 12.53 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.59e-05/0.8139, allocations: 64.56 kB / 473 MB, free: 12.46 MB / 382.1 MB Notification: Performance of pre-optimization done (n=238): time 6.382e-06/0.8139, allocations: 0 / 473 MB, free: 12.46 MB / 382.1 MB Notification: Performance of matching and sorting (n=282): time 0.04232/0.8562, allocations: 13.73 MB / 486.8 MB, free: 14.58 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.503e-05/0.8563, allocations: 85.53 kB / 486.8 MB, free: 14.48 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008434/0.8648, allocations: 3.424 MB / 490.3 MB, free: 11.07 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006987/0.8655, allocations: 73.7 kB / 490.3 MB, free: 11 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002715/0.8683, allocations: 2.675 MB / 493 MB, free: 8.301 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001601/0.8699, allocations: 0.967 MB / 494 MB, free: 7.344 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00212/0.872, allocations: 0.6361 MB / 494.6 MB, free: 6.703 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001179/0.8722, allocations: 305.1 kB / 494.9 MB, free: 6.402 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003422/0.8756, allocations: 1.549 MB / 496.5 MB, free: 4.852 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004338/0.88, allocations: 2.761 MB / 499.2 MB, free: 1.574 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008442/0.8884, allocations: 4.609 MB / 0.492 GB, free: 12.55 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.27e-05/0.8885, allocations: 12 kB / 0.492 GB, free: 12.54 MB / 414.1 MB Notification: Performance of matching and sorting (n=472) (initialization): time 0.01331/0.9018, allocations: 5.465 MB / 0.4974 GB, free: 7.219 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.474e-05/0.902, allocations: 28.09 kB / 0.4974 GB, free: 7.191 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.236e-05/0.9021, allocations: 36 kB / 0.4974 GB, free: 7.156 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001904/0.904, allocations: 0.6693 MB / 0.4981 GB, free: 6.473 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003987/0.908, allocations: 0.8679 MB / 0.4989 GB, free: 5.66 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01811/0.9261, allocations: 10.35 MB / 0.509 GB, free: 10.82 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007022/0.9332, allocations: 227.6 kB / 0.5093 GB, free: 10.59 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001217/0.9345, allocations: 172 kB / 0.5094 GB, free: 10.43 MB / 430.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.006967/0.9415, allocations: 1.624 MB / 0.511 GB, free: 8.852 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002389/0.9439, allocations: 387.3 kB / 0.5114 GB, free: 8.469 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01921/0.9632, allocations: 4.505 MB / 0.5158 GB, free: 3.863 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001051/0.9633, allocations: 35.98 kB / 0.5158 GB, free: 3.828 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.877e-05/0.9634, allocations: 8 kB / 0.5158 GB, free: 3.82 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001037/0.9635, allocations: 11.95 kB / 0.5158 GB, free: 3.809 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04466/1.008, allocations: 9.924 MB / 0.5255 GB, free: 9.762 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.725e-05/1.008, allocations: 11.98 kB / 0.5255 GB, free: 9.75 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004647/1.013, allocations: 0.4952 MB / 0.526 GB, free: 9.277 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004295/1.017, allocations: 0.7345 MB / 0.5267 GB, free: 8.527 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008842/1.018, allocations: 75.91 kB / 0.5268 GB, free: 8.453 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2182/1.237, allocations: 14.11 MB / 0.5406 GB, free: 151 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.358e-05/1.237, allocations: 8.125 kB / 0.5406 GB, free: 151 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01942/1.256, allocations: 6.595 MB / 0.547 GB, free: 149.6 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004784/1.261, allocations: 0.7724 MB / 0.5478 GB, free: 149.3 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002335/1.263, allocations: 63.7 kB / 0.5478 GB, free: 149.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005052/1.268, allocations: 163.3 kB / 0.548 GB, free: 149.2 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001162/1.27, allocations: 213.9 kB / 0.5482 GB, free: 149.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005506/1.27, allocations: 85 kB / 0.5483 GB, free: 149.1 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.008496/1.279, allocations: 2.309 MB / 0.5505 GB, free: 148.3 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.182e-06/1.279, allocations: 0 / 0.5505 GB, free: 148.3 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.006988/1.286, allocations: 1.094 MB / 0.5516 GB, free: 148.2 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.strayReluctance.Phi.re,smeeM.stator.strayReluctance.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.01416/1.3, allocations: 7.348 MB / 0.5588 GB, free: 144.6 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01629/1.316, allocations: 6.667 MB / 0.5653 GB, free: 142.5 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.545e-05/1.316, allocations: 3.625 kB / 0.5653 GB, free: 142.5 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005758/1.322, allocations: 2.83 MB / 0.5681 GB, free: 140.8 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00766/1.33, allocations: 0.9129 MB / 0.569 GB, free: 140.1 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.116/1.446, allocations: 48.18 MB / 0.616 GB, free: 90.07 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008058/1.454, allocations: 3.491 MB / 0.6194 GB, free: 86.54 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.007052/1.461, allocations: 0.864 MB / 0.6203 GB, free: 85.67 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007247/1.468, allocations: 2.229 MB / 0.6224 GB, free: 83.44 MB / 446.1 MB Notification: Performance of SimCode: time 1.543e-06/1.468, allocations: 0 / 0.6224 GB, free: 83.44 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4584/1.927, allocations: 94.75 MB / 0.715 GB, free: 148.1 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.74/20.67, allocations: 3.562 kB / 0.715 GB, free: 148.1 MB / 446.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_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/SMEE_Generator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches