Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 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.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,fileNamePrefix="Modelica_3_2_3_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_3_2_3_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.001489/0.001488, allocations: 110 kB / 17.73 MB, free: 5.23 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.00177/0.001771, allocations: 188.1 kB / 18.66 MB, free: 4.305 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.483/1.483, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001596/0.001596, allocations: 52.39 kB / 328.1 MB, free: 3.77 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09919/0.1008, allocations: 46.62 MB / 374.7 MB, free: 5.043 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.2422/0.343, allocations: 29.22 MB / 403.9 MB, free: 10.45 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02362/0.3667, allocations: 8.525 MB / 412.4 MB, free: 4.344 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009294/0.3761, allocations: 182.6 kB / 412.6 MB, free: 4.309 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02201/0.3981, allocations: 8.196 MB / 420.8 MB, free: 14.59 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01354/0.4117, allocations: 3.032 MB / 423.8 MB, free: 12.19 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006681/0.4184, allocations: 1.912 MB / 425.7 MB, free: 10.67 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01745/0.4359, allocations: 10.5 MB / 436.2 MB, free: 2.375 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03468/0.4706, allocations: 21.46 MB / 457.7 MB, free: 12.77 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01022/0.4809, allocations: 5.602 MB / 463.3 MB, free: 7.152 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01273/0.4936, allocations: 6.361 MB / 469.7 MB, free: 0.7695 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005163/0.4988, allocations: 1.586 MB / 471.3 MB, free: 15.18 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007564/0.5064, allocations: 1.933 MB / 473.2 MB, free: 13.25 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005432/0.5119, allocations: 3.187 MB / 476.4 MB, free: 10.05 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01282/0.5247, allocations: 6.12 MB / 482.5 MB, free: 3.91 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02976/0.5545, allocations: 21.25 MB / 0.4919 GB, free: 14.59 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.822e-06/0.5546, allocations: 0 / 0.4919 GB, free: 14.59 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.5546, allocations: 0 / 0.4919 GB, free: 14.59 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0006612/0.5552, allocations: 0 / 0.4919 GB, free: 14.59 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2782 * Number of variables: 2782 Notification: Performance of Generate backend data structure: time 0.04237/0.5976, allocations: 12.67 MB / 0.5043 GB, free: 1.809 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.687e-05/0.5977, allocations: 11.89 kB / 0.5043 GB, free: 1.797 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007009/0.6047, allocations: 1.647 MB / 0.5059 GB, free: 140 kB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04878/0.6535, allocations: 8.651 MB / 0.5144 GB, free: 7.469 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0163/0.6698, allocations: 5.917 MB / 0.5202 GB, free: 1.492 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009923/0.6709, allocations: 0.7426 MB / 0.5209 GB, free: 0.7461 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004795/0.6757, allocations: 0.9765 MB / 0.5218 GB, free: 15.77 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04837/0.7241, allocations: 16.58 MB / 0.538 GB, free: 15.1 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005886/0.7247, allocations: 19.91 kB / 0.538 GB, free: 15.08 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004089/0.7288, allocations: 415.9 kB / 0.5384 GB, free: 14.68 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008222/0.7297, allocations: 0.6106 MB / 0.539 GB, free: 14.06 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4547/1.184, allocations: 15.96 MB / 0.5546 GB, free: 134.1 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09828/1.283, allocations: 51.75 MB / 0.6052 GB, free: 102.5 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02769/1.31, allocations: 52.27 MB / 0.6562 GB, free: 48.27 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005638/1.316, allocations: 3.469 MB / 0.6596 GB, free: 46.5 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01635/1.333, allocations: 9.413 MB / 0.6688 GB, free: 37.36 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.99e-05/1.333, allocations: 56.69 kB / 0.6688 GB, free: 37.3 MB / 478.1 MB Notification: Performance of pre-optimization done (n=270): time 5.36e-06/1.333, allocations: 0 / 0.6688 GB, free: 37.3 MB / 478.1 MB Notification: Performance of matching and sorting (n=278): time 0.02599/1.359, allocations: 13.06 MB / 0.6816 GB, free: 24.52 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.329e-05/1.359, allocations: 85.59 kB / 0.6817 GB, free: 24.43 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007597/1.366, allocations: 4.072 MB / 0.6857 GB, free: 20.39 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004812/1.367, allocations: 73.7 kB / 0.6857 GB, free: 20.31 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002468/1.369, allocations: 4.811 MB / 0.6904 GB, free: 15.5 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001095/1.37, allocations: 1.031 MB / 0.6914 GB, free: 14.48 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002753/1.373, allocations: 1.238 MB / 0.6926 GB, free: 13.23 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 4.275e-05/1.373, allocations: 305.1 kB / 0.6929 GB, free: 12.93 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003413/1.377, allocations: 2.448 MB / 0.6953 GB, free: 10.47 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004996/1.382, allocations: 5.603 MB / 0.7008 GB, free: 3.336 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01144/1.393, allocations: 8.694 MB / 0.7093 GB, free: 9.07 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001143/1.393, allocations: 32 kB / 0.7093 GB, free: 9.039 MB / 494.1 MB Notification: Performance of matching and sorting (n=778) (initialization): time 0.01795/1.411, allocations: 8.772 MB / 0.7179 GB, free: 220 kB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001353/1.411, allocations: 52 kB / 0.7179 GB, free: 168 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002266/1.412, allocations: 116.1 kB / 0.718 GB, free: 52 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002735/1.414, allocations: 0.8651 MB / 0.7189 GB, free: 15.18 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005095/1.42, allocations: 1.404 MB / 0.7203 GB, free: 13.78 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01255/1.432, allocations: 7.561 MB / 0.7276 GB, free: 6.066 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005345/1.437, allocations: 351.5 kB / 0.728 GB, free: 5.723 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001359/1.439, allocations: 356 kB / 0.7283 GB, free: 5.375 MB / 0.4982 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 498 * 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 (733): * Single equations (assignments): 732 * 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,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.009082/1.448, allocations: 3.68 MB / 0.7319 GB, free: 1.68 MB / 0.4982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001984/1.45, allocations: 433.2 kB / 0.7323 GB, free: 1.254 MB / 0.4982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01251/1.462, allocations: 5.074 MB / 0.7373 GB, free: 12.12 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-05/1.463, allocations: 28 kB / 0.7373 GB, free: 12.09 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.601e-05/1.463, allocations: 8 kB / 0.7373 GB, free: 12.09 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.363e-05/1.463, allocations: 15.94 kB / 0.7373 GB, free: 12.07 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2753/1.738, allocations: 12.22 MB / 0.7493 GB, free: 171.4 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.471e-05/1.738, allocations: 7.312 kB / 0.7493 GB, free: 171.4 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002831/1.741, allocations: 0.5217 MB / 0.7498 GB, free: 171.4 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002566/1.743, allocations: 0.7005 MB / 0.7505 GB, free: 171.4 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000536/1.744, allocations: 68.08 kB / 0.7505 GB, free: 171.4 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01058/1.755, allocations: 6.709 MB / 0.7571 GB, free: 169.6 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.777e-06/1.755, allocations: 3.688 kB / 0.7571 GB, free: 169.6 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01593/1.771, allocations: 7.358 MB / 0.7643 GB, free: 166.5 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003065/1.774, allocations: 0.8292 MB / 0.7651 GB, free: 166.2 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001243/1.775, allocations: 52.2 kB / 0.7651 GB, free: 166.2 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002687/1.778, allocations: 168.9 kB / 0.7653 GB, free: 166.1 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007214/1.778, allocations: 203.3 kB / 0.7655 GB, free: 166.1 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002782/1.779, allocations: 86.77 kB / 0.7656 GB, free: 166.1 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.006022/1.785, allocations: 2.676 MB / 0.7682 GB, free: 165.1 MB / 0.5138 GB Notification: Performance of sort global known variables: time 4.51e-07/1.785, allocations: 0 / 0.7682 GB, free: 165.1 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.007594/1.792, allocations: 1.557 MB / 0.7697 GB, free: 164.9 MB / 0.5138 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * 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 (263): * Single equations (assignments): 262 * 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,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0126/1.805, allocations: 8.042 MB / 0.7776 GB, free: 161.3 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.009914/1.815, allocations: 6.144 MB / 0.7836 GB, free: 158.9 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 8.456e-06/1.815, allocations: 0 / 0.7836 GB, free: 158.9 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.004252/1.819, allocations: 2.483 MB / 0.786 GB, free: 157.9 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006509/1.826, allocations: 0.9515 MB / 0.7869 GB, free: 157.6 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09543/1.921, allocations: 54.93 MB / 0.8405 GB, free: 106.2 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0105/1.932, allocations: 6.204 MB / 0.8466 GB, free: 100 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.005752/1.938, allocations: 1.943 MB / 0.8485 GB, free: 98.06 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00552/1.943, allocations: 3.385 MB / 0.8518 GB, free: 94.68 MB / 0.5138 GB Notification: Performance of SimCode: time 1.032e-06/1.943, allocations: 0 / 0.8518 GB, free: 94.68 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4215/2.365, allocations: 117.4 MB / 0.9665 GB, free: 153 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.92/24.29, allocations: 0.875 kB / 0.9665 GB, free: 153 MB / 0.5138 GB (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA.fmu > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_MTPA/SMPM_MTPA.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches