Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.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.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA",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.001037/0.001037, allocations: 89.67 kB / 16.65 MB, free: 6.59 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.001179/0.001179, allocations: 182.5 kB / 17.56 MB, free: 6.203 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.336/1.336, allocations: 223.3 MB / 241.6 MB, free: 100 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003153/0.0003155, allocations: 4.656 kB / 301.6 MB, free: 5.984 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1121/0.1124, allocations: 50.41 MB / 352 MB, free: 3.562 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.261/0.3735, allocations: 26.85 MB / 378.8 MB, free: 9.742 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02229/0.3959, allocations: 8.263 MB / 387.1 MB, free: 8.133 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008841/0.4048, allocations: 198.3 kB / 387.3 MB, free: 8.094 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008417/0.4132, allocations: 1.758 MB / 389 MB, free: 7.402 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01235/0.4256, allocations: 2.52 MB / 391.5 MB, free: 6.398 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005189/0.4308, allocations: 1.541 MB / 393.1 MB, free: 5.609 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01439/0.4452, allocations: 9.859 MB / 402.9 MB, free: 496 kB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04322/0.4885, allocations: 21.37 MB / 424.3 MB, free: 13.2 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008309/0.4969, allocations: 3.756 MB / 428.1 MB, free: 9.434 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009545/0.5064, allocations: 4.582 MB / 432.6 MB, free: 4.832 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002504/0.509, allocations: 0.5977 MB / 433.2 MB, free: 4.234 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004802/0.5138, allocations: 0.9527 MB / 434.2 MB, free: 3.281 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002886/0.5167, allocations: 1.841 MB / 436 MB, free: 1.434 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01011/0.5268, allocations: 4.597 MB / 440.6 MB, free: 12.8 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02313/0.55, allocations: 19.36 MB / 460 MB, free: 9.387 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.332e-06/0.55, allocations: 0 / 460 MB, free: 9.387 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.5501, allocations: 4 kB / 460 MB, free: 9.383 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0006566/0.5507, allocations: 4 kB / 460 MB, free: 9.379 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2599 * Number of variables: 2599 Notification: Performance of Generate backend data structure: time 0.03102/0.5818, allocations: 9.793 MB / 469.8 MB, free: 15.49 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.374e-05/0.5818, allocations: 12.03 kB / 469.8 MB, free: 15.48 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005729/0.5876, allocations: 1.547 MB / 471.4 MB, free: 13.92 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03147/0.6191, allocations: 5.627 MB / 477 MB, free: 8.273 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01495/0.6341, allocations: 6.137 MB / 483.1 MB, free: 2.078 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008572/0.635, allocations: 0.7065 MB / 483.8 MB, free: 1.371 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004208/0.6392, allocations: 0.9257 MB / 484.8 MB, free: 456 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04472/0.6839, allocations: 15.09 MB / 499.8 MB, free: 1.281 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007892/0.6848, allocations: 23.81 kB / 499.9 MB, free: 1.258 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004721/0.6895, allocations: 392 kB / 0.4885 GB, free: 0.875 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007559/0.6903, allocations: 0.5156 MB / 0.489 GB, free: 364 kB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03315/0.7235, allocations: 13.74 MB / 0.5024 GB, free: 2.59 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5632/1.287, allocations: 47.82 MB / 0.5491 GB, free: 97.45 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02168/1.308, allocations: 28.55 MB / 0.577 GB, free: 69.1 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006115/1.315, allocations: 3.073 MB / 0.58 GB, free: 67.55 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006966/1.315, allocations: 244.3 kB / 0.5803 GB, free: 67.33 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000151/1.316, allocations: 73.03 kB / 0.5803 GB, free: 67.26 MB / 430.1 MB Notification: Performance of pre-optimization done (n=384): time 1.36e-05/1.316, allocations: 0 / 0.5803 GB, free: 67.26 MB / 430.1 MB Notification: Performance of matching and sorting (n=392): time 0.0359/1.352, allocations: 14.75 MB / 0.5947 GB, free: 58.86 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.19e-05/1.352, allocations: 90.7 kB / 0.5948 GB, free: 58.79 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008388/1.36, allocations: 3.604 MB / 0.5983 GB, free: 56.87 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004917/1.361, allocations: 86.08 kB / 0.5984 GB, free: 56.79 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002454/1.363, allocations: 4.046 MB / 0.6024 GB, free: 53.26 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00138/1.364, allocations: 1.343 MB / 0.6037 GB, free: 52.11 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001105/1.366, allocations: 476.8 kB / 0.6041 GB, free: 51.82 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 5.86e-05/1.366, allocations: 312.9 kB / 0.6044 GB, free: 51.51 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00421/1.37, allocations: 2.587 MB / 0.607 GB, free: 49.15 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005598/1.375, allocations: 5.08 MB / 0.6119 GB, free: 42.9 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009544/1.385, allocations: 8.333 MB / 0.6201 GB, free: 33.38 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.97e-05/1.385, allocations: 24 kB / 0.6201 GB, free: 33.36 MB / 430.1 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01505/1.4, allocations: 8.624 MB / 0.6285 GB, free: 24.7 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001093/1.4, allocations: 40 kB / 0.6285 GB, free: 24.66 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001738/1.401, allocations: 84 kB / 0.6286 GB, free: 24.58 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00248/1.403, allocations: 0.8439 MB / 0.6294 GB, free: 23.73 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004648/1.408, allocations: 1.361 MB / 0.6308 GB, free: 22.37 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01009/1.418, allocations: 7.128 MB / 0.6377 GB, free: 15.1 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005196/1.423, allocations: 327.3 kB / 0.638 GB, free: 14.78 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001201/1.424, allocations: 300 kB / 0.6383 GB, free: 14.49 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 378 * 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 (722): * Single equations (assignments): 721 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(8,40,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.008257/1.432, allocations: 3.524 MB / 0.6418 GB, free: 10.95 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001589/1.434, allocations: 407 kB / 0.6422 GB, free: 10.55 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01233/1.446, allocations: 5.976 MB / 0.648 GB, free: 4.539 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.273e-05/1.447, allocations: 40 kB / 0.648 GB, free: 4.5 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.564e-05/1.447, allocations: 8 kB / 0.648 GB, free: 4.492 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.259e-05/1.447, allocations: 19.92 kB / 0.6481 GB, free: 4.473 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03535/1.482, allocations: 15.25 MB / 0.663 GB, free: 5.031 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.26e-05/1.482, allocations: 4 kB / 0.663 GB, free: 5.027 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002931/1.485, allocations: 0.6865 MB / 0.6636 GB, free: 4.34 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002223/1.487, allocations: 0.6976 MB / 0.6643 GB, free: 3.641 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004844/1.488, allocations: 83.92 kB / 0.6644 GB, free: 3.559 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0105/1.498, allocations: 6.172 MB / 0.6704 GB, free: 13.25 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.469e-05/1.498, allocations: 11.88 kB / 0.6704 GB, free: 13.24 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01927/1.518, allocations: 8.726 MB / 0.6789 GB, free: 4.391 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003398/1.521, allocations: 0.8902 MB / 0.6798 GB, free: 3.477 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001504/1.523, allocations: 75.94 kB / 0.6799 GB, free: 3.402 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003065/1.526, allocations: 183.8 kB / 0.6801 GB, free: 3.223 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008756/1.527, allocations: 266.7 kB / 0.6803 GB, free: 2.961 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005301/1.527, allocations: 116 kB / 0.6804 GB, free: 2.848 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.006194/1.533, allocations: 2.412 MB / 0.6828 GB, free: 460 kB / 462.1 MB Notification: Performance of sort global known variables: time 2.174e-06/1.533, allocations: 0 / 0.6828 GB, free: 460 kB / 462.1 MB Notification: Performance of remove unused functions: time 0.009324/1.543, allocations: 1.549 MB / 0.6843 GB, free: 14.9 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * Number of states: 1 (smpmQS.phiMechanical) * 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 (377): * Single equations (assignments): 376 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(8,38,59.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01829/1.561, allocations: 9.457 MB / 0.6935 GB, free: 5.32 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.2669/1.828, allocations: 6.486 MB / 0.6999 GB, free: 164.1 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.777e-05/1.828, allocations: 1.062 kB / 0.6999 GB, free: 164.1 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.007356/1.835, allocations: 2.945 MB / 0.7027 GB, free: 163.9 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008323/1.844, allocations: 0.9076 MB / 0.7036 GB, free: 163.9 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1305/1.974, allocations: 64.88 MB / 0.767 GB, free: 113.4 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01065/1.985, allocations: 5.975 MB / 0.7728 GB, free: 107.4 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.006179/1.991, allocations: 1.881 MB / 0.7747 GB, free: 105.5 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005893/1.997, allocations: 3.213 MB / 0.7778 GB, free: 102.3 MB / 478.1 MB Notification: Performance of SimCode: time 1.313e-06/1.997, allocations: 4 kB / 0.7778 GB, free: 102.3 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4579/2.455, allocations: 117.2 MB / 0.8923 GB, free: 139.7 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002066/2.455, allocations: 284.8 kB / 0.8925 GB, free: 139.4 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.906/7.361, allocations: 0 / 0.8925 GB, free: 139.4 MB / 478.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_MTPA/SMPM_MTPA.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches