Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.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.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,fileNamePrefix="Modelica_trunk_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_trunk_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 trunk/package.mo): time 0.001538/0.001538, allocations: 120.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001847/0.001847, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.398/1.398, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001421/0.001421, allocations: 59.91 kB / 358.2 MB, free: 13.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3156/0.317, allocations: 50.55 MB / 408.8 MB, free: 1.512 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.03207/0.3492, allocations: 28.62 MB / 437.4 MB, free: 4.766 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02112/0.3703, allocations: 8.481 MB / 445.9 MB, free: 12.26 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006678/0.3771, allocations: 219.3 kB / 446.1 MB, free: 12.04 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02117/0.3983, allocations: 8.231 MB / 454.3 MB, free: 3.793 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01173/0.41, allocations: 2.836 MB / 457.2 MB, free: 0.9453 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007713/0.4178, allocations: 1.883 MB / 459.1 MB, free: 15.07 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01613/0.4339, allocations: 10.03 MB / 469.1 MB, free: 5 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03995/0.474, allocations: 21.35 MB / 490.4 MB, free: 15.51 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01009/0.4841, allocations: 5.377 MB / 495.8 MB, free: 10.12 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01138/0.4955, allocations: 6.078 MB / 0.4901 GB, free: 4.023 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005488/0.5011, allocations: 1.539 MB / 0.4916 GB, free: 2.484 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008012/0.5091, allocations: 1.921 MB / 0.4935 GB, free: 0.5625 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006634/0.5158, allocations: 2.981 MB / 0.4964 GB, free: 13.57 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01283/0.5287, allocations: 5.848 MB / 0.5021 GB, free: 7.703 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02864/0.5574, allocations: 20.7 MB / 0.5223 GB, free: 2.941 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.598e-05/0.5575, allocations: 0 / 0.5223 GB, free: 2.941 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.983e-06/0.5575, allocations: 0 / 0.5223 GB, free: 2.941 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0006764/0.5582, allocations: 0 / 0.5223 GB, free: 2.941 MB / 446.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.04324/0.6015, allocations: 12.09 MB / 0.5342 GB, free: 6.734 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.835e-05/0.6016, allocations: 8.031 kB / 0.5342 GB, free: 6.727 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006237/0.6078, allocations: 1.547 MB / 0.5357 GB, free: 5.168 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.5391/1.147, allocations: 5.669 MB / 0.5412 GB, free: 111.3 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01758/1.165, allocations: 6.325 MB / 0.5474 GB, free: 109 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007627/1.165, allocations: 0.7051 MB / 0.5481 GB, free: 108.7 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004488/1.17, allocations: 0.9354 MB / 0.549 GB, free: 108.4 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04259/1.213, allocations: 15.08 MB / 0.5637 GB, free: 101.3 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005815/1.213, allocations: 15.94 kB / 0.5637 GB, free: 101.3 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003507/1.217, allocations: 399.6 kB / 0.5641 GB, free: 100.9 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005154/1.217, allocations: 0.5156 MB / 0.5646 GB, free: 100.4 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02989/1.247, allocations: 13.75 MB / 0.578 GB, free: 86.62 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08746/1.335, allocations: 47.69 MB / 0.6246 GB, free: 38.4 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01698/1.352, allocations: 28.59 MB / 0.6525 GB, free: 6.105 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004863/1.357, allocations: 3.077 MB / 0.6555 GB, free: 3.023 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000576/1.357, allocations: 325.3 kB / 0.6558 GB, free: 2.66 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001022/1.357, allocations: 81.5 kB / 0.6559 GB, free: 2.57 MB / 462.1 MB Notification: Performance of pre-optimization done (n=384): time 9.889e-06/1.357, allocations: 0 / 0.6559 GB, free: 2.57 MB / 462.1 MB Notification: Performance of matching and sorting (n=392): time 0.03887/1.396, allocations: 14.89 MB / 0.6705 GB, free: 3.781 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.923e-05/1.396, allocations: 98.42 kB / 0.6706 GB, free: 3.672 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00839/1.405, allocations: 3.611 MB / 0.6741 GB, free: 68 kB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008528/1.406, allocations: 91.06 kB / 0.6742 GB, free: 15.97 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003871/1.41, allocations: 4.195 MB / 0.6783 GB, free: 11.77 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001969/1.412, allocations: 1.404 MB / 0.6796 GB, free: 10.38 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004311/1.416, allocations: 1.164 MB / 0.6808 GB, free: 9.207 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001314/1.416, allocations: 305.1 kB / 0.6811 GB, free: 8.906 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005812/1.422, allocations: 2.588 MB / 0.6836 GB, free: 6.312 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00842/1.431, allocations: 5.088 MB / 0.6886 GB, free: 52 kB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01457/1.445, allocations: 8.341 MB / 0.6967 GB, free: 6.52 MB / 0.4982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001291/1.445, allocations: 24 kB / 0.6967 GB, free: 6.496 MB / 0.4982 GB Notification: Performance of matching and sorting (n=769) (initialization): time 0.02082/1.466, allocations: 8.657 MB / 0.7052 GB, free: 13.81 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001579/1.466, allocations: 40 kB / 0.7052 GB, free: 13.77 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001934/1.467, allocations: 87.94 kB / 0.7053 GB, free: 13.69 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002989/1.47, allocations: 0.8542 MB / 0.7061 GB, free: 12.84 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005768/1.475, allocations: 1.373 MB / 0.7075 GB, free: 11.46 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01328/1.489, allocations: 7.692 MB / 0.715 GB, free: 3.625 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005405/1.494, allocations: 335.4 kB / 0.7153 GB, free: 3.297 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00148/1.496, allocations: 304 kB / 0.7156 GB, free: 3 MB / 0.5138 GB 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.008687/1.504, allocations: 3.513 MB / 0.719 GB, free: 15.48 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001807/1.506, allocations: 429.3 kB / 0.7194 GB, free: 15.05 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01533/1.522, allocations: 5.98 MB / 0.7253 GB, free: 9.035 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.187e-05/1.522, allocations: 40 kB / 0.7253 GB, free: 8.996 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.942e-05/1.522, allocations: 8 kB / 0.7253 GB, free: 8.988 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000121/1.522, allocations: 19.92 kB / 0.7253 GB, free: 8.969 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03728/1.559, allocations: 14.97 MB / 0.74 GB, free: 9.891 MB / 0.5451 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.099e-05/1.559, allocations: 4 kB / 0.74 GB, free: 9.887 MB / 0.5451 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003435/1.563, allocations: 0.6904 MB / 0.7406 GB, free: 9.195 MB / 0.5451 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002586/1.565, allocations: 0.7099 MB / 0.7413 GB, free: 8.484 MB / 0.5451 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007212/1.566, allocations: 87.97 kB / 0.7414 GB, free: 8.398 MB / 0.5451 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01141/1.578, allocations: 6.718 MB / 0.748 GB, free: 1.543 MB / 0.5451 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.324e-05/1.578, allocations: 11.88 kB / 0.748 GB, free: 1.531 MB / 0.5451 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2753/1.853, allocations: 8.776 MB / 0.7566 GB, free: 184 MB / 0.5451 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002951/1.856, allocations: 0.8955 MB / 0.7574 GB, free: 183.7 MB / 0.5451 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001434/1.857, allocations: 85.39 kB / 0.7575 GB, free: 183.6 MB / 0.5451 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003163/1.861, allocations: 180.4 kB / 0.7577 GB, free: 183.6 MB / 0.5451 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000877/1.861, allocations: 262.2 kB / 0.7579 GB, free: 183.5 MB / 0.5451 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004395/1.862, allocations: 115.4 kB / 0.758 GB, free: 183.5 MB / 0.5451 GB Notification: Performance of sorting global known variables: time 0.005107/1.867, allocations: 2.419 MB / 0.7604 GB, free: 182.6 MB / 0.5451 GB Notification: Performance of sort global known variables: time 5.01e-07/1.867, allocations: 0 / 0.7604 GB, free: 182.6 MB / 0.5451 GB Notification: Performance of remove unused functions: time 0.008013/1.875, allocations: 1.554 MB / 0.7619 GB, free: 182.4 MB / 0.5451 GB 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.01534/1.891, allocations: 9.498 MB / 0.7712 GB, free: 178.2 MB / 0.5451 GB Notification: Performance of simCode: created initialization part: time 0.01179/1.902, allocations: 6.542 MB / 0.7776 GB, free: 175.8 MB / 0.5451 GB Notification: Performance of simCode: created event and clocks part: time 1.3e-05/1.902, allocations: 0 / 0.7776 GB, free: 175.8 MB / 0.5451 GB Notification: Performance of simCode: created simulation system equations: time 0.005551/1.908, allocations: 2.957 MB / 0.7805 GB, free: 174.6 MB / 0.5451 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007722/1.916, allocations: 0.9682 MB / 0.7814 GB, free: 174.2 MB / 0.5451 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09727/2.013, allocations: 52.66 MB / 0.8329 GB, free: 124.2 MB / 0.5451 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01037/2.024, allocations: 5.979 MB / 0.8387 GB, free: 118.2 MB / 0.5451 GB Notification: Performance of simCode: alias equations: time 0.005446/2.029, allocations: 1.877 MB / 0.8405 GB, free: 116.3 MB / 0.5451 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005823/2.035, allocations: 3.213 MB / 0.8437 GB, free: 113.1 MB / 0.5451 GB Notification: Performance of SimCode: time 1.663e-06/2.035, allocations: 4 kB / 0.8437 GB, free: 113.1 MB / 0.5451 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4337/2.469, allocations: 119.7 MB / 0.9606 GB, free: 156.9 MB / 0.5451 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.18/20.65, allocations: 7.094 kB / 0.9606 GB, free: 156.9 MB / 0.5451 GB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.csv","/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_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches