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.001392/0.001392, allocations: 113.4 kB / 17.73 MB, free: 5.32 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.001494/0.001493, allocations: 184.2 kB / 18.66 MB, free: 4.398 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.402/1.402, 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.001318/0.001318, allocations: 51.92 kB / 328 MB, free: 3.777 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08912/0.09045, allocations: 46.63 MB / 374.7 MB, free: 5.043 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter): time 0.2214/0.3119, allocations: 12.76 MB / 387.4 MB, free: 6.012 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007704/0.3196, allocations: 4.268 MB / 391.7 MB, free: 3.332 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002435/0.3221, allocations: 65.44 kB / 391.8 MB, free: 3.316 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003066/0.3252, allocations: 0.9712 MB / 392.7 MB, free: 2.801 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00452/0.3297, allocations: 1.265 MB / 394 MB, free: 1.969 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002308/0.3321, allocations: 0.8642 MB / 394.9 MB, free: 1.41 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005461/0.3375, allocations: 3.884 MB / 398.7 MB, free: 15.38 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005595/0.3432, allocations: 3.174 MB / 401.9 MB, free: 14.01 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003982/0.3472, allocations: 1.845 MB / 403.8 MB, free: 13.09 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004622/0.3518, allocations: 2.06 MB / 405.8 MB, free: 12.05 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001731/0.3536, allocations: 0.4981 MB / 406.3 MB, free: 12.05 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003198/0.3568, allocations: 0.7024 MB / 407 MB, free: 11.98 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002084/0.3589, allocations: 1.098 MB / 408.1 MB, free: 11.27 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004892/0.3638, allocations: 2.078 MB / 410.2 MB, free: 9.863 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008793/0.3726, allocations: 6.58 MB / 416.8 MB, free: 5.035 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/0.3727, allocations: 1.406 kB / 416.8 MB, free: 5.035 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.3727, allocations: 4 kB / 416.8 MB, free: 5.031 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001877/0.3729, allocations: 0 / 416.8 MB, free: 5.031 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.01311/0.386, allocations: 4.306 MB / 421.1 MB, free: 1.426 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.897e-05/0.3861, allocations: 12.03 kB / 421.1 MB, free: 1.414 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001082/0.3872, allocations: 447.1 kB / 421.5 MB, free: 0.9648 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004389/0.3916, allocations: 0.8008 MB / 422.3 MB, free: 164 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004818/0.3964, allocations: 2.243 MB / 424.6 MB, free: 13.86 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000211/0.3966, allocations: 230.2 kB / 424.8 MB, free: 13.63 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008462/0.3975, allocations: 311.9 kB / 425.1 MB, free: 13.33 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00817/0.4057, allocations: 4.23 MB / 429.3 MB, free: 9.047 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.116e-05/0.4058, allocations: 3.906 kB / 429.3 MB, free: 9.043 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003224/0.4061, allocations: 131.9 kB / 429.5 MB, free: 8.914 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001676/0.4063, allocations: 150.3 kB / 429.6 MB, free: 8.766 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007511/0.4138, allocations: 3.593 MB / 433.2 MB, free: 5.164 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02578/0.4396, allocations: 13.01 MB / 446.2 MB, free: 7.824 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006832/0.4465, allocations: 6.911 MB / 453.1 MB, free: 16 kB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002189/0.4487, allocations: 1.344 MB / 454.5 MB, free: 14.66 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006386/0.4551, allocations: 3.711 MB / 458.2 MB, free: 10.86 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.032e-05/0.4552, allocations: 43.56 kB / 458.2 MB, free: 10.81 MB / 382.1 MB Notification: Performance of pre-optimization done (n=119): time 2.685e-06/0.4552, allocations: 0 / 458.2 MB, free: 10.81 MB / 382.1 MB Notification: Performance of matching and sorting (n=122): time 0.01069/0.4659, allocations: 5.364 MB / 463.6 MB, free: 5.246 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.924e-05/0.466, allocations: 64.41 kB / 463.7 MB, free: 5.172 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002945/0.469, allocations: 1.705 MB / 465.4 MB, free: 3.461 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001611/0.4692, allocations: 49.7 kB / 465.4 MB, free: 3.406 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0011/0.4703, allocations: 1.407 MB / 466.8 MB, free: 1.98 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004379/0.4707, allocations: 429.9 kB / 467.2 MB, free: 1.555 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005243/0.4712, allocations: 283.3 kB / 467.5 MB, free: 1.273 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001092/0.4714, allocations: 309.1 kB / 467.8 MB, free: 0.9688 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001138/0.4725, allocations: 0.6364 MB / 468.5 MB, free: 340 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001406/0.4739, allocations: 1.11 MB / 469.6 MB, free: 15.02 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002597/0.4765, allocations: 1.879 MB / 471.4 MB, free: 12.93 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.381e-05/0.4766, allocations: 7.938 kB / 471.4 MB, free: 12.93 MB / 398.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.003887/0.4805, allocations: 2.315 MB / 473.8 MB, free: 10.57 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.872e-05/0.4805, allocations: 12 kB / 473.8 MB, free: 10.56 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.724e-05/0.4805, allocations: 15.94 kB / 473.8 MB, free: 10.54 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000752/0.4813, allocations: 271.5 kB / 474.1 MB, free: 10.27 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001348/0.4827, allocations: 351.5 kB / 474.4 MB, free: 9.922 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005695/0.4884, allocations: 6.206 MB / 480.6 MB, free: 3.301 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001459/0.4899, allocations: 72 kB / 480.7 MB, free: 3.23 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001271/0.49, allocations: 71.98 kB / 480.7 MB, free: 3.16 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.00179/0.4918, allocations: 1.001 MB / 481.7 MB, free: 2.148 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003555/0.4922, allocations: 177.8 kB / 481.9 MB, free: 1.973 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003773/0.4959, allocations: 2.123 MB / 484 MB, free: 15.78 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.421e-05/0.496, allocations: 15.98 kB / 484.1 MB, free: 15.77 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.254e-05/0.496, allocations: 8.125 kB / 484.1 MB, free: 15.76 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.304e-05/0.496, allocations: 3.984 kB / 484.1 MB, free: 15.75 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009041/0.5051, allocations: 4.815 MB / 488.9 MB, free: 10.8 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.043e-05/0.5051, allocations: 8.031 kB / 488.9 MB, free: 10.79 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007699/0.5059, allocations: 171.8 kB / 489.1 MB, free: 10.62 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001219/0.5072, allocations: 448 kB / 489.5 MB, free: 10.17 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001138/0.5073, allocations: 35.98 kB / 489.5 MB, free: 10.14 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01118/0.5185, allocations: 11.01 MB / 0.4888 GB, free: 14.43 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.141e-06/0.5185, allocations: 7.969 kB / 0.4888 GB, free: 14.43 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006427/0.525, allocations: 2.992 MB / 0.4917 GB, free: 11.34 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001558/0.5265, allocations: 410.6 kB / 0.4921 GB, free: 10.91 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004195/0.527, allocations: 32 kB / 0.4922 GB, free: 10.88 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001532/0.5285, allocations: 67.94 kB / 0.4922 GB, free: 10.82 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003991/0.5289, allocations: 96.8 kB / 0.4923 GB, free: 10.72 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001344/0.5291, allocations: 36.11 kB / 0.4924 GB, free: 10.69 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002921/0.532, allocations: 1.178 MB / 0.4935 GB, free: 9.516 MB / 430.1 MB Notification: Performance of sort global known variables: time 6.31e-07/0.532, allocations: 0 / 0.4935 GB, free: 9.516 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00356/0.5356, allocations: 0.5392 MB / 0.494 GB, free: 8.977 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.009033/0.5447, allocations: 3.603 MB / 0.4975 GB, free: 5.27 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004877/0.5496, allocations: 2.088 MB / 0.4996 GB, free: 3.125 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 7.575e-06/0.5496, allocations: 2 kB / 0.4996 GB, free: 3.125 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003312/0.553, allocations: 1.53 MB / 0.5011 GB, free: 1.527 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003987/0.557, allocations: 0.4993 MB / 0.5016 GB, free: 1.027 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04584/0.6029, allocations: 19 MB / 0.5201 GB, free: 13.3 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004363/0.6073, allocations: 2.281 MB / 0.5224 GB, free: 10.99 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002296/0.6096, allocations: 383.8 kB / 0.5227 GB, free: 10.61 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002565/0.6122, allocations: 1.101 MB / 0.5238 GB, free: 9.508 MB / 462.1 MB Notification: Performance of SimCode: time 1.012e-06/0.6122, allocations: 0 / 0.5238 GB, free: 9.508 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2861/0.8983, allocations: 50.54 MB / 0.5731 GB, free: 151.8 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.43/13.33, allocations: 11.88 kB / 0.5732 GB, free: 151.8 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 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.mat","/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