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.001467/0.001467, allocations: 107.5 kB / 17.06 MB, free: 5.82 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.001698/0.001699, 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.397/1.397, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001083/0.001083, allocations: 47.92 kB / 350.8 MB, free: 3.734 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2333/0.2344, allocations: 49.44 MB / 400.3 MB, free: 8.395 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.01172/0.2461, allocations: 10.31 MB / 410.6 MB, free: 14.46 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005991/0.2522, allocations: 3.427 MB / 414 MB, free: 11.02 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001496/0.2537, allocations: 55.75 kB / 414 MB, free: 10.96 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00227/0.256, allocations: 0.8183 MB / 414.9 MB, free: 10.14 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002682/0.2587, allocations: 0.8776 MB / 415.7 MB, free: 9.262 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001142/0.2599, allocations: 427.4 kB / 416.2 MB, free: 8.844 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003238/0.2631, allocations: 2.751 MB / 418.9 MB, free: 6.082 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003001/0.2661, allocations: 2.402 MB / 421.3 MB, free: 3.609 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001637/0.2678, allocations: 1.261 MB / 422.6 MB, free: 2.344 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002314/0.2701, allocations: 1.584 MB / 424.2 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005106/0.2706, allocations: 336 kB / 424.5 MB, free: 436 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007947/0.2714, allocations: 435.8 kB / 424.9 MB, free: 0 / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000852/0.2723, allocations: 0.9389 MB / 425.8 MB, free: 15.06 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001493/0.2738, allocations: 1.509 MB / 427.4 MB, free: 13.54 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004/0.2778, allocations: 4.394 MB / 431.8 MB, free: 9.133 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.2778, allocations: 0 / 431.8 MB, free: 9.133 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.2778, allocations: 0 / 431.8 MB, free: 9.133 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.441e-05/0.2779, allocations: 0 / 431.8 MB, free: 9.133 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.005433/0.2833, allocations: 3.128 MB / 434.9 MB, free: 5.938 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.038e-05/0.2834, allocations: 8.031 kB / 434.9 MB, free: 5.93 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003825/0.2838, allocations: 321 kB / 435.2 MB, free: 5.605 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007275/0.2845, allocations: 327 kB / 435.5 MB, free: 5.285 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002427/0.2869, allocations: 1.642 MB / 437.2 MB, free: 3.586 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001253/0.2871, allocations: 172.4 kB / 437.3 MB, free: 3.414 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002965/0.2874, allocations: 216 kB / 437.5 MB, free: 3.203 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004293/0.2917, allocations: 2.921 MB / 440.5 MB, free: 200 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.713e-05/0.2917, allocations: 11.98 kB / 440.5 MB, free: 188 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001862/0.2919, allocations: 92 kB / 440.6 MB, free: 96 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001248/0.2921, allocations: 112.3 kB / 440.7 MB, free: 15.98 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003871/0.2959, allocations: 2.43 MB / 443.1 MB, free: 13.54 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01199/0.308, allocations: 9.038 MB / 452.1 MB, free: 4.219 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002212/0.3102, allocations: 1.701 MB / 453.8 MB, free: 2.395 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001656/0.3119, allocations: 0.9807 MB / 454.8 MB, free: 1.414 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002733/0.3121, allocations: 207.2 kB / 455 MB, free: 1.176 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.809e-05/0.3122, allocations: 39.56 kB / 455.1 MB, free: 1.129 MB / 366.1 MB Notification: Performance of pre-optimization done (n=105): time 3.046e-06/0.3122, allocations: 3.938 kB / 455.1 MB, free: 1.125 MB / 366.1 MB Notification: Performance of matching and sorting (n=122): time 0.01352/0.3257, allocations: 6.609 MB / 461.7 MB, free: 10.36 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.889e-05/0.3258, allocations: 64.41 kB / 461.7 MB, free: 10.28 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002118/0.3279, allocations: 1.565 MB / 463.3 MB, free: 8.707 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001093/0.328, allocations: 45.7 kB / 463.4 MB, free: 8.656 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007643/0.3288, allocations: 1.138 MB / 464.5 MB, free: 7.504 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003351/0.3292, allocations: 452.1 kB / 464.9 MB, free: 7.059 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004092/0.3296, allocations: 271.5 kB / 465.2 MB, free: 6.785 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.022e-05/0.3297, allocations: 305.1 kB / 465.5 MB, free: 6.484 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001132/0.3308, allocations: 0.7105 MB / 466.2 MB, free: 5.773 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001407/0.3322, allocations: 1.142 MB / 467.3 MB, free: 4.453 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002649/0.3349, allocations: 1.971 MB / 469.3 MB, free: 2.301 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.935e-06/0.3349, allocations: 4 kB / 469.3 MB, free: 2.297 MB / 382.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.004265/0.3392, allocations: 2.535 MB / 471.9 MB, free: 15.72 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.797e-05/0.3392, allocations: 18.56 kB / 471.9 MB, free: 15.71 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.083e-05/0.3392, allocations: 12 kB / 471.9 MB, free: 15.7 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009935/0.3402, allocations: 415.1 kB / 472.3 MB, free: 15.28 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001262/0.3415, allocations: 355.5 kB / 472.6 MB, free: 14.93 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007024/0.3486, allocations: 7.13 MB / 479.8 MB, free: 7.387 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001279/0.3499, allocations: 111.8 kB / 479.9 MB, free: 7.277 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001486/0.35, 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.001202/0.3512, allocations: 0.7137 MB / 480.7 MB, free: 6.492 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003632/0.3516, allocations: 186.8 kB / 480.8 MB, free: 6.309 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003822/0.3554, allocations: 2.19 MB / 483 MB, free: 4.074 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.155e-05/0.3555, allocations: 15.98 kB / 483 MB, free: 4.059 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.315e-05/0.3555, allocations: 15.94 kB / 483.1 MB, free: 4.043 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.151e-05/0.3555, allocations: 3.984 kB / 483.1 MB, free: 4.039 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007809/0.3633, allocations: 4.771 MB / 487.8 MB, free: 15.12 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.093e-06/0.3633, allocations: 0 / 487.8 MB, free: 15.12 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009562/0.3643, allocations: 219.7 kB / 488 MB, free: 14.9 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001164/0.3655, allocations: 459.5 kB / 488.5 MB, free: 14.44 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001059/0.3656, allocations: 31.98 kB / 488.5 MB, free: 14.41 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007948/0.3736, allocations: 8.694 MB / 497.2 MB, free: 5.148 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.88e-06/0.3736, allocations: 8 kB / 497.2 MB, free: 5.141 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005073/0.3787, allocations: 3.219 MB / 0.4887 GB, free: 1.828 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009233/0.3796, allocations: 411.8 kB / 0.4891 GB, free: 1.406 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003777/0.38, allocations: 32 kB / 0.4891 GB, free: 1.375 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009949/0.381, allocations: 87.89 kB / 0.4892 GB, free: 1.289 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002626/0.3813, allocations: 100.8 kB / 0.4893 GB, free: 1.191 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.339e-05/0.3814, allocations: 35.98 kB / 0.4894 GB, free: 1.156 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001853/0.3833, allocations: 1.07 MB / 0.4904 GB, free: 92 kB / 414.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3833, allocations: 3.938 kB / 0.4904 GB, free: 88 kB / 414.1 MB Notification: Performance of remove unused functions: time 0.00217/0.3855, allocations: 484 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.005712/0.3912, allocations: 3.88 MB / 0.4947 GB, free: 11.63 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003964/0.3952, allocations: 2.304 MB / 0.4969 GB, free: 9.266 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.642e-06/0.3952, allocations: 1.812 kB / 0.4969 GB, free: 9.266 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002419/0.3976, allocations: 1.473 MB / 0.4983 GB, free: 7.738 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002246/0.3999, allocations: 475.8 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.02709/0.427, 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.001561/0.4286, allocations: 1.867 MB / 0.5181 GB, free: 2.727 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001075/0.4297, 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.001038/0.4307, allocations: 0.8742 MB / 0.5193 GB, free: 1.465 MB / 446.1 MB Notification: Performance of SimCode: time 8.72e-07/0.4307, allocations: 0 / 0.5193 GB, free: 1.465 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2499/0.6807, allocations: 45.08 MB / 0.5634 GB, free: 114.1 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.16/12.84, allocations: 8.359 kB / 0.5634 GB, free: 114.1 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