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.001159/0.001159, allocations: 114.5 kB / 17.73 MB, free: 5.328 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.001112/0.001112, allocations: 187 kB / 18.67 MB, free: 4.395 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.52/1.52, allocations: 205.1 MB / 224.5 MB, free: 12.23 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.001389/0.001389, allocations: 55.92 kB / 328 MB, free: 3.789 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09968/0.1011, allocations: 46.61 MB / 374.7 MB, free: 5.066 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter): time 0.2288/0.33, allocations: 12.76 MB / 387.4 MB, free: 6.031 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00926/0.3393, allocations: 4.276 MB / 391.7 MB, free: 3.344 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00335/0.3428, allocations: 65.72 kB / 391.8 MB, free: 3.328 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003706/0.3465, allocations: 1.01 MB / 392.8 MB, free: 2.785 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005374/0.3519, allocations: 1.302 MB / 394.1 MB, free: 1.926 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002853/0.3548, allocations: 0.8674 MB / 394.9 MB, free: 1.367 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006713/0.3615, allocations: 3.885 MB / 398.8 MB, free: 15.34 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006831/0.3684, allocations: 3.178 MB / 402 MB, free: 13.96 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00485/0.3733, allocations: 1.843 MB / 403.8 MB, free: 13.04 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005387/0.3787, allocations: 2.06 MB / 405.9 MB, free: 12 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002524/0.3813, allocations: 0.4996 MB / 406.4 MB, free: 12 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004379/0.3857, allocations: 0.7014 MB / 407.1 MB, free: 11.93 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002883/0.3886, allocations: 1.095 MB / 408.2 MB, free: 11.22 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007016/0.3956, allocations: 2.073 MB / 410.3 MB, free: 9.82 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01207/0.4077, allocations: 6.604 MB / 416.9 MB, free: 4.969 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.981e-06/0.4078, allocations: 1.375 kB / 416.9 MB, free: 4.969 MB / 334.1 MB Notification: Performance of FrontEnd: time 5.881e-06/0.4078, allocations: 7.984 kB / 416.9 MB, free: 4.961 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002494/0.4081, allocations: 3.938 kB / 416.9 MB, free: 4.957 MB / 334.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.0154/0.4235, allocations: 4.39 MB / 421.3 MB, free: 1.246 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.625e-05/0.4235, allocations: 11.97 kB / 421.3 MB, free: 1.234 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001448/0.425, allocations: 447.2 kB / 421.7 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005149/0.4301, allocations: 0.8183 MB / 422.6 MB, free: 15.96 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005708/0.4359, allocations: 2.249 MB / 424.8 MB, free: 13.66 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002786/0.4362, allocations: 242.2 kB / 425 MB, free: 13.42 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001362/0.4376, allocations: 308 kB / 425.3 MB, free: 13.12 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01174/0.4493, allocations: 4.227 MB / 429.6 MB, free: 8.844 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001114/0.4495, allocations: 0 / 429.6 MB, free: 8.844 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007557/0.4503, allocations: 128 kB / 429.7 MB, free: 8.719 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001886/0.4505, allocations: 150.3 kB / 429.8 MB, free: 8.57 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008525/0.459, allocations: 3.593 MB / 433.4 MB, free: 4.969 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02686/0.4859, allocations: 13.06 MB / 446.5 MB, free: 7.582 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008603/0.4945, allocations: 6.9 MB / 453.4 MB, free: 15.79 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002808/0.4974, allocations: 1.356 MB / 454.7 MB, free: 14.42 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008195/0.5056, allocations: 3.712 MB / 458.5 MB, free: 10.62 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.753e-05/0.5057, allocations: 43.56 kB / 458.5 MB, free: 10.57 MB / 382.1 MB Notification: Performance of pre-optimization done (n=119): time 3.426e-06/0.5057, allocations: 0 / 458.5 MB, free: 10.57 MB / 382.1 MB Notification: Performance of matching and sorting (n=122): time 0.0124/0.5181, allocations: 5.408 MB / 463.9 MB, free: 4.965 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5e-05/0.5182, allocations: 68.34 kB / 464 MB, free: 4.887 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003362/0.5216, allocations: 1.705 MB / 465.7 MB, free: 3.176 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001808/0.5218, allocations: 53.7 kB / 465.7 MB, free: 3.117 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00121/0.523, allocations: 1.438 MB / 467.2 MB, free: 1.664 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004627/0.5235, allocations: 456.2 kB / 467.6 MB, free: 1.215 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005305/0.524, allocations: 283.5 kB / 467.9 MB, free: 0.9336 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001073/0.5242, allocations: 305.1 kB / 468.2 MB, free: 0.6328 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001291/0.5255, allocations: 0.6442 MB / 468.8 MB, free: 15.98 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001472/0.527, allocations: 1.11 MB / 469.9 MB, free: 14.67 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002722/0.5297, allocations: 1.875 MB / 471.8 MB, free: 12.59 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.38e-05/0.5297, allocations: 4 kB / 471.8 MB, free: 12.59 MB / 398.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.004267/0.534, allocations: 2.324 MB / 474.1 MB, free: 10.23 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.051e-05/0.5341, allocations: 12 kB / 474.2 MB, free: 10.21 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.839e-05/0.5341, allocations: 19.94 kB / 474.2 MB, free: 10.2 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007465/0.5348, allocations: 271.5 kB / 474.4 MB, free: 9.918 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001383/0.5362, allocations: 351.5 kB / 474.8 MB, free: 9.574 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005922/0.5422, allocations: 6.21 MB / 481 MB, free: 2.949 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001674/0.5439, allocations: 76.03 kB / 481.1 MB, free: 2.875 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000212/0.5441, allocations: 68 kB / 481.1 MB, free: 2.809 MB / 398.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.002232/0.5464, allocations: 1.001 MB / 482.1 MB, free: 1.797 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000502/0.5469, allocations: 182.8 kB / 482.3 MB, free: 1.617 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004352/0.5512, allocations: 2.123 MB / 484.4 MB, free: 15.42 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.518e-05/0.5513, allocations: 12 kB / 484.5 MB, free: 15.41 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.081e-05/0.5513, allocations: 4 kB / 484.5 MB, free: 15.41 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.396e-05/0.5513, allocations: 3.984 kB / 484.5 MB, free: 15.4 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009976/0.5613, allocations: 4.827 MB / 489.3 MB, free: 10.44 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.805e-06/0.5614, allocations: 4.031 kB / 489.3 MB, free: 10.43 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007935/0.5622, allocations: 171.9 kB / 489.5 MB, free: 10.27 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001381/0.5636, allocations: 448 kB / 489.9 MB, free: 9.812 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001313/0.5637, allocations: 35.98 kB / 489.9 MB, free: 9.777 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01143/0.5752, allocations: 11.02 MB / 0.4892 GB, free: 14.07 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.352e-06/0.5752, allocations: 7.969 kB / 0.4892 GB, free: 14.06 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005878/0.5811, allocations: 3.009 MB / 0.4922 GB, free: 10.95 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001251/0.5824, allocations: 415.7 kB / 0.4926 GB, free: 10.53 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006611/0.5831, allocations: 35.98 kB / 0.4926 GB, free: 10.49 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001243/0.5843, allocations: 63.95 kB / 0.4926 GB, free: 10.43 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003486/0.5847, allocations: 100.8 kB / 0.4927 GB, free: 10.33 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001063/0.5848, allocations: 35.98 kB / 0.4928 GB, free: 10.3 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002665/0.5875, allocations: 1.174 MB / 0.4939 GB, free: 9.129 MB / 430.1 MB Notification: Performance of sort global known variables: time 3.1e-07/0.5875, allocations: 0 / 0.4939 GB, free: 9.129 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00305/0.5905, allocations: 0.5352 MB / 0.4944 GB, free: 8.594 MB / 430.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.006146/0.5967, allocations: 3.612 MB / 0.498 GB, free: 4.879 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004145/0.6009, allocations: 2.075 MB / 0.5 GB, free: 2.746 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.692e-06/0.6009, allocations: 1.938 kB / 0.5 GB, free: 2.746 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002717/0.6036, allocations: 1.537 MB / 0.5015 GB, free: 1.141 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003487/0.6072, allocations: 0.5112 MB / 0.502 GB, free: 0.6289 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0384/0.6456, allocations: 19.09 MB / 0.5206 GB, free: 12.8 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002562/0.6482, allocations: 2.285 MB / 0.5229 GB, free: 10.49 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001476/0.6497, allocations: 383.8 kB / 0.5232 GB, free: 10.11 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001562/0.6513, allocations: 1.101 MB / 0.5243 GB, free: 9.008 MB / 462.1 MB Notification: Performance of SimCode: time 1.322e-06/0.6513, allocations: 0 / 0.5243 GB, free: 9.008 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3371/0.9884, allocations: 50.28 MB / 0.5734 GB, free: 151.3 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.33/14.32, allocations: 3.312 kB / 0.5734 GB, free: 151.3 MB / 478.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