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: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|aimc.is.1.|aimc.is.2.|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|aimc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|loadInertia.phi|loadInertia.w|vfController.x",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|aimc.is.1.|aimc.is.2.|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|aimc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|loadInertia.phi|loadInertia.w|vfController.x",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00111/0.00111, allocations: 113.9 kB / 17.73 MB, free: 5.234 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.001042/0.001042, allocations: 187.1 kB / 18.66 MB, free: 4.309 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.378/1.378, 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.001246/0.001246, allocations: 59.91 kB / 328.5 MB, free: 3.285 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09568/0.09694, allocations: 46.6 MB / 375.2 MB, free: 4.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter): time 0.2132/0.3102, allocations: 12.77 MB / 387.9 MB, free: 6.008 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009256/0.3195, allocations: 4.271 MB / 392.2 MB, free: 3.27 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002611/0.3222, allocations: 69.12 kB / 392.3 MB, free: 3.25 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002763/0.325, allocations: 0.9679 MB / 393.2 MB, free: 2.738 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004381/0.3294, allocations: 1.266 MB / 394.5 MB, free: 1.898 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002509/0.3319, allocations: 0.8597 MB / 395.4 MB, free: 1.344 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006078/0.338, allocations: 3.888 MB / 399.2 MB, free: 15.32 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004317/0.3423, allocations: 3.173 MB / 402.4 MB, free: 13.95 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003672/0.346, allocations: 1.835 MB / 404.3 MB, free: 13.04 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003582/0.3496, allocations: 2.063 MB / 406.3 MB, free: 12 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000874/0.3505, allocations: 0.4979 MB / 406.8 MB, free: 12 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001807/0.3523, allocations: 0.6984 MB / 407.5 MB, free: 11.93 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001002/0.3533, allocations: 1.104 MB / 408.6 MB, free: 11.21 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002792/0.3561, allocations: 2.071 MB / 410.7 MB, free: 9.816 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008998/0.3651, allocations: 6.587 MB / 417.3 MB, free: 4.918 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.037e-06/0.3652, allocations: 0 / 417.3 MB, free: 4.918 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.3652, allocations: 11.88 kB / 417.3 MB, free: 4.906 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002345/0.3655, allocations: 0 / 417.3 MB, free: 4.906 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.01465/0.3801, allocations: 4.299 MB / 421.6 MB, free: 1.113 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.63e-05/0.3802, allocations: 12.03 kB / 421.6 MB, free: 1.102 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004372/0.3846, allocations: 0.8047 MB / 422.4 MB, free: 300 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004325/0.3889, allocations: 2.239 MB / 424.6 MB, free: 14 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001937/0.3891, allocations: 234.6 kB / 424.9 MB, free: 13.77 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005269/0.3897, allocations: 315.8 kB / 425.2 MB, free: 13.46 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008244/0.3979, allocations: 4.227 MB / 429.4 MB, free: 9.18 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.163e-05/0.398, allocations: 7.844 kB / 429.4 MB, free: 9.172 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003095/0.3983, allocations: 128 kB / 429.5 MB, free: 9.047 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001406/0.3985, allocations: 150.3 kB / 429.7 MB, free: 8.898 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006217/0.4047, allocations: 3.593 MB / 433.3 MB, free: 5.297 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01994/0.4247, allocations: 13.01 MB / 446.3 MB, free: 7.949 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006665/0.4314, allocations: 6.903 MB / 453.2 MB, free: 156 kB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00215/0.4336, allocations: 1.344 MB / 454.5 MB, free: 14.8 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006193/0.4398, allocations: 3.719 MB / 458.3 MB, free: 10.99 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.912e-05/0.4398, allocations: 43.56 kB / 458.3 MB, free: 10.94 MB / 382.1 MB Notification: Performance of pre-optimization done (n=119): time 2.955e-06/0.4398, allocations: 0 / 458.3 MB, free: 10.94 MB / 382.1 MB Notification: Performance of matching and sorting (n=122): time 0.01087/0.4507, allocations: 5.364 MB / 463.7 MB, free: 5.375 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.911e-05/0.4508, allocations: 64.41 kB / 463.7 MB, free: 5.301 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00243/0.4532, allocations: 1.709 MB / 465.4 MB, free: 3.586 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.358e-05/0.4533, allocations: 49.7 kB / 465.5 MB, free: 3.531 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009836/0.4543, allocations: 1.399 MB / 466.9 MB, free: 2.113 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003227/0.4546, allocations: 429.8 kB / 467.3 MB, free: 1.688 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004465/0.4551, allocations: 283.3 kB / 467.6 MB, free: 1.406 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001325/0.4552, allocations: 305.1 kB / 467.9 MB, free: 1.105 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001078/0.4563, allocations: 0.6403 MB / 468.5 MB, free: 476 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001412/0.4578, allocations: 1.114 MB / 469.6 MB, free: 15.14 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002569/0.4603, allocations: 1.875 MB / 471.5 MB, free: 13.07 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.486e-06/0.4604, allocations: 4 kB / 471.5 MB, free: 13.06 MB / 398.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.003865/0.4642, allocations: 2.319 MB / 473.8 MB, free: 10.7 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.739e-05/0.4643, allocations: 12 kB / 473.8 MB, free: 10.69 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.701e-05/0.4643, allocations: 12 kB / 473.9 MB, free: 10.68 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006908/0.465, allocations: 275.4 kB / 474.1 MB, free: 10.4 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001332/0.4663, allocations: 355.4 kB / 474.5 MB, free: 10.05 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005701/0.472, allocations: 6.202 MB / 480.7 MB, free: 3.434 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001374/0.4734, allocations: 71.86 kB / 480.7 MB, free: 3.363 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000105/0.4736, allocations: 72.12 kB / 480.8 MB, free: 3.293 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.002158/0.4757, allocations: 1.005 MB / 481.8 MB, free: 2.277 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003258/0.476, allocations: 177.8 kB / 482 MB, free: 2.102 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003678/0.4797, allocations: 2.115 MB / 484.1 MB, free: 15.92 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.041e-05/0.4798, allocations: 12 kB / 484.1 MB, free: 15.91 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.548e-06/0.4798, allocations: 4 kB / 484.1 MB, free: 15.9 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.216e-05/0.4798, allocations: 7.922 kB / 484.1 MB, free: 15.89 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007544/0.4873, allocations: 4.819 MB / 488.9 MB, free: 10.93 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.193e-06/0.4874, allocations: 8.219 kB / 489 MB, free: 10.93 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007517/0.4881, allocations: 167.8 kB / 489.1 MB, free: 10.76 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001127/0.4893, allocations: 447.9 kB / 489.6 MB, free: 10.31 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.569e-05/0.4894, allocations: 35.98 kB / 489.6 MB, free: 10.27 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01025/0.4996, allocations: 11.01 MB / 0.4889 GB, free: 14.56 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.765e-06/0.4997, allocations: 15.89 kB / 0.4889 GB, free: 14.55 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004912/0.5046, allocations: 2.992 MB / 0.4918 GB, free: 11.46 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009525/0.5056, allocations: 402.7 kB / 0.4922 GB, free: 11.05 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002391/0.5058, allocations: 35.98 kB / 0.4922 GB, free: 11.02 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000867/0.5067, allocations: 63.95 kB / 0.4923 GB, free: 10.95 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002532/0.5069, allocations: 100.7 kB / 0.4924 GB, free: 10.86 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.797e-05/0.507, allocations: 35.98 kB / 0.4924 GB, free: 10.82 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001726/0.5088, allocations: 1.178 MB / 0.4936 GB, free: 9.648 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5088, allocations: 0 / 0.4936 GB, free: 9.648 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00203/0.5108, allocations: 0.5353 MB / 0.4941 GB, free: 9.113 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.0003166/0.5111, allocations: 158.8 kB / 0.4942 GB, free: 8.949 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003179/0.5143, allocations: 2.078 MB / 0.4963 GB, free: 6.812 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.788e-06/0.5143, allocations: 4.125 kB / 0.4963 GB, free: 6.809 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002191/0.5165, allocations: 1.534 MB / 0.4978 GB, free: 5.207 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002091/0.5186, allocations: 0.5144 MB / 0.4983 GB, free: 4.691 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008768/0.5274, allocations: 5.462 MB / 0.5036 GB, free: 15.17 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001899/0.5293, allocations: 2.281 MB / 0.5058 GB, free: 12.86 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001217/0.5306, allocations: 383.8 kB / 0.5062 GB, free: 12.48 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003025/0.5309, allocations: 119.4 kB / 0.5063 GB, free: 12.37 MB / 446.1 MB Notification: Performance of SimCode: time 5.72e-07/0.5309, allocations: 0 / 0.5063 GB, free: 12.37 MB / 446.1 MB Notification: Performance of Templates: time 0.04696/0.5779, allocations: 27.99 MB / 0.5336 GB, free: 328 kB / 462.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.makefile (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 & ./Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/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/jenkins/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