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.001112/0.001112, allocations: 109.9 kB / 16.92 MB, free: 5.797 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.001141/0.001141, allocations: 191.3 kB / 17.85 MB, free: 5.188 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.372/1.372, allocations: 222.9 MB / 241.5 MB, free: 15.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000958/0.0009581, allocations: 49.7 kB / 300.7 MB, free: 5.797 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08719/0.08817, allocations: 49.44 MB / 350.2 MB, free: 4.34 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.01147/0.09967, allocations: 10.31 MB / 360.5 MB, free: 9.977 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005911/0.1056, allocations: 3.427 MB / 363.9 MB, free: 6.539 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001372/0.107, allocations: 59.75 kB / 364 MB, free: 6.48 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001939/0.109, allocations: 0.7646 MB / 364.7 MB, free: 5.711 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00246/0.1115, allocations: 0.8307 MB / 365.6 MB, free: 4.875 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009514/0.1124, allocations: 423.4 kB / 366 MB, free: 4.461 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002978/0.1154, allocations: 2.732 MB / 368.7 MB, free: 1.719 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1609/0.2763, allocations: 2.403 MB / 371.1 MB, free: 11.38 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002139/0.2785, allocations: 1.249 MB / 372.4 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001992/0.2805, allocations: 1.584 MB / 373.9 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004586/0.2809, allocations: 334.6 kB / 374.3 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008226/0.2818, allocations: 436.3 kB / 374.7 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000909/0.2827, allocations: 0.9267 MB / 375.6 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001354/0.2841, allocations: 1.508 MB / 377.1 MB, free: 10.53 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003973/0.288, allocations: 4.336 MB / 381.5 MB, free: 10.02 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.2881, allocations: 0 / 381.5 MB, free: 10.02 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.2881, allocations: 0 / 381.5 MB, free: 10.02 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.411e-05/0.2882, allocations: 1.094 kB / 381.5 MB, free: 10.02 MB / 302.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.005755/0.2939, allocations: 3.052 MB / 384.5 MB, free: 8.344 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.861e-05/0.294, allocations: 9.125 kB / 384.5 MB, free: 8.344 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003688/0.2944, allocations: 323.1 kB / 384.8 MB, free: 8.152 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007786/0.2951, allocations: 315.4 kB / 385.2 MB, free: 8.004 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002212/0.2974, allocations: 1.576 MB / 386.7 MB, free: 7.152 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001346/0.2975, allocations: 173.3 kB / 386.9 MB, free: 7.07 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003178/0.2978, allocations: 226.8 kB / 387.1 MB, free: 6.996 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004481/0.3023, allocations: 2.922 MB / 390 MB, free: 5.348 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.425e-05/0.3024, allocations: 3.469 kB / 390 MB, free: 5.348 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002039/0.3026, allocations: 91.31 kB / 390.1 MB, free: 5.277 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001139/0.3027, allocations: 111.4 kB / 390.2 MB, free: 5.258 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003737/0.3065, allocations: 2.438 MB / 392.7 MB, free: 4.016 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01191/0.3184, allocations: 9.102 MB / 401.8 MB, free: 13.56 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002312/0.3208, allocations: 1.708 MB / 403.5 MB, free: 12.12 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001715/0.3225, allocations: 0.9943 MB / 404.5 MB, free: 11.13 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002781/0.3228, allocations: 206.1 kB / 404.7 MB, free: 10.89 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.326e-05/0.3228, allocations: 42.19 kB / 404.7 MB, free: 10.84 MB / 318.1 MB Notification: Performance of pre-optimization done (n=105): time 3.266e-06/0.3228, allocations: 0 / 404.7 MB, free: 10.84 MB / 318.1 MB Notification: Performance of matching and sorting (n=122): time 0.01425/0.3371, allocations: 6.564 MB / 411.3 MB, free: 4.152 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.553e-05/0.3372, allocations: 64.41 kB / 411.4 MB, free: 4.078 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002672/0.3398, allocations: 1.569 MB / 412.9 MB, free: 2.5 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.833e-05/0.34, allocations: 45.7 kB / 413 MB, free: 2.449 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007651/0.3407, allocations: 1.111 MB / 414.1 MB, free: 1.328 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003335/0.3411, allocations: 423.7 kB / 414.5 MB, free: 0.918 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004436/0.3415, allocations: 275.3 kB / 414.8 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.941e-05/0.3416, allocations: 301.1 kB / 415.1 MB, free: 356 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001219/0.3429, allocations: 0.717 MB / 415.8 MB, free: 15.63 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001435/0.3443, allocations: 1.132 MB / 416.9 MB, free: 14.32 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002692/0.347, allocations: 1.972 MB / 418.9 MB, free: 12.22 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.506e-06/0.347, allocations: 4 kB / 418.9 MB, free: 12.22 MB / 334.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.004396/0.3514, allocations: 2.516 MB / 421.4 MB, free: 9.75 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.776e-05/0.3515, allocations: 18.91 kB / 421.4 MB, free: 9.734 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.629e-05/0.3515, allocations: 12.28 kB / 421.4 MB, free: 9.723 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00101/0.3525, allocations: 430.5 kB / 421.8 MB, free: 9.293 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001295/0.3538, allocations: 348.8 kB / 422.2 MB, free: 8.973 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00726/0.3611, allocations: 7.151 MB / 429.3 MB, free: 1.445 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001702/0.3628, allocations: 103.8 kB / 429.4 MB, free: 1.344 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002282/0.3631, allocations: 64 kB / 429.5 MB, free: 1.281 MB / 334.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.001673/0.3648, allocations: 0.7238 MB / 430.2 MB, free: 0.5703 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006114/0.3654, allocations: 169.9 kB / 430.4 MB, free: 412 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004068/0.3695, allocations: 2.19 MB / 432.6 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.189e-05/0.3695, allocations: 12 kB / 432.6 MB, free: 14.17 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.416e-05/0.3695, allocations: 4 kB / 432.6 MB, free: 14.17 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.699e-05/0.3695, allocations: 11.91 kB / 432.6 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009526/0.3791, allocations: 4.791 MB / 437.4 MB, free: 9.293 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-05/0.3791, allocations: 4 kB / 437.4 MB, free: 9.289 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009757/0.3801, allocations: 219.3 kB / 437.6 MB, free: 9.086 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001201/0.3813, allocations: 462.4 kB / 438.1 MB, free: 8.629 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001145/0.3815, allocations: 43.97 kB / 438.1 MB, free: 8.586 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008229/0.3897, allocations: 8.677 MB / 446.8 MB, free: 15.39 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.464e-06/0.3897, allocations: 4 kB / 446.8 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005423/0.3952, allocations: 3.228 MB / 450 MB, free: 12.07 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009873/0.3962, allocations: 398.8 kB / 450.4 MB, free: 11.66 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004602/0.3967, allocations: 31.98 kB / 450.4 MB, free: 11.63 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00113/0.3978, allocations: 86.81 kB / 450.5 MB, free: 11.55 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002389/0.398, allocations: 104.6 kB / 450.6 MB, free: 11.45 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.431e-05/0.3981, allocations: 32 kB / 450.7 MB, free: 11.42 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001872/0.4, allocations: 1.07 MB / 451.7 MB, free: 10.36 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.4, allocations: 0 / 451.7 MB, free: 10.36 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001922/0.402, allocations: 492 kB / 452.2 MB, free: 9.875 MB / 366.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.005393/0.4074, allocations: 3.848 MB / 456.1 MB, free: 5.957 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.005013/0.4124, allocations: 2.799 MB / 458.9 MB, free: 3.156 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.982e-06/0.4124, allocations: 0 / 458.9 MB, free: 3.156 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002361/0.4148, allocations: 1.473 MB / 460.3 MB, free: 1.66 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002665/0.4175, allocations: 487.3 kB / 460.8 MB, free: 1.199 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03049/0.448, allocations: 19.62 MB / 480.4 MB, free: 12.23 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001996/0.45, allocations: 1.879 MB / 482.3 MB, free: 10.32 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.00143/0.4515, allocations: 386.9 kB / 482.7 MB, free: 9.938 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001298/0.4528, allocations: 0.8703 MB / 483.6 MB, free: 9.066 MB / 398.1 MB Notification: Performance of SimCode: time 1.563e-06/0.4528, allocations: 0 / 483.6 MB, free: 9.066 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08532/0.5381, allocations: 44.19 MB / 0.5154 GB, free: 13.38 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.909/10.45, allocations: 11.62 kB / 0.5154 GB, free: 13.37 MB / 446.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