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.001492/0.001492, allocations: 107.9 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.001884/0.001884, 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.357/1.357, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001096/0.001096, allocations: 47.92 kB / 350.8 MB, free: 3.699 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2794/0.2805, allocations: 49.42 MB / 400.3 MB, free: 8.426 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase): time 0.0269/0.3074, allocations: 25.41 MB / 425.7 MB, free: 15.29 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01588/0.3234, allocations: 7.03 MB / 432.7 MB, free: 8.234 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00548/0.3289, allocations: 167.4 kB / 432.9 MB, free: 8.07 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005216/0.3342, allocations: 1.786 MB / 434.7 MB, free: 6.273 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008585/0.3428, allocations: 2.388 MB / 437.1 MB, free: 3.871 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004851/0.3476, allocations: 1.494 MB / 438.5 MB, free: 2.383 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01205/0.3597, allocations: 8.515 MB / 447.1 MB, free: 9.84 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01286/0.3726, allocations: 7.405 MB / 454.5 MB, free: 2.344 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007505/0.3802, allocations: 4.027 MB / 458.5 MB, free: 14.3 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008629/0.3888, allocations: 4.612 MB / 463.1 MB, free: 9.676 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003691/0.3926, allocations: 1.141 MB / 464.2 MB, free: 8.535 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005088/0.3977, allocations: 1.347 MB / 465.6 MB, free: 7.188 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004233/0.4019, allocations: 2.521 MB / 468.1 MB, free: 4.66 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008905/0.4109, allocations: 4.723 MB / 472.8 MB, free: 15.91 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02205/0.4329, allocations: 14.8 MB / 487.6 MB, free: 1.07 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.195e-06/0.433, allocations: 0 / 487.6 MB, free: 1.07 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.433, allocations: 0 / 487.6 MB, free: 1.07 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0005507/0.4336, allocations: 0 / 487.6 MB, free: 1.07 MB / 398.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.03014/0.4637, allocations: 9.421 MB / 497.1 MB, free: 7.543 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.265e-05/0.4638, allocations: 11.89 kB / 497.1 MB, free: 7.531 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003378/0.4672, allocations: 0.9921 MB / 498.1 MB, free: 6.527 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01048/0.4777, allocations: 1.78 MB / 499.8 MB, free: 4.742 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01147/0.4892, allocations: 5.065 MB / 0.4931 GB, free: 15.61 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005921/0.4898, allocations: 0.5303 MB / 0.4936 GB, free: 15.07 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002682/0.4925, allocations: 0.7069 MB / 0.4943 GB, free: 14.37 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02452/0.517, allocations: 9.789 MB / 0.5038 GB, free: 4.5 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002491/0.5173, allocations: 11.89 kB / 0.5038 GB, free: 4.488 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001742/0.5191, allocations: 296 kB / 0.5041 GB, free: 4.199 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003612/0.5195, allocations: 350.6 kB / 0.5045 GB, free: 3.855 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01847/0.5379, allocations: 8.322 MB / 0.5126 GB, free: 11.52 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4852/1.023, allocations: 30.16 MB / 0.542 GB, free: 112.8 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0126/1.036, allocations: 16.07 MB / 0.5577 GB, free: 100.8 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004613/1.041, allocations: 3.044 MB / 0.5607 GB, free: 100.7 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0135/1.054, allocations: 8.069 MB / 0.5686 GB, free: 96.9 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.114e-05/1.054, allocations: 64.84 kB / 0.5687 GB, free: 96.84 MB / 462.1 MB Notification: Performance of pre-optimization done (n=281): time 5.06e-06/1.054, allocations: 0 / 0.5687 GB, free: 96.84 MB / 462.1 MB Notification: Performance of matching and sorting (n=289): time 0.02135/1.076, allocations: 11.71 MB / 0.5801 GB, free: 90.67 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.644e-05/1.076, allocations: 82.97 kB / 0.5802 GB, free: 90.6 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005222/1.081, allocations: 3.647 MB / 0.5837 GB, free: 87.62 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004704/1.081, allocations: 77.7 kB / 0.5838 GB, free: 87.54 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00195/1.083, allocations: 3.269 MB / 0.587 GB, free: 84.7 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007801/1.084, allocations: 1.044 MB / 0.588 GB, free: 83.67 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008343/1.085, allocations: 0.6494 MB / 0.5887 GB, free: 83.01 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 5.188e-05/1.085, allocations: 309.1 kB / 0.5889 GB, free: 82.71 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002026/1.087, allocations: 1.475 MB / 0.5904 GB, free: 81.23 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00235/1.089, allocations: 2.627 MB / 0.593 GB, free: 78.11 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004607/1.094, allocations: 4.389 MB / 0.5972 GB, free: 73.19 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.477e-05/1.094, allocations: 12 kB / 0.5972 GB, free: 73.18 MB / 462.1 MB Notification: Performance of matching and sorting (n=476) (initialization): time 0.007265/1.101, allocations: 5.046 MB / 0.6022 GB, free: 68.06 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.887e-05/1.101, allocations: 20.75 kB / 0.6022 GB, free: 68.04 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.145e-05/1.101, allocations: 36 kB / 0.6022 GB, free: 68 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008481/1.102, allocations: 408.8 kB / 0.6026 GB, free: 67.59 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00294/1.105, allocations: 0.8541 MB / 0.6035 GB, free: 66.73 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005014/1.11, allocations: 7.983 MB / 0.6112 GB, free: 58.21 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003314/1.114, allocations: 175.9 kB / 0.6114 GB, free: 58.04 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004496/1.114, allocations: 160 kB / 0.6116 GB, free: 57.88 MB / 462.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.003492/1.118, allocations: 2.136 MB / 0.6137 GB, free: 55.73 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009337/1.119, allocations: 429.2 kB / 0.6141 GB, free: 55.31 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006728/1.125, allocations: 4.474 MB / 0.6184 GB, free: 50.73 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.167e-05/1.125, allocations: 28 kB / 0.6185 GB, free: 50.7 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.342e-05/1.125, allocations: 12 kB / 0.6185 GB, free: 50.69 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.212e-05/1.125, allocations: 11.95 kB / 0.6185 GB, free: 50.68 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01618/1.142, allocations: 10.49 MB / 0.6287 GB, free: 40.04 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.181e-05/1.142, allocations: 4 kB / 0.6287 GB, free: 40.03 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001805/1.143, allocations: 447.9 kB / 0.6292 GB, free: 39.59 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001907/1.145, allocations: 0.8671 MB / 0.63 GB, free: 38.71 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002077/1.146, allocations: 79.91 kB / 0.6301 GB, free: 38.63 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01342/1.159, allocations: 17.67 MB / 0.6473 GB, free: 20.01 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.799e-06/1.159, allocations: 7.938 kB / 0.6473 GB, free: 20 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008864/1.168, allocations: 6.464 MB / 0.6537 GB, free: 13.32 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002103/1.17, allocations: 0.8147 MB / 0.6544 GB, free: 12.49 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007088/1.171, allocations: 72.17 kB / 0.6545 GB, free: 12.42 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001921/1.173, allocations: 131.9 kB / 0.6546 GB, free: 12.29 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004485/1.173, allocations: 225.7 kB / 0.6549 GB, free: 12.07 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001526/1.173, allocations: 87.97 kB / 0.6549 GB, free: 11.98 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003309/1.177, allocations: 2.461 MB / 0.6573 GB, free: 9.539 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.1e-07/1.177, allocations: 0 / 0.6573 GB, free: 9.539 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004847/1.182, allocations: 1.211 MB / 0.6585 GB, free: 8.328 MB / 462.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.009333/1.191, allocations: 7.149 MB / 0.6655 GB, free: 0.957 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007258/1.198, allocations: 4.38 MB / 0.6698 GB, free: 12.46 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 8.456e-06/1.198, allocations: 0 / 0.6698 GB, free: 12.46 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005355/1.204, allocations: 3.013 MB / 0.6727 GB, free: 9.363 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006078/1.21, allocations: 1.112 MB / 0.6738 GB, free: 8.27 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0742/1.284, allocations: 41.75 MB / 0.7146 GB, free: 13.07 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005235/1.289, allocations: 4.343 MB / 0.7188 GB, free: 8.688 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.003259/1.293, allocations: 0.8981 MB / 0.7197 GB, free: 7.785 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004227/1.297, allocations: 2.71 MB / 0.7224 GB, free: 5.074 MB / 0.5138 GB Notification: Performance of SimCode: time 6.62e-07/1.297, allocations: 0 / 0.7224 GB, free: 5.074 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.415/1.712, allocations: 106.5 MB / 0.8263 GB, free: 122.8 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.41/19.12, allocations: 21.5 kB / 0.8264 GB, free: 122.8 MB / 0.5294 GB (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