Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.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.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMPM_Inverter_Polyphase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMPM_Inverter_Polyphase",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.001362/0.001362, allocations: 105.8 kB / 16.92 MB, free: 5.738 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.001371/0.001371, allocations: 191.3 kB / 17.85 MB, free: 5.176 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.248/2.248, allocations: 222.9 MB / 241.5 MB, free: 15.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002131/0.002132, allocations: 47.08 kB / 300.7 MB, free: 5.785 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.202/0.2042, allocations: 49.44 MB / 350.2 MB, free: 4.336 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase): time 0.3791/0.5834, allocations: 25.42 MB / 375.6 MB, free: 10.97 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0273/0.6108, allocations: 7.014 MB / 382.6 MB, free: 9.711 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01059/0.6215, allocations: 168.3 kB / 382.8 MB, free: 9.672 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.011/0.6326, allocations: 1.727 MB / 384.5 MB, free: 8.82 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01756/0.6503, allocations: 2.293 MB / 386.8 MB, free: 7.707 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008598/0.6589, allocations: 1.488 MB / 388.3 MB, free: 6.887 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.02282/0.6818, allocations: 8.46 MB / 396.7 MB, free: 2.582 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01911/0.7009, allocations: 7.411 MB / 404.2 MB, free: 15.19 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01327/0.7143, allocations: 3.987 MB / 408.1 MB, free: 11.52 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01499/0.7293, allocations: 4.605 MB / 412.7 MB, free: 7.043 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006229/0.7356, allocations: 1.133 MB / 413.9 MB, free: 5.91 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0105/0.7462, allocations: 1.35 MB / 415.2 MB, free: 4.566 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007667/0.7539, allocations: 2.521 MB / 417.8 MB, free: 2.07 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01668/0.7707, allocations: 4.728 MB / 422.5 MB, free: 13.35 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02963/0.8004, allocations: 14.63 MB / 437.1 MB, free: 14.98 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.097e-05/0.8005, allocations: 4 kB / 437.1 MB, free: 14.98 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.916e-06/0.8005, allocations: 0 / 437.1 MB, free: 14.98 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0005877/0.8011, allocations: 0 / 437.1 MB, free: 14.98 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: 1932 * Number of variables: 1932 Notification: Performance of Generate backend data structure: time 0.04962/0.8508, allocations: 9.225 MB / 446.3 MB, free: 5.715 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.325e-05/0.8509, allocations: 8.031 kB / 446.4 MB, free: 5.707 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005546/0.8564, allocations: 0.998 MB / 447.3 MB, free: 4.699 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02203/0.8785, allocations: 1.742 MB / 449.1 MB, free: 2.957 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02239/0.901, allocations: 4.896 MB / 454 MB, free: 14.04 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001262/0.9023, allocations: 0.535 MB / 454.5 MB, free: 13.51 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004338/0.9067, allocations: 0.7133 MB / 455.2 MB, free: 12.8 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04838/0.9551, allocations: 9.79 MB / 465 MB, free: 2.945 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005981/0.9558, allocations: 8 kB / 465 MB, free: 2.938 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004095/0.9599, allocations: 295 kB / 465.3 MB, free: 2.652 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007538/0.9607, allocations: 354.6 kB / 465.7 MB, free: 2.305 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03837/0.9991, allocations: 8.307 MB / 474 MB, free: 9.988 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1113/1.11, allocations: 30.49 MB / 0.4926 GB, free: 10.84 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03593/1.146, allocations: 16.07 MB / 0.5083 GB, free: 9.008 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0123/1.159, allocations: 3.062 MB / 0.5113 GB, free: 5.926 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03512/1.194, allocations: 8.093 MB / 0.5192 GB, free: 13.67 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001237/1.194, allocations: 68.78 kB / 0.5193 GB, free: 13.59 MB / 446.1 MB Notification: Performance of pre-optimization done (n=281): time 9.448e-06/1.194, allocations: 3.938 kB / 0.5193 GB, free: 13.59 MB / 446.1 MB Notification: Performance of matching and sorting (n=289): time 0.04714/1.241, allocations: 11.61 MB / 0.5306 GB, free: 1.68 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001127/1.242, allocations: 81.69 kB / 0.5307 GB, free: 1.586 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.6521/1.894, allocations: 3.631 MB / 0.5343 GB, free: 140.8 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000833/1.895, allocations: 72.67 kB / 0.5343 GB, free: 140.8 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004349/1.899, allocations: 3.181 MB / 0.5374 GB, free: 139.4 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001874/1.901, allocations: 0.9963 MB / 0.5384 GB, free: 138.7 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002934/1.904, allocations: 0.6452 MB / 0.539 GB, free: 138.4 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.834e-05/1.904, allocations: 309.4 kB / 0.5393 GB, free: 138.1 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005589/1.91, allocations: 1.485 MB / 0.5408 GB, free: 137.5 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005737/1.915, allocations: 2.625 MB / 0.5433 GB, free: 135.5 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01131/1.927, allocations: 4.399 MB / 0.5476 GB, free: 132.6 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001197/1.927, allocations: 10.19 kB / 0.5476 GB, free: 132.6 MB / 446.1 MB Notification: Performance of matching and sorting (n=476) (initialization): time 0.02015/1.947, allocations: 5.024 MB / 0.5526 GB, free: 130.4 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001298/1.947, allocations: 24.59 kB / 0.5526 GB, free: 130.4 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001257/1.947, allocations: 37.58 kB / 0.5526 GB, free: 130.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001765/1.949, allocations: 401 kB / 0.553 GB, free: 130.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006107/1.955, allocations: 0.8643 MB / 0.5538 GB, free: 130.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01029/1.966, allocations: 7.981 MB / 0.5616 GB, free: 123.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006397/1.972, allocations: 180.6 kB / 0.5618 GB, free: 123.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001021/1.973, allocations: 165.2 kB / 0.562 GB, free: 123.1 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 162 * 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 (451): * Single equations (assignments): 445 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 4 * 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): 4 systems {(1,1,100.0%), (1,5,100.0%), (1,1,100.0%), (3,14,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.007424/1.981, allocations: 2.135 MB / 0.564 GB, free: 122 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001939/1.983, allocations: 397.1 kB / 0.5644 GB, free: 121.8 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01041/1.993, allocations: 4.476 MB / 0.5688 GB, free: 119.7 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.18e-05/1.993, allocations: 31.81 kB / 0.5688 GB, free: 119.7 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.367e-05/1.993, allocations: 12.78 kB / 0.5688 GB, free: 119.7 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.511e-05/1.993, allocations: 11.2 kB / 0.5689 GB, free: 119.7 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03335/2.027, allocations: 10.47 MB / 0.5791 GB, free: 115.1 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.651e-05/2.027, allocations: 8.938 kB / 0.5791 GB, free: 115.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003836/2.031, allocations: 454.2 kB / 0.5795 GB, free: 114.9 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004325/2.035, allocations: 0.877 MB / 0.5804 GB, free: 114.1 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005711/2.035, allocations: 75.97 kB / 0.5805 GB, free: 114 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02532/2.061, allocations: 17.68 MB / 0.5977 GB, free: 95.38 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.215e-05/2.061, allocations: 7.938 kB / 0.5977 GB, free: 95.38 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01849/2.079, allocations: 6.424 MB / 0.604 GB, free: 88.74 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003985/2.083, allocations: 0.8047 MB / 0.6048 GB, free: 87.91 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002227/2.086, allocations: 67.98 kB / 0.6048 GB, free: 87.84 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004706/2.091, allocations: 139.9 kB / 0.605 GB, free: 87.71 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001095/2.092, allocations: 221.8 kB / 0.6052 GB, free: 87.49 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005048/2.092, allocations: 79.98 kB / 0.6053 GB, free: 87.41 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.007894/2.1, allocations: 2.469 MB / 0.6077 GB, free: 84.96 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.154e-06/2.1, allocations: 4 kB / 0.6077 GB, free: 84.96 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.009529/2.11, allocations: 1.221 MB / 0.6089 GB, free: 83.74 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * Number of states: 14 (vfController3.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,smpm3.inertiaRotor.w,smpm3.stator.core.Phi.re,smpm3.stator.core.Phi.im,smpm3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpm3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi,loadInertia3.phi,vfController.x) * 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 (220): * Single equations (assignments): 213 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 7 systems {(1,5,100.0%), (4,33,93.8%), (1,1,100.0%), (1,1,100.0%), (1,8,100.0%), (2,13,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.01532/2.125, allocations: 7.122 MB / 0.6158 GB, free: 76.41 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.02221/2.147, allocations: 6.157 MB / 0.6218 GB, free: 70.16 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.492e-05/2.147, allocations: 5.75 kB / 0.6218 GB, free: 70.16 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006182/2.154, allocations: 2.999 MB / 0.6248 GB, free: 67.07 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008533/2.162, allocations: 1.104 MB / 0.6259 GB, free: 65.98 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1175/2.28, allocations: 52.1 MB / 0.6767 GB, free: 8.562 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0107/2.291, allocations: 4.35 MB / 0.681 GB, free: 4.172 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.007731/2.298, allocations: 0.8942 MB / 0.6819 GB, free: 3.273 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005792/2.304, allocations: 2.714 MB / 0.6845 GB, free: 0.5586 MB / 446.1 MB Notification: Performance of SimCode: time 2.144e-06/2.304, allocations: 0 / 0.6845 GB, free: 0.5586 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7048/3.009, allocations: 107.4 MB / 0.7894 GB, free: 82.05 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 21.11/24.12, allocations: 10.44 kB / 0.7894 GB, free: 82.04 MB / 462.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase_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_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMPM_Inverter_Polyphase.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/ComparisonPolyphase/SMPM_Inverter_Polyphase/SMPM_Inverter_Polyphase.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches