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.SMR_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.SMR_Inverter_Polyphase,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMR_Inverter_Polyphase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMR_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.001494/0.001494, allocations: 112.8 kB / 17.06 MB, free: 5.969 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.001598/0.001598, allocations: 200 kB / 18.01 MB, free: 5.047 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.36/1.36, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009864/0.0009864, allocations: 47.94 kB / 350.8 MB, free: 3.695 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3004/0.3014, allocations: 49.44 MB / 400.3 MB, free: 8.41 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase): time 0.02533/0.3268, allocations: 23.78 MB / 424.1 MB, free: 0.9375 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01379/0.3407, allocations: 6.505 MB / 430.6 MB, free: 10.41 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004875/0.3456, allocations: 167.4 kB / 430.7 MB, free: 10.25 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006404/0.352, allocations: 1.626 MB / 432.4 MB, free: 8.609 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008989/0.3611, allocations: 2.213 MB / 434.6 MB, free: 6.383 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004906/0.366, allocations: 1.421 MB / 436 MB, free: 4.965 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01227/0.3783, allocations: 8.078 MB / 444.1 MB, free: 12.86 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01301/0.3913, allocations: 7.3 MB / 451.4 MB, free: 5.469 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007206/0.3986, allocations: 3.852 MB / 455.2 MB, free: 1.605 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008281/0.4069, allocations: 4.433 MB / 459.7 MB, free: 13.16 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003413/0.4103, allocations: 1.098 MB / 460.7 MB, free: 12.06 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004446/0.4148, allocations: 1.308 MB / 462.1 MB, free: 10.75 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004321/0.4192, allocations: 2.431 MB / 464.5 MB, free: 8.312 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009742/0.4289, allocations: 4.524 MB / 469 MB, free: 3.77 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02127/0.4502, allocations: 14.25 MB / 483.3 MB, free: 5.473 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.754e-06/0.4503, allocations: 0 / 483.3 MB, free: 5.473 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.4503, allocations: 0 / 483.3 MB, free: 5.473 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.000478/0.4508, allocations: 0 / 483.3 MB, free: 5.473 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: 1854 * Number of variables: 1854 Notification: Performance of Generate backend data structure: time 0.03045/0.4813, allocations: 9.026 MB / 492.3 MB, free: 12.34 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.247e-05/0.4814, allocations: 8.031 kB / 492.3 MB, free: 12.33 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003621/0.485, allocations: 0.9627 MB / 493.3 MB, free: 11.36 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01032/0.4953, allocations: 1.698 MB / 495 MB, free: 9.652 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01285/0.5082, allocations: 4.859 MB / 499.8 MB, free: 4.719 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006789/0.5089, allocations: 0.5102 MB / 0.4886 GB, free: 4.207 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002923/0.5119, allocations: 0.6912 MB / 0.4893 GB, free: 3.516 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02579/0.5377, allocations: 9.443 MB / 0.4985 GB, free: 10.01 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003189/0.538, allocations: 11.89 kB / 0.4985 GB, free: 9.996 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00217/0.5402, allocations: 288 kB / 0.4988 GB, free: 9.715 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003847/0.5406, allocations: 330.2 kB / 0.4991 GB, free: 9.391 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0198/0.5604, allocations: 8.078 MB / 0.507 GB, free: 1.301 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05587/0.6163, allocations: 28.46 MB / 0.5348 GB, free: 4.215 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2625/0.8788, allocations: 16.58 MB / 0.551 GB, free: 108 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004602/0.8835, allocations: 2.924 MB / 0.5538 GB, free: 107.4 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01168/0.8952, allocations: 7.711 MB / 0.5614 GB, free: 103.6 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.611e-05/0.8952, allocations: 56.42 kB / 0.5614 GB, free: 103.5 MB / 462.1 MB Notification: Performance of pre-optimization done (n=259): time 4.258e-06/0.8953, allocations: 0.5938 kB / 0.5614 GB, free: 103.5 MB / 462.1 MB Notification: Performance of matching and sorting (n=265): time 0.0201/0.9154, allocations: 11.13 MB / 0.5723 GB, free: 98.56 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.69e-05/0.9154, allocations: 79.94 kB / 0.5724 GB, free: 98.5 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004502/0.9199, allocations: 3.373 MB / 0.5757 GB, free: 96.97 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002399/0.9202, allocations: 73.36 kB / 0.5757 GB, free: 96.91 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001543/0.9217, allocations: 3.139 MB / 0.5788 GB, free: 94.59 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000647/0.9224, allocations: 0.9485 MB / 0.5797 GB, free: 93.77 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007373/0.9231, allocations: 0.5996 MB / 0.5803 GB, free: 93.21 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.623e-05/0.9232, allocations: 301.1 kB / 0.5806 GB, free: 92.91 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001809/0.925, allocations: 1.393 MB / 0.5819 GB, free: 91.52 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002083/0.9271, allocations: 2.437 MB / 0.5843 GB, free: 88.63 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004065/0.9312, allocations: 4.078 MB / 0.5883 GB, free: 84.07 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.728e-05/0.9312, allocations: 15.98 kB / 0.5883 GB, free: 84.05 MB / 462.1 MB Notification: Performance of matching and sorting (n=436) (initialization): time 0.006347/0.9376, allocations: 4.722 MB / 0.5929 GB, free: 79.25 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.482e-05/0.9376, allocations: 20 kB / 0.593 GB, free: 79.23 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.64e-05/0.9377, allocations: 32 kB / 0.593 GB, free: 79.2 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008472/0.9385, allocations: 406.9 kB / 0.5934 GB, free: 78.79 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002664/0.9412, allocations: 0.7839 MB / 0.5941 GB, free: 78 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004819/0.946, allocations: 7.965 MB / 0.6019 GB, free: 69.5 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0028/0.9488, allocations: 155.4 kB / 0.6021 GB, free: 69.35 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002771/0.9491, allocations: 152.1 kB / 0.6022 GB, free: 69.2 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 146 * 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 (411): * Single equations (assignments): 405 * 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.003213/0.9524, allocations: 2.085 MB / 0.6042 GB, free: 67.1 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007642/0.9531, allocations: 385.6 kB / 0.6046 GB, free: 66.72 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005978/0.9591, allocations: 4.224 MB / 0.6087 GB, free: 62.38 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.456e-05/0.9591, allocations: 24 kB / 0.6088 GB, free: 62.36 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.461e-05/0.9592, allocations: 12 kB / 0.6088 GB, free: 62.35 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.167e-05/0.9592, allocations: 15.94 kB / 0.6088 GB, free: 62.33 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01464/0.9738, allocations: 9.881 MB / 0.6184 GB, free: 52.29 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.068e-05/0.9739, allocations: 4 kB / 0.6184 GB, free: 52.29 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001641/0.9755, allocations: 404.8 kB / 0.6188 GB, free: 51.89 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001922/0.9775, allocations: 0.8635 MB / 0.6197 GB, free: 51.01 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001997/0.9777, allocations: 75.97 kB / 0.6197 GB, free: 50.94 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01305/0.9907, allocations: 17.52 MB / 0.6369 GB, free: 32.46 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.338e-06/0.9908, allocations: 7.938 kB / 0.6369 GB, free: 32.46 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008465/0.9993, allocations: 6.07 MB / 0.6428 GB, free: 26.18 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002029/1.001, allocations: 0.7717 MB / 0.6435 GB, free: 25.39 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005589/1.002, allocations: 63.92 kB / 0.6436 GB, free: 25.33 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001651/1.004, allocations: 131.9 kB / 0.6437 GB, free: 25.2 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004464/1.004, allocations: 205.8 kB / 0.6439 GB, free: 25 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001379/1.004, allocations: 75.97 kB / 0.644 GB, free: 24.92 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002977/1.007, allocations: 2.29 MB / 0.6462 GB, free: 22.64 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.2e-07/1.007, allocations: 4 kB / 0.6462 GB, free: 22.64 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003721/1.011, allocations: 1.141 MB / 0.6473 GB, free: 21.5 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 14 (smrM.inertiaRotor.w,smrM.stator.core.Phi.re,smrM.stator.core.Phi.im,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smr3.inertiaRotor.w,smr3.stator.core.Phi.re,smr3.stator.core.Phi.im,smr3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smr3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi,loadInertia3.phi,vfController3.x,vfControllerM.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 (198): * Single equations (assignments): 191 * 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,12,100.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.007824/1.019, allocations: 6.726 MB / 0.6539 GB, free: 14.57 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005438/1.024, allocations: 4.145 MB / 0.658 GB, free: 10.31 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.66e-06/1.024, allocations: 4 kB / 0.658 GB, free: 10.3 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003529/1.028, allocations: 2.874 MB / 0.6608 GB, free: 7.332 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004304/1.032, allocations: 1.007 MB / 0.6618 GB, free: 6.336 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06472/1.097, allocations: 39.24 MB / 0.7001 GB, free: 13.74 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004923/1.102, allocations: 4.221 MB / 0.7042 GB, free: 9.488 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.002936/1.105, allocations: 0.8365 MB / 0.705 GB, free: 8.645 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003337/1.108, allocations: 2.542 MB / 0.7075 GB, free: 6.102 MB / 0.4981 GB Notification: Performance of SimCode: time 8.62e-07/1.108, allocations: 0 / 0.7075 GB, free: 6.102 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4087/1.517, allocations: 99.27 MB / 0.8044 GB, free: 147.6 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.85/19.37, allocations: 3.562 kB / 0.8045 GB, free: 147.6 MB / 0.5294 GB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_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_SMR_Inverter_Polyphase.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_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/SMR_Inverter_Polyphase/SMR_Inverter_Polyphase.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches