Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.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.SMR_Inverter_MultiPhase,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter_MultiPhase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter_MultiPhase",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.001044/0.001044, allocations: 113.2 kB / 17.73 MB, free: 5.312 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.001207/0.001207, 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.392/1.392, allocations: 205.1 MB / 224.5 MB, free: 12.22 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.001346/0.001346, allocations: 55.92 kB / 328 MB, free: 3.781 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09874/0.1001, allocations: 46.62 MB / 374.7 MB, free: 5.047 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase): time 0.2178/0.318, allocations: 23.71 MB / 398.4 MB, free: 14.3 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0155/0.3335, allocations: 6.553 MB / 404.9 MB, free: 9.48 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006118/0.3397, allocations: 145.4 kB / 405.1 MB, free: 9.441 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00611/0.3459, allocations: 1.619 MB / 406.7 MB, free: 8.543 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01138/0.3573, allocations: 2.193 MB / 408.9 MB, free: 7.066 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006568/0.3639, allocations: 1.448 MB / 410.3 MB, free: 6.129 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01719/0.3811, allocations: 8.085 MB / 418.4 MB, free: 1.305 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01317/0.3943, allocations: 7.152 MB / 425.6 MB, free: 12.83 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008769/0.4031, allocations: 3.84 MB / 429.4 MB, free: 8.977 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009448/0.4126, allocations: 4.425 MB / 433.8 MB, free: 4.535 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004096/0.4168, allocations: 1.094 MB / 434.9 MB, free: 3.441 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005345/0.4222, allocations: 1.301 MB / 436.2 MB, free: 2.141 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004066/0.4263, allocations: 2.431 MB / 438.7 MB, free: 15.7 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009207/0.4355, allocations: 4.52 MB / 443.2 MB, free: 11.16 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01954/0.4551, allocations: 14.22 MB / 457.4 MB, free: 12.9 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.017e-06/0.4551, allocations: 4 kB / 457.4 MB, free: 12.89 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.724e-06/0.4551, allocations: 0 / 457.4 MB, free: 12.89 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000459/0.4556, allocations: 4 kB / 457.4 MB, free: 12.89 MB / 382.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.02851/0.4841, allocations: 9.022 MB / 466.4 MB, free: 3.762 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.957e-05/0.4842, allocations: 12.03 kB / 466.4 MB, free: 3.75 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003296/0.4875, allocations: 0.955 MB / 467.4 MB, free: 2.781 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01027/0.4978, allocations: 1.702 MB / 469.1 MB, free: 1.074 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01266/0.5105, allocations: 4.572 MB / 473.7 MB, free: 12.43 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005751/0.5111, allocations: 0.5127 MB / 474.2 MB, free: 11.91 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002631/0.5138, allocations: 0.6913 MB / 474.9 MB, free: 11.22 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02411/0.5379, allocations: 9.427 MB / 484.3 MB, free: 1.73 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001904/0.5381, allocations: 23.86 kB / 484.3 MB, free: 1.707 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001038/0.5392, allocations: 280 kB / 484.6 MB, free: 1.434 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003748/0.5395, allocations: 330.2 kB / 484.9 MB, free: 1.109 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01896/0.5585, allocations: 8.055 MB / 493 MB, free: 9.039 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07133/0.6299, allocations: 28.49 MB / 0.5093 GB, free: 11.93 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02204/0.652, allocations: 16.6 MB / 0.5255 GB, free: 9.441 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006538/0.6586, allocations: 2.916 MB / 0.5283 GB, free: 6.508 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01897/0.6776, allocations: 7.688 MB / 0.5358 GB, free: 14.66 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.324e-05/0.6777, allocations: 68.55 kB / 0.5359 GB, free: 14.58 MB / 478.1 MB Notification: Performance of pre-optimization done (n=259): time 5.2e-06/0.6778, allocations: 0 / 0.5359 GB, free: 14.58 MB / 478.1 MB Notification: Performance of matching and sorting (n=265): time 0.02505/0.7028, allocations: 11.09 MB / 0.5467 GB, free: 3.168 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.155e-05/0.7029, allocations: 77.5 kB / 0.5468 GB, free: 3.078 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2158/0.9187, allocations: 3.377 MB / 0.5501 GB, free: 144.1 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005513/0.9193, allocations: 71.16 kB / 0.5502 GB, free: 144 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002278/0.9216, allocations: 3.127 MB / 0.5532 GB, free: 143.8 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000987/0.9226, allocations: 0.9529 MB / 0.5541 GB, free: 143.3 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001144/0.9237, allocations: 0.6016 MB / 0.5547 GB, free: 143.1 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 6.35e-05/0.9238, allocations: 302.5 kB / 0.555 GB, free: 142.8 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002552/0.9264, allocations: 1.392 MB / 0.5564 GB, free: 142.3 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002738/0.9291, allocations: 2.43 MB / 0.5588 GB, free: 140.5 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005727/0.9349, allocations: 4.077 MB / 0.5627 GB, free: 137.8 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.308e-05/0.9349, allocations: 9.812 kB / 0.5627 GB, free: 137.8 MB / 478.1 MB Notification: Performance of matching and sorting (n=436) (initialization): time 0.008116/0.943, allocations: 4.718 MB / 0.5673 GB, free: 135.7 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.169e-05/0.9431, allocations: 19.25 kB / 0.5674 GB, free: 135.7 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.882e-05/0.9432, allocations: 31.75 kB / 0.5674 GB, free: 135.7 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001005/0.9442, allocations: 397 kB / 0.5678 GB, free: 135.6 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003084/0.9473, allocations: 0.7946 MB / 0.5686 GB, free: 135.5 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006101/0.9534, allocations: 7.975 MB / 0.5763 GB, free: 128.5 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003579/0.957, allocations: 160.6 kB / 0.5765 GB, free: 128.5 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005092/0.9575, allocations: 154.1 kB / 0.5766 GB, free: 128.4 MB / 478.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,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004658/0.9622, allocations: 2.069 MB / 0.5787 GB, free: 127.4 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000918/0.9631, allocations: 389.8 kB / 0.579 GB, free: 127.2 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007597/0.9707, allocations: 4.216 MB / 0.5831 GB, free: 125.2 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.255e-05/0.9708, allocations: 26.91 kB / 0.5832 GB, free: 125.2 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.611e-05/0.9708, allocations: 12.53 kB / 0.5832 GB, free: 125.2 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.644e-05/0.9708, allocations: 13.59 kB / 0.5832 GB, free: 125.2 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01523/0.9861, allocations: 9.882 MB / 0.5929 GB, free: 120.8 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.424e-05/0.9861, allocations: 3.562 kB / 0.5929 GB, free: 120.8 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001643/0.9878, allocations: 400.7 kB / 0.5932 GB, free: 120.8 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001892/0.9897, allocations: 0.8561 MB / 0.5941 GB, free: 120.5 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001919/0.9899, allocations: 69.58 kB / 0.5941 GB, free: 120.5 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01351/1.003, allocations: 17.52 MB / 0.6112 GB, free: 105.3 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.128e-06/1.003, allocations: 12.08 kB / 0.6113 GB, free: 105.3 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008538/1.012, allocations: 6.05 MB / 0.6172 GB, free: 99.04 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002257/1.014, allocations: 0.762 MB / 0.6179 GB, free: 98.25 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001028/1.015, allocations: 60.23 kB / 0.618 GB, free: 98.2 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002186/1.018, allocations: 131.9 kB / 0.6181 GB, free: 98.07 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004449/1.018, allocations: 209.7 kB / 0.6183 GB, free: 97.86 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001394/1.018, allocations: 83.97 kB / 0.6184 GB, free: 97.78 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.002979/1.021, allocations: 2.29 MB / 0.6206 GB, free: 95.5 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.7e-07/1.021, allocations: 0 / 0.6206 GB, free: 95.5 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004718/1.026, allocations: 1.139 MB / 0.6217 GB, free: 94.36 MB / 478.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.008014/1.034, allocations: 6.721 MB / 0.6283 GB, free: 87.45 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.005555/1.039, allocations: 4.131 MB / 0.6323 GB, free: 83.2 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.63e-06/1.04, allocations: 1.938 kB / 0.6323 GB, free: 83.2 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003472/1.043, allocations: 2.857 MB / 0.6351 GB, free: 80.24 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004316/1.047, allocations: 1 MB / 0.6361 GB, free: 79.25 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0602/1.108, allocations: 39.31 MB / 0.6745 GB, free: 38.62 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006414/1.114, allocations: 4.225 MB / 0.6786 GB, free: 34.37 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.004383/1.118, allocations: 0.8364 MB / 0.6794 GB, free: 33.52 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00456/1.123, allocations: 2.538 MB / 0.6819 GB, free: 30.98 MB / 478.1 MB Notification: Performance of SimCode: time 1.062e-06/1.123, allocations: 0 / 0.6819 GB, free: 30.98 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4003/1.523, allocations: 99.31 MB / 0.7789 GB, free: 152.7 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.43/18.95, allocations: 4.438 kB / 0.7789 GB, free: 152.7 MB / 0.4981 GB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase_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_SMR_Inverter_MultiPhase.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SMR_Inverter_MultiPhase/SMR_Inverter_MultiPhase.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches