Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_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.001184/0.001184, allocations: 113.4 kB / 17.73 MB, free: 5.355 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.00126/0.00126, allocations: 184.1 kB / 18.66 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.421/1.421, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001463/0.001464, allocations: 55.92 kB / 328.1 MB, free: 3.789 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09841/0.09988, allocations: 46.61 MB / 374.7 MB, free: 5.07 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter): time 0.2351/0.335, allocations: 21.68 MB / 396.3 MB, free: 15.9 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01609/0.3512, allocations: 6.439 MB / 402.8 MB, free: 11.19 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006272/0.3575, allocations: 124.3 kB / 402.9 MB, free: 11.15 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006325/0.3639, allocations: 1.54 MB / 404.4 MB, free: 10.29 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01248/0.3764, allocations: 2.133 MB / 406.6 MB, free: 8.883 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006897/0.3834, allocations: 1.309 MB / 407.9 MB, free: 8.051 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01433/0.3977, allocations: 6.529 MB / 414.4 MB, free: 4.355 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01144/0.4092, allocations: 5.507 MB / 419.9 MB, free: 1.625 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006732/0.416, allocations: 3.007 MB / 422.9 MB, free: 15.6 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006996/0.423, allocations: 3.565 MB / 426.5 MB, free: 12.02 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002437/0.4255, allocations: 0.8203 MB / 427.3 MB, free: 11.2 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004074/0.4296, allocations: 1.105 MB / 428.4 MB, free: 10.09 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003094/0.4327, allocations: 2.018 MB / 430.4 MB, free: 8.07 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007229/0.4399, allocations: 3.535 MB / 434 MB, free: 4.52 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01604/0.456, allocations: 10.82 MB / 444.8 MB, free: 9.664 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.734e-06/0.4561, allocations: 0 / 444.8 MB, free: 9.664 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.515e-06/0.4561, allocations: 0 / 444.8 MB, free: 9.664 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0004304/0.4565, allocations: 0 / 444.8 MB, free: 9.664 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1413 * Number of variables: 1413 Notification: Performance of Generate backend data structure: time 0.02244/0.479, allocations: 7.071 MB / 451.9 MB, free: 2.504 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.437e-05/0.4791, allocations: 8.031 kB / 451.9 MB, free: 2.496 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002821/0.4819, allocations: 0.7367 MB / 452.6 MB, free: 1.75 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006653/0.4886, allocations: 1.094 MB / 453.7 MB, free: 0.6523 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009468/0.4981, allocations: 3.538 MB / 457.2 MB, free: 13.04 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004648/0.4986, allocations: 407.1 kB / 457.6 MB, free: 12.64 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002046/0.5006, allocations: 0.5233 MB / 458.2 MB, free: 12.12 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01927/0.5199, allocations: 7.055 MB / 465.2 MB, free: 4.992 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002733/0.5202, allocations: 11.95 kB / 465.2 MB, free: 4.98 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001508/0.5218, allocations: 220 kB / 465.4 MB, free: 4.766 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000295/0.5221, allocations: 266.5 kB / 465.7 MB, free: 4.504 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01632/0.5384, allocations: 5.933 MB / 471.6 MB, free: 14.56 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04808/0.5865, allocations: 22.23 MB / 493.9 MB, free: 7.766 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009453/0.596, allocations: 8.292 MB / 0.4904 GB, free: 14.58 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004284/0.6004, allocations: 2.156 MB / 0.4925 GB, free: 12.42 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01514/0.6155, allocations: 6.184 MB / 0.4985 GB, free: 6.102 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.49e-05/0.6157, allocations: 64.5 kB / 0.4986 GB, free: 6.027 MB / 430.1 MB Notification: Performance of pre-optimization done (n=220): time 5.24e-06/0.6157, allocations: 0 / 0.4986 GB, free: 6.027 MB / 430.1 MB Notification: Performance of matching and sorting (n=240): time 0.02675/0.6424, allocations: 11.22 MB / 0.5096 GB, free: 10.55 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.79e-05/0.6425, allocations: 77.41 kB / 0.5096 GB, free: 10.46 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006371/0.6489, allocations: 3.152 MB / 0.5127 GB, free: 7.309 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003879/0.6493, allocations: 65.7 kB / 0.5128 GB, free: 7.238 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00209/0.6514, allocations: 2.572 MB / 0.5153 GB, free: 4.648 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001037/0.6525, allocations: 0.8676 MB / 0.5161 GB, free: 3.773 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001426/0.6539, allocations: 0.5578 MB / 0.5167 GB, free: 3.207 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.831e-05/0.654, allocations: 305.1 kB / 0.517 GB, free: 2.906 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002524/0.6566, allocations: 1.341 MB / 0.5183 GB, free: 1.562 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003119/0.6597, allocations: 2.339 MB / 0.5206 GB, free: 14.78 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005996/0.6657, allocations: 3.924 MB / 0.5244 GB, free: 10.38 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.615e-05/0.6658, allocations: 12 kB / 0.5244 GB, free: 10.37 MB / 462.1 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.009676/0.6755, allocations: 4.719 MB / 0.529 GB, free: 5.539 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.278e-05/0.6756, allocations: 20 kB / 0.529 GB, free: 5.52 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.416e-05/0.6756, allocations: 36 kB / 0.5291 GB, free: 5.484 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001254/0.6769, allocations: 0.5226 MB / 0.5296 GB, free: 4.941 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003198/0.6801, allocations: 0.741 MB / 0.5303 GB, free: 4.199 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01052/0.6907, allocations: 10.29 MB / 0.5403 GB, free: 9.215 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003835/0.6946, allocations: 195.7 kB / 0.5405 GB, free: 9.023 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007158/0.6953, allocations: 136 kB / 0.5407 GB, free: 8.891 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 144 * 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 (380): * Single equations (assignments): 373 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (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): 5 systems {(3,12,100.0%), (1,3,100.0%), (1,1,100.0%), (1,1,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004195/0.6995, allocations: 1.571 MB / 0.5422 GB, free: 7.309 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001133/0.7007, allocations: 361.7 kB / 0.5425 GB, free: 6.953 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008362/0.7091, allocations: 4.049 MB / 0.5465 GB, free: 2.805 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.181e-05/0.7091, allocations: 24 kB / 0.5465 GB, free: 2.781 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.774e-05/0.7092, allocations: 8 kB / 0.5465 GB, free: 2.773 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.102e-05/0.7092, allocations: 15.89 kB / 0.5465 GB, free: 2.758 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2375/0.9467, allocations: 8.965 MB / 0.5553 GB, free: 144.9 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.797e-05/0.9468, allocations: 7.094 kB / 0.5553 GB, free: 144.9 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002005/0.9488, allocations: 407.4 kB / 0.5557 GB, free: 144.9 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002435/0.9513, allocations: 0.7277 MB / 0.5564 GB, free: 144.6 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002854/0.9516, allocations: 69.88 kB / 0.5565 GB, free: 144.6 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01615/0.9677, allocations: 16.74 MB / 0.5728 GB, free: 130.6 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.833e-06/0.9678, allocations: 9.438 kB / 0.5728 GB, free: 130.6 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0111/0.9789, allocations: 5.854 MB / 0.5785 GB, free: 128 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002237/0.9812, allocations: 0.7114 MB / 0.5792 GB, free: 127.8 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005972/0.9818, allocations: 59.2 kB / 0.5793 GB, free: 127.7 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001746/0.9835, allocations: 139.9 kB / 0.5794 GB, free: 127.7 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004415/0.984, allocations: 180.9 kB / 0.5796 GB, free: 127.6 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00015/0.9841, allocations: 73.92 kB / 0.5797 GB, free: 127.6 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003573/0.9877, allocations: 2.13 MB / 0.5818 GB, free: 126.8 MB / 478.1 MB Notification: Performance of sort global known variables: time 3.3e-07/0.9877, allocations: 0 / 0.5818 GB, free: 126.8 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004185/0.9919, allocations: 0.9899 MB / 0.5827 GB, free: 126.8 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 13 (vfController.x,smpmM.inertiaRotor.w,smpmM.stator.core.Phi.re,smpmM.stator.core.Phi.im,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smpmE.inertiaRotor.w,smpmE.idq_sr[1],smpmE.idq_sr[2],smpmE.idq_rr[2],smpmE.idq_dr[1],loadInertiaM.phi,loadInertiaE.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 (201): * Single equations (assignments): 193 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(1,5,100.0%), (3,12,100.0%), (1,3,100.0%), (1,1,100.0%), (2,1,100.0%), (1,1,100.0%), (1,8,100.0%), (2,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00898/1.001, allocations: 6.563 MB / 0.5891 GB, free: 123.6 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.005792/1.007, allocations: 4.154 MB / 0.5932 GB, free: 121.6 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 9.949e-06/1.007, allocations: 3.906 kB / 0.5932 GB, free: 121.6 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003929/1.011, allocations: 2.742 MB / 0.5959 GB, free: 120.1 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004784/1.016, allocations: 0.9642 MB / 0.5968 GB, free: 119.7 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05591/1.071, allocations: 35.65 MB / 0.6316 GB, free: 84.29 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003003/1.075, allocations: 3.411 MB / 0.635 GB, free: 80.84 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002681/1.077, allocations: 0.8034 MB / 0.6357 GB, free: 80.04 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002424/1.08, allocations: 2.104 MB / 0.6378 GB, free: 77.93 MB / 478.1 MB Notification: Performance of SimCode: time 1.062e-06/1.08, allocations: 0 / 0.6378 GB, free: 77.93 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1609/1.241, allocations: 88.18 MB / 0.7239 GB, free: 5.594 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.56/18.8, allocations: 12.86 kB / 0.7239 GB, free: 5.582 MB / 494.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SMPM_Inverter/SMPM_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches