Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_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.SMR_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_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.001142/0.001142, allocations: 116.1 kB / 17.07 MB, free: 5.996 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.001198/0.001198, allocations: 194.9 kB / 18.01 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.269/1.269, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001024/0.001024, allocations: 51.92 kB / 350.8 MB, free: 3.738 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2397/0.2407, allocations: 49.44 MB / 400.3 MB, free: 8.406 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.0107/0.2515, allocations: 9.625 MB / 409.9 MB, free: 15.15 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005561/0.2571, allocations: 3.1 MB / 413 MB, free: 12.04 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001292/0.2584, allocations: 55.75 kB / 413 MB, free: 11.98 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001627/0.2601, allocations: 0.7017 MB / 413.7 MB, free: 11.28 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002334/0.2624, allocations: 0.7999 MB / 414.5 MB, free: 10.47 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009132/0.2633, allocations: 391.4 kB / 414.9 MB, free: 10.09 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002826/0.2662, allocations: 2.544 MB / 417.5 MB, free: 7.535 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002627/0.2688, allocations: 2.326 MB / 419.8 MB, free: 5.145 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001644/0.2705, allocations: 1.191 MB / 421 MB, free: 3.949 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001901/0.2724, allocations: 1.495 MB / 422.5 MB, free: 2.449 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004946/0.2729, allocations: 316 kB / 422.8 MB, free: 2.141 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007906/0.2737, allocations: 427.8 kB / 423.2 MB, free: 1.723 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008576/0.2746, allocations: 0.8884 MB / 424.1 MB, free: 0.832 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001686/0.2763, allocations: 1.427 MB / 425.5 MB, free: 15.4 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004409/0.2807, allocations: 4.161 MB / 429.7 MB, free: 11.22 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.2807, allocations: 0 / 429.7 MB, free: 11.22 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.2807, allocations: 0 / 429.7 MB, free: 11.22 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.886e-05/0.2808, allocations: 7.984 kB / 429.7 MB, free: 11.21 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: 553 * Number of variables: 553 Notification: Performance of Generate backend data structure: time 0.006065/0.2869, allocations: 2.964 MB / 432.6 MB, free: 8.184 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.285e-05/0.287, allocations: 11.97 kB / 432.7 MB, free: 8.172 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003893/0.2874, allocations: 316.2 kB / 433 MB, free: 7.852 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007249/0.2881, allocations: 303.2 kB / 433.3 MB, free: 7.555 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002671/0.2908, allocations: 1.547 MB / 434.8 MB, free: 5.949 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000124/0.2909, allocations: 168.1 kB / 435 MB, free: 5.781 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003265/0.2912, allocations: 208 kB / 435.2 MB, free: 5.578 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004552/0.2958, allocations: 2.803 MB / 438 MB, free: 2.688 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.334e-05/0.2959, allocations: 0 / 438 MB, free: 2.688 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001988/0.2961, allocations: 87.98 kB / 438.1 MB, free: 2.602 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001166/0.2962, allocations: 108.2 kB / 438.2 MB, free: 2.492 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003984/0.3002, allocations: 2.347 MB / 440.5 MB, free: 132 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01339/0.3136, allocations: 8.529 MB / 449 MB, free: 7.355 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002375/0.316, allocations: 1.692 MB / 450.7 MB, free: 5.539 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0017/0.3177, allocations: 0.9751 MB / 451.7 MB, free: 4.562 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002779/0.318, allocations: 203.2 kB / 451.9 MB, free: 4.328 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.95e-05/0.3181, allocations: 43.5 kB / 452 MB, free: 4.277 MB / 366.1 MB Notification: Performance of pre-optimization done (n=101): time 2.765e-06/0.3181, allocations: 0 / 452 MB, free: 4.277 MB / 366.1 MB Notification: Performance of matching and sorting (n=116): time 0.01344/0.3315, allocations: 6.277 MB / 458.2 MB, free: 13.84 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.387e-05/0.3316, allocations: 68.39 kB / 458.3 MB, free: 13.76 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002285/0.3339, allocations: 1.433 MB / 459.7 MB, free: 12.31 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001108/0.334, allocations: 45.7 kB / 459.8 MB, free: 12.26 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007475/0.3348, allocations: 1.067 MB / 460.8 MB, free: 11.18 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003822/0.3352, allocations: 440.3 kB / 461.3 MB, free: 10.75 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004634/0.3357, allocations: 251.5 kB / 461.5 MB, free: 10.5 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001552/0.3358, allocations: 357.9 kB / 461.9 MB, free: 10.14 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00118/0.337, allocations: 0.691 MB / 462.6 MB, free: 9.449 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001387/0.3384, allocations: 1.069 MB / 463.6 MB, free: 8.223 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002703/0.3411, allocations: 1.867 MB / 465.5 MB, free: 6.195 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.159e-05/0.3411, allocations: 4 kB / 465.5 MB, free: 6.191 MB / 382.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.004181/0.3453, allocations: 2.426 MB / 467.9 MB, free: 3.727 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.796e-05/0.3454, allocations: 12 kB / 467.9 MB, free: 3.715 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.539e-05/0.3454, allocations: 15.94 kB / 468 MB, free: 3.699 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000985/0.3464, allocations: 423.2 kB / 468.4 MB, free: 3.273 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001237/0.3477, allocations: 327.5 kB / 468.7 MB, free: 2.953 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007063/0.3547, allocations: 7.038 MB / 475.7 MB, free: 11.5 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001326/0.3561, allocations: 103.8 kB / 475.8 MB, free: 11.39 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001991/0.3563, allocations: 56 kB / 475.9 MB, free: 11.34 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * 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 (157): * Single equations (assignments): 153 * 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,11,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.001279/0.3576, allocations: 0.6924 MB / 476.6 MB, free: 10.64 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004348/0.358, allocations: 167 kB / 476.7 MB, free: 10.47 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003797/0.3618, allocations: 2.126 MB / 478.9 MB, free: 8.297 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.327e-05/0.3619, allocations: 16 kB / 478.9 MB, free: 8.281 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.262e-05/0.3619, allocations: 4 kB / 478.9 MB, free: 8.277 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.166e-05/0.3619, allocations: 7.922 kB / 478.9 MB, free: 8.27 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008011/0.3699, allocations: 4.56 MB / 483.5 MB, free: 3.582 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.466e-06/0.37, allocations: 4 kB / 483.5 MB, free: 3.578 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009179/0.3709, allocations: 211.7 kB / 483.7 MB, free: 3.371 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001127/0.372, allocations: 463 kB / 484.1 MB, free: 2.91 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001004/0.3721, allocations: 35.98 kB / 484.1 MB, free: 2.875 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007914/0.3801, allocations: 8.62 MB / 492.8 MB, free: 9.691 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.759e-06/0.3801, allocations: 3.938 kB / 492.8 MB, free: 9.688 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004971/0.3851, allocations: 3.112 MB / 495.9 MB, free: 6.48 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009004/0.386, allocations: 379.9 kB / 496.3 MB, free: 6.09 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003369/0.3864, allocations: 31.98 kB / 496.3 MB, free: 6.059 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001007/0.3874, allocations: 83.84 kB / 496.4 MB, free: 5.977 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002491/0.3876, allocations: 96.81 kB / 496.5 MB, free: 5.883 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.642e-05/0.3877, allocations: 35.98 kB / 496.5 MB, free: 5.848 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001647/0.3894, allocations: 0.9886 MB / 497.5 MB, free: 4.859 MB / 414.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.3894, allocations: 0 / 497.5 MB, free: 4.859 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001704/0.3911, allocations: 459.9 kB / 497.9 MB, free: 4.41 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 7 (smr.inertiaRotor.w,smr.idq_sr[1],smr.idq_sr[2],smr.idq_dr[1],smr.idq_dr[2],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 (102): * Single equations (assignments): 98 * 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,11,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.005335/0.3965, allocations: 3.757 MB / 0.4899 GB, free: 0.5547 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003652/0.4001, allocations: 2.231 MB / 0.4921 GB, free: 14.26 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 7.083e-06/0.4002, allocations: 6 kB / 0.4921 GB, free: 14.26 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002282/0.4025, allocations: 1.446 MB / 0.4935 GB, free: 12.76 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002192/0.4047, allocations: 415.4 kB / 0.4939 GB, free: 12.36 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02734/0.432, allocations: 16.93 MB / 0.5105 GB, free: 10.73 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001892/0.4339, allocations: 1.792 MB / 0.5122 GB, free: 8.91 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001052/0.435, allocations: 369.6 kB / 0.5126 GB, free: 8.543 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001137/0.4362, allocations: 0.8195 MB / 0.5134 GB, free: 7.723 MB / 446.1 MB Notification: Performance of SimCode: time 8.12e-07/0.4362, allocations: 0 / 0.5134 GB, free: 7.723 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2879/0.7241, allocations: 41.8 MB / 0.5542 GB, free: 116.7 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.78/12.51, allocations: 7.031 kB / 0.5542 GB, free: 116.7 MB / 462.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_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_SMR_Inverter.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMR_Inverter/SMR_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches