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.001686/0.001686, allocations: 109.3 kB / 17.73 MB, free: 5.316 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.00211/0.00211, allocations: 188.2 kB / 18.66 MB, free: 4.387 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.539/1.539, allocations: 205.1 MB / 224.5 MB, free: 12.21 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.001655/0.001655, allocations: 55.92 kB / 328.1 MB, free: 3.773 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0974/0.09907, allocations: 46.61 MB / 374.7 MB, free: 5.055 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter): time 0.2113/0.3104, allocations: 21.68 MB / 396.3 MB, free: 15.88 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01848/0.3289, allocations: 6.446 MB / 402.8 MB, free: 11.16 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005546/0.3346, allocations: 120.7 kB / 402.9 MB, free: 11.12 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006359/0.341, allocations: 1.476 MB / 404.4 MB, free: 10.31 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01116/0.3522, allocations: 2.047 MB / 406.4 MB, free: 8.961 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006118/0.3583, allocations: 1.304 MB / 407.7 MB, free: 8.129 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01647/0.3748, allocations: 6.529 MB / 414.3 MB, free: 4.438 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01147/0.3863, allocations: 5.509 MB / 419.8 MB, free: 1.707 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007152/0.3935, allocations: 2.984 MB / 422.8 MB, free: 15.74 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008112/0.4017, allocations: 3.557 MB / 426.3 MB, free: 12.17 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002865/0.4045, allocations: 0.8203 MB / 427.1 MB, free: 11.35 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004615/0.4092, allocations: 1.105 MB / 428.2 MB, free: 10.25 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004138/0.4134, allocations: 2.018 MB / 430.3 MB, free: 8.223 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01029/0.4237, allocations: 3.535 MB / 433.8 MB, free: 4.672 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01995/0.4437, allocations: 10.83 MB / 444.6 MB, free: 9.812 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.885e-06/0.4437, allocations: 0 / 444.6 MB, free: 9.812 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.4437, allocations: 0 / 444.6 MB, free: 9.812 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0004193/0.4441, allocations: 0 / 444.6 MB, free: 9.812 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.02278/0.4669, allocations: 7.067 MB / 451.7 MB, free: 2.656 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.634e-05/0.467, allocations: 8.031 kB / 451.7 MB, free: 2.648 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002625/0.4696, allocations: 0.7446 MB / 452.4 MB, free: 1.895 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006478/0.4761, allocations: 1.098 MB / 453.5 MB, free: 0.793 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009594/0.4858, allocations: 3.538 MB / 457.1 MB, free: 13.18 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000579/0.4864, allocations: 399.1 kB / 457.5 MB, free: 12.79 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002258/0.4886, allocations: 0.5272 MB / 458 MB, free: 12.27 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02001/0.5087, allocations: 7.052 MB / 465 MB, free: 5.141 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00022/0.5089, allocations: 11.94 kB / 465 MB, free: 5.129 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001009/0.51, allocations: 220 kB / 465.3 MB, free: 4.914 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002755/0.5102, allocations: 270.5 kB / 465.5 MB, free: 4.648 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0134/0.5237, allocations: 5.925 MB / 471.5 MB, free: 14.71 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04711/0.5708, allocations: 22.24 MB / 493.7 MB, free: 7.906 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01053/0.5814, allocations: 8.289 MB / 0.4902 GB, free: 14.72 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004678/0.5861, allocations: 2.159 MB / 0.4923 GB, free: 12.56 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01458/0.6007, allocations: 6.177 MB / 0.4984 GB, free: 6.25 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.245e-05/0.6009, allocations: 64.5 kB / 0.4984 GB, free: 6.176 MB / 430.1 MB Notification: Performance of pre-optimization done (n=220): time 5.491e-06/0.6009, allocations: 0 / 0.4984 GB, free: 6.176 MB / 430.1 MB Notification: Performance of matching and sorting (n=240): time 0.02712/0.628, allocations: 11.22 MB / 0.5094 GB, free: 10.7 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.223e-05/0.6281, allocations: 77.41 kB / 0.5094 GB, free: 10.61 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007446/0.6356, allocations: 3.156 MB / 0.5125 GB, free: 7.457 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004391/0.6361, allocations: 69.7 kB / 0.5126 GB, free: 7.383 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002401/0.6385, allocations: 2.564 MB / 0.5151 GB, free: 4.801 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001414/0.6399, allocations: 0.8793 MB / 0.516 GB, free: 3.914 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00182/0.6418, allocations: 0.5539 MB / 0.5165 GB, free: 3.352 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001479/0.6419, allocations: 309.1 kB / 0.5168 GB, free: 3.047 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002865/0.6448, allocations: 1.334 MB / 0.5181 GB, free: 1.711 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003699/0.6485, allocations: 2.343 MB / 0.5204 GB, free: 14.92 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006485/0.655, allocations: 3.928 MB / 0.5242 GB, free: 10.52 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.065e-05/0.6551, allocations: 8 kB / 0.5242 GB, free: 10.51 MB / 462.1 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.009806/0.6649, allocations: 4.719 MB / 0.5288 GB, free: 5.684 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.594e-05/0.665, allocations: 16 kB / 0.5289 GB, free: 5.668 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.978e-05/0.665, allocations: 36.03 kB / 0.5289 GB, free: 5.633 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001372/0.6664, allocations: 0.5295 MB / 0.5294 GB, free: 5.082 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002987/0.6694, allocations: 0.741 MB / 0.5301 GB, free: 4.34 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01149/0.6809, allocations: 10.28 MB / 0.5402 GB, free: 9.359 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003358/0.6843, allocations: 187.8 kB / 0.5403 GB, free: 9.176 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006472/0.685, allocations: 140 kB / 0.5405 GB, free: 9.039 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.00411/0.6891, allocations: 1.574 MB / 0.542 GB, free: 7.453 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001338/0.6905, allocations: 365.7 kB / 0.5424 GB, free: 7.094 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009021/0.6995, allocations: 4.049 MB / 0.5463 GB, free: 2.945 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.553e-05/0.6996, allocations: 24 kB / 0.5463 GB, free: 2.922 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.324e-05/0.6996, allocations: 8 kB / 0.5464 GB, free: 2.914 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.35e-05/0.6997, allocations: 11.95 kB / 0.5464 GB, free: 2.902 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2566/0.9563, allocations: 8.965 MB / 0.5551 GB, free: 145 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.524e-05/0.9564, allocations: 4.688 kB / 0.5551 GB, free: 145 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001772/0.9581, allocations: 414.2 kB / 0.5555 GB, free: 145 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002055/0.9602, allocations: 0.7288 MB / 0.5562 GB, free: 144.8 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002138/0.9604, allocations: 67.77 kB / 0.5563 GB, free: 144.7 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01316/0.9736, allocations: 16.75 MB / 0.5726 GB, free: 130.7 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.752e-06/0.9736, allocations: 7.031 kB / 0.5727 GB, free: 130.7 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009964/0.9836, allocations: 5.854 MB / 0.5784 GB, free: 128.1 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002407/0.9861, allocations: 0.714 MB / 0.5791 GB, free: 127.9 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006951/0.9868, allocations: 62.22 kB / 0.5791 GB, free: 127.8 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001796/0.9886, allocations: 138.6 kB / 0.5793 GB, free: 127.8 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005344/0.9892, allocations: 184.2 kB / 0.5794 GB, free: 127.8 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001624/0.9893, allocations: 68.89 kB / 0.5795 GB, free: 127.7 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004028/0.9934, allocations: 2.128 MB / 0.5816 GB, free: 127 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.9934, allocations: 0 / 0.5816 GB, free: 127 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004474/0.9979, allocations: 0.9902 MB / 0.5825 GB, free: 126.9 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.009284/1.007, allocations: 6.57 MB / 0.589 GB, free: 123.7 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.00561/1.013, allocations: 4.147 MB / 0.593 GB, free: 121.8 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.424e-06/1.013, allocations: 3.5 kB / 0.593 GB, free: 121.8 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00365/1.017, allocations: 2.749 MB / 0.5957 GB, free: 120.2 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004439/1.021, allocations: 0.9453 MB / 0.5966 GB, free: 119.8 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04937/1.07, allocations: 35.67 MB / 0.6315 GB, free: 84.39 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00264/1.073, allocations: 3.407 MB / 0.6348 GB, free: 80.95 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002514/1.076, allocations: 0.8034 MB / 0.6356 GB, free: 80.14 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002161/1.078, allocations: 2.104 MB / 0.6376 GB, free: 78.04 MB / 478.1 MB Notification: Performance of SimCode: time 8.51e-07/1.078, allocations: 0 / 0.6376 GB, free: 78.04 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1465/1.224, allocations: 88.19 MB / 0.7237 GB, free: 5.703 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.31/18.53, allocations: 12.88 kB / 0.7238 GB, free: 5.691 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