Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.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.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter",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.001505/0.001505, allocations: 109.2 kB / 17.06 MB, free: 5.828 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.001667/0.001667, allocations: 195.9 kB / 18 MB, free: 4.965 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.325/1.325, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009577/0.0009577, allocations: 55.91 kB / 350.8 MB, free: 3.746 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2457/0.2466, allocations: 49.44 MB / 400.3 MB, free: 8.406 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.01189/0.2586, allocations: 10.31 MB / 410.6 MB, free: 14.46 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006971/0.2656, allocations: 3.415 MB / 414 MB, free: 11.03 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001746/0.2674, allocations: 59.75 kB / 414 MB, free: 10.97 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002321/0.2698, allocations: 0.8183 MB / 414.9 MB, free: 10.15 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003137/0.2729, allocations: 0.8737 MB / 415.7 MB, free: 9.27 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001292/0.2742, allocations: 431.4 kB / 416.1 MB, free: 8.848 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003674/0.2779, allocations: 2.753 MB / 418.9 MB, free: 6.082 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003323/0.2812, allocations: 2.402 MB / 421.3 MB, free: 3.609 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001952/0.2832, allocations: 1.265 MB / 422.6 MB, free: 2.34 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002469/0.2857, allocations: 1.572 MB / 424.1 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000799/0.2865, allocations: 332 kB / 424.5 MB, free: 448 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001439/0.288, allocations: 447.8 kB / 424.9 MB, free: 0 / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001468/0.2894, allocations: 0.9351 MB / 425.8 MB, free: 15.06 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002469/0.2919, allocations: 1.509 MB / 427.3 MB, free: 13.54 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005154/0.2971, allocations: 4.394 MB / 431.7 MB, free: 9.133 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.2971, allocations: 8 kB / 431.7 MB, free: 9.125 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.2971, allocations: 0 / 431.7 MB, free: 9.125 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.403e-05/0.2972, allocations: 0 / 431.7 MB, free: 9.125 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 581 * Number of variables: 581 Notification: Performance of Generate backend data structure: time 0.005703/0.3029, allocations: 3.121 MB / 434.9 MB, free: 5.938 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.114e-05/0.303, allocations: 12.03 kB / 434.9 MB, free: 5.926 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003874/0.3034, allocations: 325 kB / 435.2 MB, free: 5.598 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007399/0.3041, allocations: 331 kB / 435.5 MB, free: 5.273 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002724/0.3068, allocations: 1.638 MB / 437.2 MB, free: 3.578 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001156/0.307, allocations: 164.4 kB / 437.3 MB, free: 3.414 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003225/0.3073, allocations: 227.9 kB / 437.5 MB, free: 3.191 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00454/0.3119, allocations: 2.917 MB / 440.5 MB, free: 192 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.39e-05/0.3119, allocations: 0 / 440.5 MB, free: 192 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001995/0.3121, allocations: 95.98 kB / 440.6 MB, free: 96 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001305/0.3123, allocations: 116.3 kB / 440.7 MB, free: 15.97 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004017/0.3163, allocations: 2.433 MB / 443.1 MB, free: 13.53 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01284/0.3291, allocations: 9.026 MB / 452.1 MB, free: 4.223 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002366/0.3315, allocations: 1.708 MB / 453.8 MB, free: 2.391 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001698/0.3332, allocations: 0.9807 MB / 454.8 MB, free: 1.41 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002986/0.3336, allocations: 207.2 kB / 455 MB, free: 1.172 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.989e-05/0.3336, allocations: 43.56 kB / 455.1 MB, free: 1.121 MB / 366.1 MB Notification: Performance of pre-optimization done (n=105): time 2.826e-06/0.3336, allocations: 0 / 455.1 MB, free: 1.121 MB / 366.1 MB Notification: Performance of matching and sorting (n=122): time 0.01378/0.3474, allocations: 6.609 MB / 461.7 MB, free: 10.36 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.327e-05/0.3475, allocations: 64.41 kB / 461.7 MB, free: 10.28 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002074/0.3495, allocations: 1.565 MB / 463.3 MB, free: 8.707 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.218e-05/0.3496, allocations: 45.7 kB / 463.3 MB, free: 8.656 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008441/0.3505, allocations: 1.126 MB / 464.5 MB, free: 7.516 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003557/0.3509, allocations: 468 kB / 464.9 MB, free: 7.055 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004289/0.3513, allocations: 271.5 kB / 465.2 MB, free: 6.781 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.968e-05/0.3514, allocations: 305.1 kB / 465.5 MB, free: 6.48 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001126/0.3525, allocations: 0.7105 MB / 466.2 MB, free: 5.77 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00144/0.354, allocations: 1.134 MB / 467.3 MB, free: 4.457 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00264/0.3566, allocations: 1.979 MB / 469.3 MB, free: 2.297 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.462e-06/0.3566, allocations: 4 kB / 469.3 MB, free: 2.293 MB / 382.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.004021/0.3607, allocations: 2.531 MB / 471.8 MB, free: 15.72 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.314e-05/0.3607, allocations: 12 kB / 471.9 MB, free: 15.71 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.59e-05/0.3607, allocations: 12 kB / 471.9 MB, free: 15.7 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009643/0.3617, allocations: 426.5 kB / 472.3 MB, free: 15.27 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001266/0.363, allocations: 351.4 kB / 472.6 MB, free: 14.93 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007018/0.37, allocations: 7.138 MB / 479.8 MB, free: 7.379 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001244/0.3713, allocations: 103.8 kB / 479.9 MB, free: 7.277 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001315/0.3714, allocations: 63.94 kB / 479.9 MB, free: 7.215 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * 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 (169): * Single equations (assignments): 165 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(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): 3 systems {(3,12,100.0%), (1,6,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001189/0.3726, allocations: 0.7199 MB / 480.7 MB, free: 6.484 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003651/0.373, allocations: 186.8 kB / 480.8 MB, free: 6.301 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003822/0.3768, allocations: 2.194 MB / 483 MB, free: 4.062 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.024e-05/0.3768, allocations: 12 kB / 483 MB, free: 4.051 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.348e-05/0.3769, allocations: 7.938 kB / 483 MB, free: 4.043 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.231e-05/0.3769, allocations: 7.969 kB / 483.1 MB, free: 4.035 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008375/0.3853, allocations: 4.772 MB / 487.8 MB, free: 15.11 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.045e-05/0.3853, allocations: 4 kB / 487.8 MB, free: 15.11 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009742/0.3863, allocations: 223.7 kB / 488 MB, free: 14.89 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001151/0.3874, allocations: 450.8 kB / 488.5 MB, free: 14.44 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001094/0.3875, allocations: 39.97 kB / 488.5 MB, free: 14.4 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008251/0.3958, allocations: 8.687 MB / 497.2 MB, free: 5.148 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.608e-06/0.3958, allocations: 4 kB / 497.2 MB, free: 5.145 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004977/0.4008, allocations: 3.231 MB / 0.4887 GB, free: 1.82 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009081/0.4017, allocations: 403.9 kB / 0.4891 GB, free: 1.406 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003615/0.4021, allocations: 35.98 kB / 0.4891 GB, free: 1.371 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001038/0.4031, allocations: 83.91 kB / 0.4892 GB, free: 1.289 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002068/0.4034, allocations: 100.7 kB / 0.4893 GB, free: 1.191 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.866e-05/0.4035, allocations: 40 kB / 0.4894 GB, free: 1.152 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.00167/0.4051, allocations: 1.066 MB / 0.4904 GB, free: 92 kB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4051, allocations: 0 / 0.4904 GB, free: 92 kB / 414.1 MB Notification: Performance of remove unused functions: time 0.001714/0.4069, allocations: 488 kB / 0.4909 GB, free: 15.61 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 7 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],smpm.idq_rr[2],smpm.idq_dr[1],vfController.x,loadInertia.phi) * 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 (107): * Single equations (assignments): 103 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,12,100.0%), (1,6,100.0%), (1,1,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.005426/0.4123, allocations: 3.876 MB / 0.4946 GB, free: 11.64 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003791/0.4161, allocations: 2.301 MB / 0.4969 GB, free: 9.273 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 7.254e-06/0.4161, allocations: 4 kB / 0.4969 GB, free: 9.27 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002419/0.4186, allocations: 1.473 MB / 0.4983 GB, free: 7.742 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002409/0.421, allocations: 485.5 kB / 0.4988 GB, free: 7.281 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02786/0.4489, allocations: 17.91 MB / 0.5163 GB, free: 4.625 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00195/0.4509, allocations: 1.867 MB / 0.5181 GB, free: 2.727 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001143/0.452, allocations: 390.9 kB / 0.5185 GB, free: 2.34 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001221/0.4532, allocations: 0.8703 MB / 0.5193 GB, free: 1.469 MB / 446.1 MB Notification: Performance of SimCode: time 9.92e-07/0.4533, allocations: 0 / 0.5193 GB, free: 1.469 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2655/0.7187, allocations: 45.09 MB / 0.5634 GB, free: 114.3 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.27/12.98, allocations: 13.73 kB / 0.5634 GB, free: 114.3 MB / 462.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.csv --start-time 0 --stop-time 1.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_Inverter/SMPM_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches