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.001743/0.001742, allocations: 105.3 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.001924/0.001924, 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.187/2.187, 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.002506/0.002506, allocations: 55.92 kB / 280.8 MB, free: 3.035 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.126/0.1285, allocations: 46.63 MB / 327.4 MB, free: 4.332 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.05466/0.1832, allocations: 29.2 MB / 356.6 MB, free: 6.988 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0312/0.2145, allocations: 8.545 MB / 365.2 MB, free: 14.41 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009002/0.2236, allocations: 183.4 kB / 365.3 MB, free: 14.23 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02785/0.2515, allocations: 8.195 MB / 373.5 MB, free: 6.004 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01866/0.2702, allocations: 3.023 MB / 376.6 MB, free: 2.965 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01082/0.2811, allocations: 1.898 MB / 378.5 MB, free: 1.062 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.3125/0.5936, allocations: 10.42 MB / 388.9 MB, free: 11.51 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.06438/0.658, allocations: 21.55 MB / 410.4 MB, free: 4.168 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02107/0.6791, allocations: 5.866 MB / 416.3 MB, free: 0 / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01999/0.6992, allocations: 6.505 MB / 422.8 MB, free: 11.2 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.007343/0.7066, allocations: 1.582 MB / 424.4 MB, free: 9.621 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0112/0.7179, allocations: 1.948 MB / 426.3 MB, free: 7.75 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.009349/0.7273, allocations: 3.193 MB / 429.5 MB, free: 5.055 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.02244/0.7498, allocations: 6.122 MB / 435.6 MB, free: 15.29 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04724/0.7971, allocations: 21.06 MB / 456.7 MB, free: 10.88 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.345e-05/0.7972, allocations: 3.984 kB / 456.7 MB, free: 10.88 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.867e-06/0.7972, allocations: 0 / 456.7 MB, free: 10.88 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0007749/0.798, allocations: 3.938 kB / 456.7 MB, free: 10.88 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: 2782 * Number of variables: 2782 Notification: Performance of Generate backend data structure: time 0.06716/0.8652, allocations: 12.47 MB / 469.2 MB, free: 14.41 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.819e-05/0.8653, allocations: 15.89 kB / 469.2 MB, free: 14.39 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.009468/0.8748, allocations: 1.645 MB / 470.8 MB, free: 12.75 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08664/0.9615, allocations: 8.576 MB / 479.4 MB, free: 4.258 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02028/0.9818, allocations: 5.896 MB / 485.3 MB, free: 14.61 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001469/0.9834, allocations: 0.7466 MB / 486.1 MB, free: 13.87 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006574/0.99, allocations: 0.9805 MB / 487 MB, free: 12.9 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07565/1.066, allocations: 16.58 MB / 0.4918 GB, free: 12.28 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007912/1.067, allocations: 23.89 kB / 0.4918 GB, free: 12.25 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005586/1.072, allocations: 415.8 kB / 0.4922 GB, free: 11.86 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001373/1.074, allocations: 0.599 MB / 0.4928 GB, free: 11.26 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0647/1.138, allocations: 15.97 MB / 0.5084 GB, free: 11.28 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7639/1.902, allocations: 52.15 MB / 0.5593 GB, free: 120.5 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0459/1.948, allocations: 52.28 MB / 0.6104 GB, free: 70.25 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009298/1.958, allocations: 3.461 MB / 0.6138 GB, free: 68.97 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03239/1.99, allocations: 9.422 MB / 0.623 GB, free: 63.6 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.147e-05/1.99, allocations: 67.81 kB / 0.623 GB, free: 63.54 MB / 446.1 MB Notification: Performance of pre-optimization done (n=270): time 1.382e-05/1.99, allocations: 4 kB / 0.623 GB, free: 63.53 MB / 446.1 MB Notification: Performance of matching and sorting (n=278): time 0.05853/2.049, allocations: 12.94 MB / 0.6357 GB, free: 55.93 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.722e-05/2.049, allocations: 84.06 kB / 0.6358 GB, free: 55.86 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01418/2.063, allocations: 4.066 MB / 0.6397 GB, free: 53.65 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00117/2.065, allocations: 67.92 kB / 0.6398 GB, free: 53.59 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.005096/2.07, allocations: 4.642 MB / 0.6443 GB, free: 49.54 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002385/2.072, allocations: 0.991 MB / 0.6453 GB, free: 48.7 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.006712/2.079, allocations: 1.234 MB / 0.6465 GB, free: 47.98 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 8.667e-05/2.079, allocations: 301.1 kB / 0.6468 GB, free: 47.68 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00703/2.086, allocations: 2.453 MB / 0.6492 GB, free: 45.73 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009875/2.096, allocations: 5.605 MB / 0.6546 GB, free: 38.64 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01719/2.113, allocations: 8.69 MB / 0.6631 GB, free: 28.39 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001518/2.114, allocations: 32 kB / 0.6632 GB, free: 28.36 MB / 446.1 MB Notification: Performance of matching and sorting (n=778) (initialization): time 0.02984/2.143, allocations: 8.745 MB / 0.6717 GB, free: 19.56 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001255/2.144, allocations: 55.94 kB / 0.6718 GB, free: 19.51 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002234/2.144, allocations: 108.7 kB / 0.6719 GB, free: 19.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0043/2.148, allocations: 0.8801 MB / 0.6727 GB, free: 18.52 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009326/2.158, allocations: 1.404 MB / 0.6741 GB, free: 17.12 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01831/2.176, allocations: 7.564 MB / 0.6815 GB, free: 9.41 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01197/2.188, allocations: 355.3 kB / 0.6818 GB, free: 9.062 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002363/2.19, allocations: 348 kB / 0.6821 GB, free: 8.723 MB / 446.1 MB 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.01419/2.205, allocations: 3.68 MB / 0.6857 GB, free: 5.027 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002707/2.207, allocations: 422.6 kB / 0.6861 GB, free: 4.613 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02144/2.229, allocations: 5.07 MB / 0.6911 GB, free: 15.48 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.564e-05/2.229, allocations: 28 kB / 0.6911 GB, free: 15.46 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.924e-05/2.229, allocations: 15.94 kB / 0.6911 GB, free: 15.44 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001056/2.229, allocations: 15.94 kB / 0.6912 GB, free: 15.43 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05944/2.289, allocations: 12.22 MB / 0.7031 GB, free: 3.121 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.565e-05/2.289, allocations: 4 kB / 0.7031 GB, free: 3.117 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005174/2.294, allocations: 0.5187 MB / 0.7036 GB, free: 2.598 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004669/2.299, allocations: 0.7072 MB / 0.7043 GB, free: 1.887 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00104/2.3, allocations: 75.97 kB / 0.7044 GB, free: 1.812 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3396/2.639, allocations: 6.701 MB / 0.7109 GB, free: 148.8 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.254e-05/2.64, allocations: 3.781 kB / 0.7109 GB, free: 148.8 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0269/2.666, allocations: 7.342 MB / 0.7181 GB, free: 145.8 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003613/2.67, allocations: 0.8033 MB / 0.7189 GB, free: 145.5 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001751/2.672, allocations: 55.5 kB / 0.7189 GB, free: 145.5 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004176/2.676, allocations: 165.6 kB / 0.7191 GB, free: 145.4 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009218/2.677, allocations: 208.6 kB / 0.7193 GB, free: 145.4 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003538/2.677, allocations: 88.19 kB / 0.7194 GB, free: 145.4 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.009261/2.687, allocations: 2.677 MB / 0.722 GB, free: 144.4 MB / 462.1 MB Notification: Performance of sort global known variables: time 9.82e-07/2.687, allocations: 0 / 0.722 GB, free: 144.4 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.01239/2.699, allocations: 1.552 MB / 0.7235 GB, free: 144.2 MB / 462.1 MB 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.01999/2.719, allocations: 8.023 MB / 0.7313 GB, free: 140.6 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.03321/2.753, allocations: 9.115 MB / 0.7402 GB, free: 138.2 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.644e-05/2.753, allocations: 0 / 0.7402 GB, free: 138.2 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006881/2.759, allocations: 2.482 MB / 0.7426 GB, free: 137.1 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009133/2.769, allocations: 0.9404 MB / 0.7436 GB, free: 136.8 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1187/2.887, allocations: 63.49 MB / 0.8056 GB, free: 72.09 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01172/2.899, allocations: 6.203 MB / 0.8116 GB, free: 65.86 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.007594/2.907, allocations: 1.946 MB / 0.8135 GB, free: 63.91 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008565/2.915, allocations: 3.385 MB / 0.8168 GB, free: 60.52 MB / 462.1 MB Notification: Performance of SimCode: time 1.954e-06/2.915, allocations: 0 / 0.8168 GB, free: 60.52 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5377/3.453, allocations: 119 MB / 0.9331 GB, free: 110.5 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.19/21.64, allocations: 6.031 kB / 0.9331 GB, free: 110.5 MB / 462.1 MB (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