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.001591/0.001592, allocations: 112.1 kB / 17.07 MB, free: 5.992 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: 197.3 kB / 18 MB, free: 5.074 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.363/1.363, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001378/0.001378, allocations: 47.92 kB / 350.8 MB, free: 3.727 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2236/0.225, allocations: 49.44 MB / 400.3 MB, free: 8.41 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.0121/0.2371, allocations: 10.32 MB / 410.6 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006284/0.2435, allocations: 3.419 MB / 414 MB, free: 11.02 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009172/0.2444, allocations: 59.75 kB / 414 MB, free: 10.96 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001693/0.2461, allocations: 0.7675 MB / 414.8 MB, free: 10.19 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001991/0.2481, allocations: 0.8229 MB / 415.6 MB, free: 9.359 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008328/0.249, allocations: 423.3 kB / 416.1 MB, free: 8.945 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003073/0.2521, allocations: 2.754 MB / 418.8 MB, free: 6.18 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002826/0.2549, allocations: 2.406 MB / 421.2 MB, free: 3.703 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00165/0.2566, allocations: 1.254 MB / 422.5 MB, free: 2.445 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00201/0.2586, allocations: 1.58 MB / 424 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004476/0.259, allocations: 336 kB / 424.4 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007714/0.2598, allocations: 435.8 kB / 424.8 MB, free: 108 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009488/0.2608, allocations: 0.9389 MB / 425.7 MB, free: 15.16 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00152/0.2623, allocations: 1.505 MB / 427.2 MB, free: 13.65 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004538/0.2669, allocations: 4.398 MB / 431.6 MB, free: 9.238 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.2669, allocations: 0 / 431.6 MB, free: 9.238 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.2669, allocations: 0 / 431.6 MB, free: 9.238 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.479e-05/0.267, allocations: 0 / 431.6 MB, free: 9.238 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.005763/0.2727, allocations: 3.128 MB / 434.8 MB, free: 6.043 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.932e-05/0.2728, allocations: 8.031 kB / 434.8 MB, free: 6.035 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004154/0.2732, allocations: 328.9 kB / 435.1 MB, free: 5.703 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007491/0.274, allocations: 327 kB / 435.4 MB, free: 5.383 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002584/0.2766, allocations: 1.642 MB / 437.1 MB, free: 3.684 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000144/0.2767, allocations: 164.4 kB / 437.2 MB, free: 3.52 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003215/0.277, allocations: 224 kB / 437.4 MB, free: 3.301 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004759/0.2818, allocations: 2.921 MB / 440.4 MB, free: 300 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.545e-05/0.2819, allocations: 8 kB / 440.4 MB, free: 292 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002032/0.2821, allocations: 88 kB / 440.5 MB, free: 204 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000123/0.2822, allocations: 112.3 kB / 440.6 MB, free: 88 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00424/0.2865, allocations: 2.434 MB / 443 MB, free: 13.63 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01362/0.3001, allocations: 9.042 MB / 452 MB, free: 4.316 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002477/0.3026, allocations: 1.704 MB / 453.7 MB, free: 2.488 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001807/0.3044, allocations: 0.9807 MB / 454.7 MB, free: 1.508 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002962/0.3047, allocations: 199.2 kB / 454.9 MB, free: 1.277 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.753e-05/0.3048, allocations: 47.55 kB / 455 MB, free: 1.223 MB / 366.1 MB Notification: Performance of pre-optimization done (n=105): time 2.755e-06/0.3048, allocations: 0 / 455 MB, free: 1.223 MB / 366.1 MB Notification: Performance of matching and sorting (n=122): time 0.0144/0.3192, allocations: 6.606 MB / 461.6 MB, free: 10.46 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.224e-05/0.3193, allocations: 68.41 kB / 461.6 MB, free: 10.38 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002267/0.3216, allocations: 1.565 MB / 463.2 MB, free: 8.805 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.285e-05/0.3217, allocations: 49.69 kB / 463.3 MB, free: 8.75 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009207/0.3226, allocations: 1.13 MB / 464.4 MB, free: 7.605 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004047/0.323, allocations: 452.1 kB / 464.8 MB, free: 7.16 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000462/0.3235, allocations: 275.5 kB / 465.1 MB, free: 6.883 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001291/0.3236, allocations: 301.1 kB / 465.4 MB, free: 6.586 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001279/0.3249, allocations: 0.7144 MB / 466.1 MB, free: 5.871 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001618/0.3265, allocations: 1.138 MB / 467.2 MB, free: 4.555 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00298/0.3295, allocations: 1.967 MB / 469.2 MB, free: 2.406 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.645e-06/0.3295, allocations: 4 kB / 469.2 MB, free: 2.402 MB / 382.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.004518/0.3341, allocations: 2.535 MB / 471.7 MB, free: 15.83 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.787e-05/0.3341, allocations: 15.98 kB / 471.8 MB, free: 15.81 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.932e-05/0.3341, allocations: 16.28 kB / 471.8 MB, free: 15.8 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001024/0.3352, allocations: 411.1 kB / 472.2 MB, free: 15.38 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001271/0.3364, allocations: 359.4 kB / 472.5 MB, free: 15.03 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007753/0.3442, allocations: 7.127 MB / 479.7 MB, free: 7.492 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001273/0.3455, allocations: 111.9 kB / 479.8 MB, free: 7.383 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001165/0.3456, allocations: 67.92 kB / 479.8 MB, free: 7.316 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.001217/0.3469, allocations: 0.716 MB / 480.5 MB, free: 6.59 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002939/0.3472, allocations: 178.8 kB / 480.7 MB, free: 6.414 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004018/0.3512, allocations: 2.198 MB / 482.9 MB, free: 4.172 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.429e-05/0.3512, allocations: 23.94 kB / 482.9 MB, free: 4.148 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.949e-06/0.3512, allocations: 7.938 kB / 483 MB, free: 4.141 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.488e-05/0.3512, allocations: 7.969 kB / 483 MB, free: 4.133 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008021/0.3593, allocations: 4.764 MB / 487.7 MB, free: 15.21 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.191e-06/0.3593, allocations: 0 / 487.7 MB, free: 15.21 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009527/0.3603, allocations: 219.7 kB / 487.9 MB, free: 15 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001186/0.3615, allocations: 459.3 kB / 488.4 MB, free: 14.54 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.843e-05/0.3616, allocations: 35.98 kB / 488.4 MB, free: 14.51 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009054/0.3706, allocations: 8.686 MB / 497.1 MB, free: 5.254 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.496e-06/0.3706, allocations: 8.172 kB / 497.1 MB, free: 5.246 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005423/0.3761, allocations: 3.219 MB / 0.4886 GB, free: 1.934 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00078/0.3769, allocations: 411.8 kB / 0.489 GB, free: 1.512 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002362/0.3771, allocations: 35.98 kB / 0.489 GB, free: 1.477 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000878/0.378, allocations: 83.91 kB / 0.4891 GB, free: 1.395 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002333/0.3782, allocations: 96.75 kB / 0.4892 GB, free: 1.301 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.469e-05/0.3783, allocations: 35.98 kB / 0.4892 GB, free: 1.266 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001623/0.38, allocations: 1.07 MB / 0.4903 GB, free: 204 kB / 414.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.38, allocations: 4 kB / 0.4903 GB, free: 200 kB / 414.1 MB Notification: Performance of remove unused functions: time 0.001562/0.3815, allocations: 484 kB / 0.4908 GB, free: 15.72 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.005795/0.3873, allocations: 3.884 MB / 0.4945 GB, free: 11.74 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003958/0.3913, allocations: 2.308 MB / 0.4968 GB, free: 9.367 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.849e-06/0.3913, allocations: 0 / 0.4968 GB, free: 9.367 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002517/0.3939, allocations: 1.47 MB / 0.4982 GB, free: 7.844 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002194/0.3961, allocations: 474.5 kB / 0.4987 GB, free: 7.387 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02786/0.4239, allocations: 17.92 MB / 0.5162 GB, free: 4.715 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001763/0.4257, allocations: 1.867 MB / 0.518 GB, free: 2.816 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001127/0.4269, allocations: 386.9 kB / 0.5184 GB, free: 2.434 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001205/0.4281, allocations: 0.8781 MB / 0.5192 GB, free: 1.555 MB / 446.1 MB Notification: Performance of SimCode: time 6.31e-07/0.4281, allocations: 0 / 0.5192 GB, free: 1.555 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2521/0.6802, allocations: 45.07 MB / 0.5633 GB, free: 114.2 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.7/13.38, allocations: 17.12 kB / 0.5633 GB, free: 114.2 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