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.001432/0.001432, allocations: 109.2 kB / 17.06 MB, free: 5.828 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.001388/0.001388, 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.462/1.462, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001482/0.001482, allocations: 39.92 kB / 350.8 MB, free: 3.711 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3019/0.3034, allocations: 49.45 MB / 400.3 MB, free: 8.41 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase): time 0.03014/0.3336, allocations: 25.41 MB / 425.7 MB, free: 15.29 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01608/0.3497, allocations: 7.023 MB / 432.7 MB, free: 8.238 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005498/0.3553, allocations: 167.4 kB / 432.9 MB, free: 8.074 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006204/0.3615, allocations: 1.719 MB / 434.6 MB, free: 6.344 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009213/0.3708, allocations: 2.294 MB / 436.9 MB, free: 4.035 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005234/0.3761, allocations: 1.486 MB / 438.4 MB, free: 2.555 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01403/0.3901, allocations: 8.531 MB / 446.9 MB, free: 10 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01209/0.4022, allocations: 7.402 MB / 454.3 MB, free: 2.508 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007021/0.4093, allocations: 3.996 MB / 458.3 MB, free: 14.5 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00901/0.4184, allocations: 4.624 MB / 462.9 MB, free: 9.859 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003072/0.4215, allocations: 1.129 MB / 464.1 MB, free: 8.73 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00474/0.4262, allocations: 1.343 MB / 465.4 MB, free: 7.387 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003571/0.4298, allocations: 2.528 MB / 467.9 MB, free: 4.852 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009422/0.4393, allocations: 4.715 MB / 472.6 MB, free: 120 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02178/0.4611, allocations: 14.8 MB / 487.4 MB, free: 1.266 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.674e-06/0.4611, allocations: 0 / 487.4 MB, free: 1.266 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.4611, allocations: 0 / 487.4 MB, free: 1.266 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0005205/0.4617, allocations: 4 kB / 487.4 MB, free: 1.262 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.03207/0.4937, allocations: 9.418 MB / 496.9 MB, free: 7.738 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.741e-05/0.4938, allocations: 11.89 kB / 496.9 MB, free: 7.727 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002576/0.4964, allocations: 0.9921 MB / 497.9 MB, free: 6.723 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009735/0.5062, allocations: 1.776 MB / 499.6 MB, free: 4.941 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0115/0.5177, allocations: 5.053 MB / 0.4929 GB, free: 15.81 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005918/0.5183, allocations: 0.538 MB / 0.4934 GB, free: 15.28 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002392/0.5207, allocations: 0.7147 MB / 0.4941 GB, free: 14.56 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02471/0.5455, allocations: 9.781 MB / 0.5036 GB, free: 4.703 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002067/0.5457, allocations: 15.88 kB / 0.5037 GB, free: 4.688 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001324/0.547, allocations: 307.9 kB / 0.504 GB, free: 4.387 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003763/0.5474, allocations: 350.6 kB / 0.5043 GB, free: 4.043 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02181/0.5692, allocations: 8.314 MB / 0.5124 GB, free: 11.72 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4672/1.037, allocations: 30.16 MB / 0.5419 GB, free: 112.7 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01275/1.049, allocations: 16.07 MB / 0.5576 GB, free: 100.8 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004648/1.054, allocations: 3.039 MB / 0.5605 GB, free: 100.7 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01298/1.067, allocations: 8.062 MB / 0.5684 GB, free: 96.95 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.538e-05/1.067, allocations: 67.33 kB / 0.5685 GB, free: 96.89 MB / 462.1 MB Notification: Performance of pre-optimization done (n=281): time 6.302e-06/1.067, allocations: 0 / 0.5685 GB, free: 96.89 MB / 462.1 MB Notification: Performance of matching and sorting (n=289): time 0.0216/1.089, allocations: 11.72 MB / 0.5799 GB, free: 90.75 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.364e-05/1.089, allocations: 78.97 kB / 0.58 GB, free: 90.69 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005274/1.094, allocations: 3.642 MB / 0.5835 GB, free: 87.87 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004695/1.095, allocations: 77.7 kB / 0.5836 GB, free: 87.79 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001657/1.096, allocations: 3.269 MB / 0.5868 GB, free: 84.94 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008156/1.097, allocations: 1.044 MB / 0.5878 GB, free: 83.91 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008535/1.098, allocations: 0.6494 MB / 0.5885 GB, free: 83.25 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.898e-05/1.098, allocations: 309.1 kB / 0.5888 GB, free: 82.95 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001986/1.1, allocations: 1.479 MB / 0.5902 GB, free: 81.46 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002327/1.102, allocations: 2.627 MB / 0.5928 GB, free: 78.34 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004429/1.107, allocations: 4.389 MB / 0.597 GB, free: 73.43 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.532e-05/1.107, allocations: 12 kB / 0.5971 GB, free: 73.41 MB / 462.1 MB Notification: Performance of matching and sorting (n=476) (initialization): time 0.006745/1.114, allocations: 5.043 MB / 0.602 GB, free: 68.3 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.53e-05/1.114, allocations: 23.94 kB / 0.602 GB, free: 68.28 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.511e-05/1.114, allocations: 40 kB / 0.602 GB, free: 68.24 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008581/1.115, allocations: 404.8 kB / 0.6024 GB, free: 67.82 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002823/1.117, allocations: 0.8541 MB / 0.6033 GB, free: 66.97 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004821/1.122, allocations: 7.981 MB / 0.6111 GB, free: 58.45 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003108/1.125, allocations: 176.1 kB / 0.6112 GB, free: 58.27 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000302/1.126, allocations: 164 kB / 0.6114 GB, free: 58.11 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.003345/1.129, allocations: 2.14 MB / 0.6135 GB, free: 55.96 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008075/1.13, allocations: 425.3 kB / 0.6139 GB, free: 55.54 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006406/1.136, allocations: 4.47 MB / 0.6182 GB, free: 50.96 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.542e-05/1.136, allocations: 28 kB / 0.6183 GB, free: 50.94 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.571e-05/1.136, allocations: 12 kB / 0.6183 GB, free: 50.93 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.248e-05/1.136, allocations: 11.95 kB / 0.6183 GB, free: 50.91 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01418/1.151, allocations: 10.48 MB / 0.6285 GB, free: 40.28 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.218e-05/1.151, allocations: 4 kB / 0.6285 GB, free: 40.28 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001771/1.152, allocations: 443.9 kB / 0.629 GB, free: 39.84 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001953/1.154, allocations: 0.8715 MB / 0.6298 GB, free: 38.95 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001986/1.155, allocations: 75.97 kB / 0.6299 GB, free: 38.88 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0129/1.167, allocations: 17.68 MB / 0.6471 GB, free: 20.25 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/1.167, allocations: 4 kB / 0.6471 GB, free: 20.24 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008772/1.176, allocations: 6.464 MB / 0.6535 GB, free: 13.57 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002104/1.178, allocations: 0.8186 MB / 0.6543 GB, free: 12.73 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008181/1.179, allocations: 71.98 kB / 0.6543 GB, free: 12.66 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001901/1.181, allocations: 135.9 kB / 0.6545 GB, free: 12.52 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004924/1.182, allocations: 217.8 kB / 0.6547 GB, free: 12.31 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001592/1.182, allocations: 87.97 kB / 0.6548 GB, free: 12.22 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003161/1.185, allocations: 2.461 MB / 0.6572 GB, free: 9.781 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.2e-07/1.185, allocations: 0 / 0.6572 GB, free: 9.781 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003981/1.189, allocations: 1.211 MB / 0.6583 GB, free: 8.57 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.008767/1.198, allocations: 7.153 MB / 0.6653 GB, free: 1.199 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007345/1.205, allocations: 4.38 MB / 0.6696 GB, free: 12.71 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 8.186e-06/1.205, allocations: 4 kB / 0.6696 GB, free: 12.7 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005312/1.211, allocations: 3.006 MB / 0.6725 GB, free: 9.605 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00542/1.216, allocations: 1.116 MB / 0.6736 GB, free: 8.508 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08065/1.297, allocations: 41.75 MB / 0.7144 GB, free: 13.32 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007208/1.304, allocations: 4.347 MB / 0.7186 GB, free: 8.926 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.003665/1.308, allocations: 0.8981 MB / 0.7195 GB, free: 8.023 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005/1.313, allocations: 2.706 MB / 0.7222 GB, free: 5.316 MB / 0.5138 GB Notification: Performance of SimCode: time 1.022e-06/1.313, allocations: 0 / 0.7222 GB, free: 5.316 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.41/1.723, allocations: 106.5 MB / 0.8261 GB, free: 123.2 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.19/19.92, allocations: 22.06 kB / 0.8262 GB, free: 123.2 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