Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.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.AIMC_Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Inverter",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.001935/0.001935, allocations: 100.2 kB / 17.58 MB, free: 5.418 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.0024/0.0024, allocations: 191.9 kB / 18.51 MB, free: 4.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.613/2.613, allocations: 205.1 MB / 224.4 MB, free: 12.3 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.002766/0.002767, allocations: 60.08 kB / 280.8 MB, free: 3.07 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2159/0.2187, allocations: 46.62 MB / 327.4 MB, free: 4.375 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter): time 0.02912/0.2479, allocations: 12.76 MB / 340.1 MB, free: 7.539 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01637/0.2644, allocations: 4.276 MB / 344.4 MB, free: 3.25 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004388/0.2689, allocations: 67.69 kB / 344.5 MB, free: 3.184 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005022/0.274, allocations: 0.959 MB / 345.5 MB, free: 2.219 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009643/0.2837, allocations: 1.262 MB / 346.7 MB, free: 0.9492 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004772/0.2885, allocations: 0.8689 MB / 347.6 MB, free: 80 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.01037/0.2988, allocations: 3.877 MB / 351.5 MB, free: 12.18 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008466/0.3074, allocations: 3.173 MB / 354.6 MB, free: 8.938 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005166/0.3126, allocations: 1.819 MB / 356.4 MB, free: 7.113 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004977/0.3176, allocations: 2.051 MB / 358.5 MB, free: 5.055 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002048/0.3197, allocations: 0.5039 MB / 359 MB, free: 4.551 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003685/0.3234, allocations: 0.7029 MB / 359.7 MB, free: 3.848 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002815/0.3262, allocations: 1.114 MB / 360.8 MB, free: 2.73 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007287/0.3335, allocations: 2.07 MB / 362.9 MB, free: 0.6523 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01217/0.3457, allocations: 6.539 MB / 369.4 MB, free: 10.09 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.754e-06/0.3458, allocations: 0 / 369.4 MB, free: 10.09 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.775e-06/0.3458, allocations: 0 / 369.4 MB, free: 10.09 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003122/0.3461, allocations: 0 / 369.4 MB, free: 10.09 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 822 * Number of variables: 822 Notification: Performance of Generate backend data structure: time 0.01945/0.3656, allocations: 4.308 MB / 373.7 MB, free: 5.715 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.095e-05/0.3657, allocations: 8.031 kB / 373.7 MB, free: 5.707 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002157/0.3679, allocations: 443.2 kB / 374.2 MB, free: 5.262 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005592/0.3735, allocations: 0.8124 MB / 375 MB, free: 4.445 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005406/0.3789, allocations: 2.212 MB / 377.2 MB, free: 2.176 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002415/0.3792, allocations: 238.4 kB / 377.4 MB, free: 1.941 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008749/0.3801, allocations: 315.9 kB / 377.7 MB, free: 1.633 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3024/0.6825, allocations: 4.214 MB / 382 MB, free: 47.96 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.979e-05/0.6827, allocations: 4.5 kB / 382 MB, free: 47.96 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003124/0.683, allocations: 129.1 kB / 382.1 MB, free: 47.89 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001922/0.6832, allocations: 151.8 kB / 382.2 MB, free: 47.88 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008895/0.6921, allocations: 3.595 MB / 385.8 MB, free: 46.47 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02404/0.7162, allocations: 13.2 MB / 399 MB, free: 38.16 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007357/0.7236, allocations: 6.905 MB / 405.9 MB, free: 31.55 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002317/0.726, allocations: 1.358 MB / 407.3 MB, free: 30.88 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007423/0.7334, allocations: 3.734 MB / 411 MB, free: 28.15 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.144e-05/0.7335, allocations: 43.5 kB / 411.1 MB, free: 28.11 MB / 318.1 MB Notification: Performance of pre-optimization done (n=119): time 4.468e-06/0.7335, allocations: 0 / 411.1 MB, free: 28.11 MB / 318.1 MB Notification: Performance of matching and sorting (n=122): time 0.0139/0.7474, allocations: 5.364 MB / 416.4 MB, free: 23.33 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.968e-05/0.7475, allocations: 68.34 kB / 416.5 MB, free: 23.25 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003392/0.7509, allocations: 1.701 MB / 418.2 MB, free: 21.54 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001519/0.7511, allocations: 49.7 kB / 418.2 MB, free: 21.49 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009693/0.7521, allocations: 1.406 MB / 419.7 MB, free: 20.07 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003536/0.7525, allocations: 429.6 kB / 420.1 MB, free: 19.65 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005553/0.753, allocations: 283.3 kB / 420.4 MB, free: 19.37 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.916e-05/0.7531, allocations: 309.1 kB / 420.7 MB, free: 19.07 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001162/0.7543, allocations: 0.6403 MB / 421.3 MB, free: 18.43 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001452/0.7558, allocations: 1.11 MB / 422.4 MB, free: 17.11 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002536/0.7583, allocations: 1.875 MB / 424.3 MB, free: 15.04 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.818e-05/0.7584, allocations: 4 kB / 424.3 MB, free: 15.03 MB / 318.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.004161/0.7625, allocations: 2.311 MB / 426.6 MB, free: 12.68 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.403e-05/0.7626, allocations: 15.94 kB / 426.6 MB, free: 12.66 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.497e-05/0.7626, allocations: 16 kB / 426.6 MB, free: 12.65 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009886/0.7636, allocations: 272.6 kB / 426.9 MB, free: 12.37 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001505/0.7651, allocations: 355.4 kB / 427.2 MB, free: 12.02 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005284/0.7704, allocations: 6.206 MB / 433.4 MB, free: 5.422 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002721/0.7732, allocations: 80.02 kB / 433.5 MB, free: 5.344 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003104/0.7735, allocations: 64 kB / 433.6 MB, free: 5.281 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 66 * 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 (180): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(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): 3 systems {(1,1,100.0%), (1,5,100.0%), (1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003328/0.7769, allocations: 1.001 MB / 434.6 MB, free: 4.27 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009593/0.7779, allocations: 177.8 kB / 434.8 MB, free: 4.094 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006509/0.7844, allocations: 2.127 MB / 436.9 MB, free: 1.902 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.117e-05/0.7845, allocations: 12 kB / 436.9 MB, free: 1.891 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.851e-05/0.7845, allocations: 8 kB / 436.9 MB, free: 1.883 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.457e-05/0.7845, allocations: 3.984 kB / 436.9 MB, free: 1.879 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0162/0.8008, allocations: 4.815 MB / 441.7 MB, free: 12.95 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-05/0.8009, allocations: 7.984 kB / 441.7 MB, free: 12.94 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001384/0.8023, allocations: 164 kB / 441.9 MB, free: 12.78 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001835/0.8041, allocations: 458.5 kB / 442.3 MB, free: 12.32 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001581/0.8043, allocations: 35.98 kB / 442.4 MB, free: 12.29 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01784/0.8222, allocations: 11.04 MB / 453.4 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.332e-06/0.8222, allocations: 0 / 453.4 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008209/0.8305, allocations: 2.997 MB / 456.4 MB, free: 13.5 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001583/0.8321, allocations: 406.8 kB / 456.8 MB, free: 13.08 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004568/0.8326, allocations: 32.11 kB / 456.8 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001369/0.834, allocations: 63.95 kB / 456.9 MB, free: 12.98 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004885/0.8345, allocations: 104.8 kB / 457 MB, free: 12.88 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001204/0.8346, allocations: 35.98 kB / 457 MB, free: 12.85 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002958/0.8376, allocations: 1.174 MB / 458.2 MB, free: 11.68 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.5e-07/0.8376, allocations: 0 / 458.2 MB, free: 11.68 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.003835/0.8414, allocations: 0.5352 MB / 458.7 MB, free: 11.14 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 7 (aimc.inertiaRotor.w,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,vfController.x,loadInertia.phi) * 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 (86): * Single equations (assignments): 81 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,5,100.0%), (1,1,100.0%), (1,13,100.0%), (1,8,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.008254/0.8497, allocations: 3.609 MB / 462.4 MB, free: 7.438 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.005509/0.8553, allocations: 2.41 MB / 464.8 MB, free: 4.992 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 8.115e-06/0.8553, allocations: 0 / 464.8 MB, free: 4.992 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002669/0.858, allocations: 1.516 MB / 466.3 MB, free: 3.41 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004254/0.8623, allocations: 0.5057 MB / 466.8 MB, free: 2.902 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04384/0.9061, allocations: 21.04 MB / 487.8 MB, free: 12.27 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0041/0.9103, allocations: 2.281 MB / 490.1 MB, free: 9.949 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001935/0.9123, allocations: 387.8 kB / 490.5 MB, free: 9.566 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002065/0.9144, allocations: 1.101 MB / 491.6 MB, free: 8.465 MB / 382.1 MB Notification: Performance of SimCode: time 1.783e-06/0.9144, allocations: 0 / 491.6 MB, free: 8.465 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1361/1.051, allocations: 49.08 MB / 0.528 GB, free: 7.25 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.22/17.27, allocations: 11.86 kB / 0.528 GB, free: 7.238 MB / 430.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter_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_AIMC_Inverter.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/AIMC_Inverter/AIMC_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches