Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_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.SMR_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertiaE.phi|loadInertiaE.w|loadInertiaM.phi|loadInertiaM.w|smrE.is.1.|smrE.is.2.|smrE.idq_rr.1.|smrE.idq_rr.2.|smrE.idq_sr.1.|smrE.idq_sr.2.|smrM.is.1.|smrM.is.2.|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smrM.stator.strayReluctance.port_p.Phi.im|smrM.stator.strayReluctance.port_p.Phi.re|vfController.x",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertiaE.phi|loadInertiaE.w|loadInertiaM.phi|loadInertiaM.w|smrE.is.1.|smrE.is.2.|smrE.idq_rr.1.|smrE.idq_rr.2.|smrE.idq_sr.1.|smrE.idq_sr.2.|smrM.is.1.|smrM.is.2.|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smrM.stator.strayReluctance.port_p.Phi.im|smrM.stator.strayReluctance.port_p.Phi.re|vfController.x",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001185/0.001185, allocations: 114.4 kB / 17.73 MB, free: 5.359 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.001251/0.001251, allocations: 187.1 kB / 18.66 MB, free: 4.438 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.498/1.498, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001852/0.001852, allocations: 55.91 kB / 328.5 MB, free: 3.293 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1063/0.1082, allocations: 46.62 MB / 375.2 MB, free: 4.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter): time 0.2467/0.3549, allocations: 20.22 MB / 395.4 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01565/0.3706, allocations: 5.947 MB / 401.3 MB, free: 12.52 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006127/0.3768, allocations: 115.4 kB / 401.5 MB, free: 12.49 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005628/0.3825, allocations: 1.343 MB / 402.8 MB, free: 11.74 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01094/0.3935, allocations: 1.903 MB / 404.7 MB, free: 10.49 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00543/0.3989, allocations: 1.249 MB / 405.9 MB, free: 9.695 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01281/0.4117, allocations: 6.114 MB / 412.1 MB, free: 6.426 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01262/0.4244, allocations: 5.367 MB / 417.4 MB, free: 3.781 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007477/0.4319, allocations: 2.845 MB / 420.3 MB, free: 2.082 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007804/0.4397, allocations: 3.387 MB / 423.7 MB, free: 15.02 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002661/0.4424, allocations: 0.7812 MB / 424.4 MB, free: 14.24 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004949/0.4474, allocations: 1.07 MB / 425.5 MB, free: 13.17 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003932/0.4513, allocations: 1.944 MB / 427.5 MB, free: 11.22 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00903/0.4604, allocations: 3.345 MB / 430.8 MB, free: 7.859 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01864/0.4791, allocations: 10.3 MB / 441.1 MB, free: 13.53 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.374e-06/0.4791, allocations: 0 / 441.1 MB, free: 13.53 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.555e-06/0.4792, allocations: 4 kB / 441.1 MB, free: 13.52 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0004721/0.4796, allocations: 0 / 441.1 MB, free: 13.52 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1347 * Number of variables: 1347 Notification: Performance of Generate backend data structure: time 0.02508/0.5047, allocations: 6.594 MB / 447.7 MB, free: 6.852 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.769e-05/0.5048, allocations: 8.031 kB / 447.7 MB, free: 6.844 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007888/0.5127, allocations: 1.001 MB / 448.7 MB, free: 5.836 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01405/0.5268, allocations: 3.349 MB / 452.1 MB, free: 2.41 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009671/0.5278, allocations: 382.7 kB / 452.4 MB, free: 2.035 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003471/0.5313, allocations: 0.5002 MB / 452.9 MB, free: 1.535 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03361/0.565, allocations: 6.779 MB / 459.7 MB, free: 10.69 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003766/0.5654, allocations: 15.84 kB / 459.7 MB, free: 10.67 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002698/0.5681, allocations: 208 kB / 459.9 MB, free: 10.47 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004489/0.5686, allocations: 246.2 kB / 460.2 MB, free: 10.23 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02629/0.5949, allocations: 5.736 MB / 465.9 MB, free: 4.48 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06306/0.658, allocations: 20.83 MB / 486.7 MB, free: 15.15 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01029/0.6684, allocations: 8.555 MB / 495.3 MB, free: 5.645 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004039/0.6725, allocations: 2.081 MB / 497.4 MB, free: 3.559 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01337/0.6859, allocations: 5.923 MB / 0.4915 GB, free: 13.5 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.913e-05/0.686, allocations: 56.56 kB / 0.4915 GB, free: 13.43 MB / 430.1 MB Notification: Performance of pre-optimization done (n=205): time 4.368e-06/0.686, allocations: 3.938 kB / 0.4915 GB, free: 13.43 MB / 430.1 MB Notification: Performance of matching and sorting (n=222): time 0.02169/0.7077, allocations: 10.27 MB / 0.5016 GB, free: 2.926 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.18e-05/0.7078, allocations: 77.41 kB / 0.5016 GB, free: 2.84 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005302/0.7131, allocations: 2.904 MB / 0.5045 GB, free: 15.92 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004135/0.7135, allocations: 65.7 kB / 0.5045 GB, free: 15.85 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002369/0.7159, allocations: 2.357 MB / 0.5068 GB, free: 13.47 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001144/0.7171, allocations: 0.7664 MB / 0.5076 GB, free: 12.7 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008307/0.7179, allocations: 0.5138 MB / 0.5081 GB, free: 12.17 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001029/0.718, allocations: 301.1 kB / 0.5084 GB, free: 11.88 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002093/0.7201, allocations: 1.271 MB / 0.5096 GB, free: 10.6 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002684/0.7228, allocations: 2.175 MB / 0.5118 GB, free: 8.023 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004933/0.7278, allocations: 3.676 MB / 0.5153 GB, free: 3.949 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.966e-05/0.7278, allocations: 11.94 kB / 0.5154 GB, free: 3.938 MB / 446.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.007754/0.7356, allocations: 4.446 MB / 0.5197 GB, free: 15.42 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.277e-05/0.7356, allocations: 23.98 kB / 0.5197 GB, free: 15.4 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.361e-05/0.7357, allocations: 28 kB / 0.5197 GB, free: 15.37 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001244/0.7369, allocations: 0.5133 MB / 0.5202 GB, free: 14.84 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002634/0.7396, allocations: 0.6864 MB / 0.5209 GB, free: 14.15 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009676/0.7493, allocations: 10.19 MB / 0.5309 GB, free: 3.266 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003213/0.7525, allocations: 171.8 kB / 0.531 GB, free: 3.098 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002559/0.7528, allocations: 132 kB / 0.5312 GB, free: 2.969 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 129 * 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 (348): * Single equations (assignments): 341 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (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): 5 systems {(3,11,100.0%), (1,3,100.0%), (1,1,100.0%), (1,1,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003332/0.7561, allocations: 1.52 MB / 0.5326 GB, free: 1.438 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007757/0.7569, allocations: 316.1 kB / 0.5329 GB, free: 1.125 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006421/0.7634, allocations: 3.883 MB / 0.5367 GB, free: 13.14 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.741e-05/0.7634, allocations: 20 kB / 0.5367 GB, free: 13.12 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.307e-05/0.7634, allocations: 8 kB / 0.5368 GB, free: 13.12 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.328e-05/0.7634, allocations: 15.89 kB / 0.5368 GB, free: 13.1 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01455/0.778, allocations: 8.463 MB / 0.545 GB, free: 4.445 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.378e-05/0.778, allocations: 4 kB / 0.545 GB, free: 4.441 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001737/0.7798, allocations: 387.9 kB / 0.5454 GB, free: 4.062 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001918/0.7817, allocations: 0.7249 MB / 0.5461 GB, free: 3.312 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001601/0.7819, allocations: 59.98 kB / 0.5462 GB, free: 3.254 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2623/1.044, allocations: 16.6 MB / 0.5624 GB, free: 136.4 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.576e-06/1.044, allocations: 6.125 kB / 0.5624 GB, free: 136.4 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01027/1.055, allocations: 5.566 MB / 0.5678 GB, free: 133.9 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001976/1.057, allocations: 0.6505 MB / 0.5685 GB, free: 133.7 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000466/1.057, allocations: 51.38 kB / 0.5685 GB, free: 133.6 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001539/1.059, allocations: 137.5 kB / 0.5686 GB, free: 133.6 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005194/1.059, allocations: 167 kB / 0.5688 GB, free: 133.6 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001517/1.059, allocations: 65.11 kB / 0.5689 GB, free: 133.6 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003627/1.063, allocations: 1.962 MB / 0.5708 GB, free: 132.8 MB / 478.1 MB Notification: Performance of sort global known variables: time 3.4e-07/1.063, allocations: 4.875 kB / 0.5708 GB, free: 132.8 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004161/1.067, allocations: 0.9382 MB / 0.5717 GB, free: 132.7 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 13 (vfController.x,smrM.inertiaRotor.w,smrM.stator.core.Phi.re,smrM.stator.core.Phi.im,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smrE.inertiaRotor.w,smrE.idq_sr[1],smrE.idq_sr[2],smrE.idq_dr[1],smrE.idq_dr[2],loadInertiaM.phi,loadInertiaE.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 (185): * Single equations (assignments): 177 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(1,5,100.0%), (3,11,100.0%), (1,3,100.0%), (1,1,100.0%), (2,1,100.0%), (1,1,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.0006264/1.068, allocations: 235.9 kB / 0.5719 GB, free: 132.6 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.007418/1.075, allocations: 3.965 MB / 0.5758 GB, free: 130.7 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 9.417e-06/1.075, allocations: 2.281 kB / 0.5758 GB, free: 130.7 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004504/1.08, allocations: 2.658 MB / 0.5784 GB, free: 129.2 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004928/1.085, allocations: 0.8521 MB / 0.5792 GB, free: 128.9 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01659/1.101, allocations: 9.48 MB / 0.5885 GB, free: 124.3 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002679/1.104, allocations: 3.296 MB / 0.5917 GB, free: 123.1 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002514/1.106, allocations: 0.7555 MB / 0.5924 GB, free: 122.9 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005875/1.107, allocations: 226.7 kB / 0.5927 GB, free: 122.9 MB / 478.1 MB Notification: Performance of SimCode: time 1.242e-06/1.107, allocations: 0 / 0.5927 GB, free: 122.9 MB / 478.1 MB Notification: Performance of Templates: time 0.07034/1.177, allocations: 45.37 MB / 0.637 GB, free: 80.52 MB / 478.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.sim & ./Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_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/SMR_Inverter/SMR_Inverter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches