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.001409/0.001409, allocations: 108.8 kB / 17.73 MB, free: 5.34 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.001389, allocations: 190.9 kB / 18.67 MB, free: 4.41 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.442/1.442, allocations: 205.1 MB / 224.5 MB, free: 12.24 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.001774/0.001774, allocations: 52.39 kB / 328 MB, free: 3.785 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09516/0.09694, allocations: 46.62 MB / 374.7 MB, free: 5.051 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter): time 0.2123/0.3093, allocations: 12.76 MB / 387.4 MB, free: 6.027 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009353/0.3187, allocations: 4.275 MB / 391.7 MB, free: 3.34 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003273/0.3221, allocations: 65.66 kB / 391.8 MB, free: 3.324 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003449/0.3256, allocations: 0.972 MB / 392.7 MB, free: 2.809 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005827/0.3314, allocations: 1.264 MB / 394 MB, free: 1.973 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00264/0.3341, allocations: 0.8605 MB / 394.9 MB, free: 1.418 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006272/0.3404, allocations: 3.882 MB / 398.7 MB, free: 15.39 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00543/0.3459, allocations: 3.172 MB / 401.9 MB, free: 14.02 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004006/0.3499, allocations: 1.827 MB / 403.7 MB, free: 13.11 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00508/0.355, allocations: 2.06 MB / 405.8 MB, free: 12.08 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00193/0.357, allocations: 0.4982 MB / 406.3 MB, free: 12.08 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003527/0.3606, allocations: 0.7013 MB / 407 MB, free: 12 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0019/0.3625, allocations: 1.105 MB / 408.1 MB, free: 11.29 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004815/0.3673, allocations: 2.067 MB / 410.2 MB, free: 9.895 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01014/0.3775, allocations: 6.609 MB / 416.8 MB, free: 5.047 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.825e-06/0.3776, allocations: 0 / 416.8 MB, free: 5.047 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.655e-06/0.3776, allocations: 0 / 416.8 MB, free: 5.047 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002075/0.3778, allocations: 5.375 kB / 416.8 MB, free: 5.043 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.01512/0.3929, allocations: 4.391 MB / 421.2 MB, free: 1.336 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.397e-05/0.393, allocations: 12.03 kB / 421.2 MB, free: 1.324 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001244/0.3942, allocations: 447.2 kB / 421.6 MB, free: 0.875 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004892/0.3991, allocations: 0.8222 MB / 422.5 MB, free: 52 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005428/0.4046, allocations: 2.249 MB / 424.7 MB, free: 13.75 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002822/0.4049, allocations: 234.2 kB / 424.9 MB, free: 13.52 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001306/0.4062, allocations: 319.9 kB / 425.2 MB, free: 13.2 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01146/0.4177, allocations: 4.219 MB / 429.5 MB, free: 8.934 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001576/0.4179, allocations: 0 / 429.5 MB, free: 8.934 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001067/0.419, allocations: 132 kB / 429.6 MB, free: 8.805 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002056/0.4192, allocations: 150.2 kB / 429.7 MB, free: 8.656 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009225/0.4285, allocations: 3.601 MB / 433.3 MB, free: 5.047 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02969/0.4582, allocations: 13.05 MB / 446.4 MB, free: 7.664 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008597/0.4669, allocations: 6.909 MB / 453.3 MB, free: 15.86 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002849/0.4698, allocations: 1.351 MB / 454.6 MB, free: 14.5 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008031/0.4778, allocations: 3.704 MB / 458.4 MB, free: 10.7 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.954e-05/0.4779, allocations: 51.5 kB / 458.4 MB, free: 10.64 MB / 382.1 MB Notification: Performance of pre-optimization done (n=119): time 4.358e-06/0.4779, allocations: 3.938 kB / 458.4 MB, free: 10.64 MB / 382.1 MB Notification: Performance of matching and sorting (n=122): time 0.0122/0.4901, allocations: 5.401 MB / 463.8 MB, free: 5.047 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.698e-05/0.4903, allocations: 72.34 kB / 463.9 MB, free: 4.965 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003982/0.4942, allocations: 1.706 MB / 465.6 MB, free: 3.254 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002224/0.4945, allocations: 45.7 kB / 465.6 MB, free: 3.203 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001664/0.4962, allocations: 1.446 MB / 467.1 MB, free: 1.742 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006879/0.4969, allocations: 448.2 kB / 467.5 MB, free: 1.301 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009201/0.4978, allocations: 283.5 kB / 467.8 MB, free: 1.02 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001705/0.498, allocations: 309.1 kB / 468.1 MB, free: 0.7148 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001544/0.4996, allocations: 0.6442 MB / 468.7 MB, free: 72 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001803/0.5014, allocations: 1.11 MB / 469.8 MB, free: 14.75 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00333/0.5048, allocations: 1.875 MB / 471.7 MB, free: 12.68 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.087e-05/0.5048, allocations: 4 kB / 471.7 MB, free: 12.67 MB / 398.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.004993/0.5098, allocations: 2.324 MB / 474 MB, free: 10.31 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.03e-05/0.5099, allocations: 12 kB / 474.1 MB, free: 10.3 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.269e-05/0.5099, allocations: 15.94 kB / 474.1 MB, free: 10.28 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008837/0.5108, allocations: 275.3 kB / 474.3 MB, free: 10 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001463/0.5123, allocations: 355.4 kB / 474.7 MB, free: 9.652 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007063/0.5194, allocations: 6.202 MB / 480.9 MB, free: 3.035 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00171/0.5211, allocations: 71.91 kB / 481 MB, free: 2.965 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003068/0.5215, allocations: 68.09 kB / 481 MB, free: 2.898 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.002556/0.524, allocations: 1.005 MB / 482 MB, free: 1.883 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006422/0.5247, allocations: 186.8 kB / 482.2 MB, free: 1.699 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004882/0.5296, allocations: 2.115 MB / 484.3 MB, free: 15.52 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.046e-05/0.5296, allocations: 16 kB / 484.3 MB, free: 15.5 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.316e-05/0.5297, allocations: 8 kB / 484.4 MB, free: 15.49 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.543e-05/0.5297, allocations: 7.969 kB / 484.4 MB, free: 15.48 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01104/0.5407, allocations: 4.823 MB / 489.2 MB, free: 10.52 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.616e-05/0.5408, allocations: 4.219 kB / 489.2 MB, free: 10.52 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008563/0.5417, allocations: 167.8 kB / 489.4 MB, free: 10.36 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001464/0.5432, allocations: 448 kB / 489.8 MB, free: 9.902 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001934/0.5434, allocations: 31.98 kB / 489.8 MB, free: 9.871 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01258/0.556, allocations: 11.03 MB / 0.4891 GB, free: 14.14 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.083e-06/0.556, allocations: 7.969 kB / 0.4891 GB, free: 14.14 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00607/0.5621, allocations: 3.005 MB / 0.4921 GB, free: 11.04 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001175/0.5633, allocations: 415.8 kB / 0.4925 GB, free: 10.61 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005792/0.5639, allocations: 35.98 kB / 0.4925 GB, free: 10.57 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001263/0.5652, allocations: 68.06 kB / 0.4926 GB, free: 10.51 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003405/0.5656, allocations: 96.81 kB / 0.4926 GB, free: 10.41 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001342/0.5657, allocations: 39.98 kB / 0.4927 GB, free: 10.38 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002673/0.5684, allocations: 1.17 MB / 0.4938 GB, free: 9.211 MB / 430.1 MB Notification: Performance of sort global known variables: time 4.61e-07/0.5684, allocations: 0 / 0.4938 GB, free: 9.211 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002977/0.5714, allocations: 0.5391 MB / 0.4944 GB, free: 8.672 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.006705/0.5781, allocations: 3.608 MB / 0.4979 GB, free: 4.961 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004238/0.5824, allocations: 2.08 MB / 0.4999 GB, free: 2.824 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.212e-06/0.5825, allocations: 0 / 0.4999 GB, free: 2.824 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002942/0.5854, allocations: 1.539 MB / 0.5014 GB, free: 1.219 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003629/0.5891, allocations: 0.508 MB / 0.5019 GB, free: 0.7109 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04181/0.6309, allocations: 19.1 MB / 0.5206 GB, free: 12.88 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003475/0.6344, allocations: 2.281 MB / 0.5228 GB, free: 10.57 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001837/0.6363, allocations: 387.8 kB / 0.5232 GB, free: 10.19 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002055/0.6384, allocations: 1.097 MB / 0.5242 GB, free: 9.09 MB / 462.1 MB Notification: Performance of SimCode: time 6.01e-07/0.6384, allocations: 0 / 0.5242 GB, free: 9.09 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3403/0.9787, allocations: 50.29 MB / 0.5733 GB, free: 151.4 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.8/14.78, allocations: 0 / 0.5733 GB, free: 151.4 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