Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertia.phi|loadInertia.w|smpm.is.1.|smpm.is.2.|smpm.idq_dr.1.|smpm.idq_rr.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|vfController.x",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertia.phi|loadInertia.w|smpm.is.1.|smpm.is.2.|smpm.idq_dr.1.|smpm.idq_rr.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|vfController.x",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001303/0.001303, allocations: 113.6 kB / 17.83 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001292/0.001292, allocations: 208.6 kB / 18.79 MB, free: 4.309 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.476/1.476, allocations: 230.4 MB / 250 MB, free: 9.078 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002278/0.002278, allocations: 71.77 kB / 367.4 MB, free: 7.004 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2712/0.2735, allocations: 53.31 MB / 420.7 MB, free: 8.324 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.01299/0.2865, allocations: 10.39 MB / 431.1 MB, free: 13.9 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007105/0.2936, allocations: 3.489 MB / 434.6 MB, free: 10.39 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001676/0.2953, allocations: 63.75 kB / 434.6 MB, free: 10.33 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002043/0.2973, allocations: 0.8346 MB / 435.4 MB, free: 9.496 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003018/0.3003, allocations: 0.8815 MB / 436.3 MB, free: 8.609 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001165/0.3015, allocations: 423.4 kB / 436.7 MB, free: 8.195 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003632/0.3051, allocations: 2.763 MB / 439.5 MB, free: 5.418 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002204/0.3073, allocations: 1.719 MB / 441.2 MB, free: 3.629 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00192/0.3092, allocations: 1.273 MB / 442.5 MB, free: 2.352 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002328/0.3116, allocations: 1.619 MB / 444.1 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004824/0.3121, allocations: 332 kB / 444.4 MB, free: 412 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008558/0.3129, allocations: 455.8 kB / 444.9 MB, free: 15.96 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009695/0.3139, allocations: 0.9465 MB / 445.8 MB, free: 15.01 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00166/0.3155, allocations: 1.509 MB / 447.3 MB, free: 13.49 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005105/0.3206, allocations: 4.402 MB / 451.7 MB, free: 9.074 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.843e-06/0.3207, allocations: 3.984 kB / 451.7 MB, free: 9.07 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.542e-06/0.3207, allocations: 4 kB / 451.8 MB, free: 9.066 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.186e-05/0.3207, allocations: 0 / 451.8 MB, free: 9.066 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: 581 * Number of variables: 581 Notification: Performance of Generate backend data structure: time 0.00629/0.327, allocations: 3.128 MB / 454.9 MB, free: 5.871 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.001e-05/0.3271, allocations: 8.031 kB / 454.9 MB, free: 5.863 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000882/0.328, allocations: 335 kB / 455.2 MB, free: 5.535 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002936/0.3309, allocations: 1.642 MB / 456.9 MB, free: 3.836 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001391/0.331, allocations: 168.3 kB / 457 MB, free: 3.668 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003559/0.3314, allocations: 231.8 kB / 457.2 MB, free: 3.441 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005055/0.3364, allocations: 2.917 MB / 460.2 MB, free: 448 kB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.166e-05/0.3365, allocations: 11.92 kB / 460.2 MB, free: 436 kB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002138/0.3367, allocations: 88 kB / 460.3 MB, free: 348 kB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001391/0.3369, allocations: 112.3 kB / 460.4 MB, free: 232 kB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004553/0.3414, allocations: 2.434 MB / 462.8 MB, free: 13.77 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01416/0.3556, allocations: 9.03 MB / 471.8 MB, free: 4.469 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002397/0.358, allocations: 1.646 MB / 473.5 MB, free: 2.703 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001739/0.3597, allocations: 0.9183 MB / 474.4 MB, free: 1.785 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002965/0.36, allocations: 203.2 kB / 474.6 MB, free: 1.551 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.533e-05/0.36, allocations: 47.56 kB / 474.6 MB, free: 1.496 MB / 382.1 MB Notification: Performance of pre-optimization done (n=105): time 2.305e-06/0.36, allocations: 0 / 474.6 MB, free: 1.496 MB / 382.1 MB Notification: Performance of matching and sorting (n=122): time 0.01441/0.3745, allocations: 6.598 MB / 481.2 MB, free: 10.73 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.078e-05/0.3745, allocations: 64.41 kB / 481.3 MB, free: 10.66 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002378/0.3769, allocations: 1.566 MB / 482.9 MB, free: 9.086 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 9.687e-05/0.377, allocations: 45.7 kB / 482.9 MB, free: 9.035 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000898/0.3779, allocations: 1.138 MB / 484.1 MB, free: 7.883 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003919/0.3783, allocations: 452.1 kB / 484.5 MB, free: 7.438 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004497/0.3787, allocations: 279.5 kB / 484.8 MB, free: 7.156 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001178/0.3788, allocations: 301.1 kB / 485.1 MB, free: 6.859 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00124/0.3801, allocations: 0.7144 MB / 485.8 MB, free: 6.145 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001607/0.3817, allocations: 1.134 MB / 486.9 MB, free: 4.828 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002906/0.3846, allocations: 1.967 MB / 488.9 MB, free: 2.68 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.023e-06/0.3846, allocations: 4 kB / 488.9 MB, free: 2.676 MB / 398.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.004531/0.3891, allocations: 2.527 MB / 491.4 MB, free: 112 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.067e-05/0.3891, allocations: 8 kB / 491.4 MB, free: 104 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.175e-05/0.3892, allocations: 19.98 kB / 491.4 MB, free: 84 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009946/0.3902, allocations: 418.9 kB / 491.8 MB, free: 15.66 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001277/0.3914, allocations: 355.4 kB / 492.2 MB, free: 15.32 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007552/0.399, allocations: 7.121 MB / 499.3 MB, free: 7.781 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001418/0.4004, allocations: 107.9 kB / 499.4 MB, free: 7.676 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001488/0.4006, allocations: 63.98 kB / 499.5 MB, free: 7.613 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * 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 (169): * Single equations (assignments): 165 * 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 {(3,12,100.0%), (1,6,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001205/0.4018, allocations: 0.7276 MB / 0.4885 GB, free: 6.875 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003205/0.4021, allocations: 174.9 kB / 0.4887 GB, free: 6.703 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004073/0.4062, allocations: 2.186 MB / 0.4908 GB, free: 4.473 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.27e-05/0.4062, allocations: 12 kB / 0.4908 GB, free: 4.461 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.939e-06/0.4062, allocations: 4 kB / 0.4908 GB, free: 4.457 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.61e-05/0.4062, allocations: 15.84 kB / 0.4908 GB, free: 4.441 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008705/0.4149, allocations: 4.76 MB / 0.4955 GB, free: 15.54 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.071e-05/0.4149, allocations: 4 kB / 0.4955 GB, free: 15.53 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009695/0.4159, allocations: 224.1 kB / 0.4957 GB, free: 15.31 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001251/0.4171, allocations: 466.4 kB / 0.4961 GB, free: 14.85 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001042/0.4172, allocations: 39.97 kB / 0.4962 GB, free: 14.81 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00896/0.4262, allocations: 8.687 MB / 0.5047 GB, free: 5.551 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.769e-06/0.4262, allocations: 4 kB / 0.5047 GB, free: 5.547 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005423/0.4316, allocations: 3.215 MB / 0.5078 GB, free: 2.238 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009427/0.4326, allocations: 411.8 kB / 0.5082 GB, free: 1.816 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002348/0.4328, allocations: 35.98 kB / 0.5082 GB, free: 1.781 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008901/0.4337, allocations: 83.91 kB / 0.5083 GB, free: 1.699 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002737/0.434, allocations: 104.7 kB / 0.5084 GB, free: 1.598 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.582e-05/0.4341, allocations: 32 kB / 0.5084 GB, free: 1.566 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001692/0.4357, allocations: 1.074 MB / 0.5095 GB, free: 0.4961 MB / 430.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4357, allocations: 0 / 0.5095 GB, free: 0.4961 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001722/0.4375, allocations: 491.9 kB / 0.5099 GB, free: 16 kB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 7 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],smpm.idq_rr[2],smpm.idq_dr[1],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 (107): * Single equations (assignments): 103 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,12,100.0%), (1,6,100.0%), (1,1,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004296/0.4379, allocations: 203.1 kB / 0.5101 GB, free: 15.8 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004021/0.4419, allocations: 2.219 MB / 0.5123 GB, free: 13.53 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.031e-06/0.4419, allocations: 4.062 kB / 0.5123 GB, free: 13.53 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002586/0.4445, allocations: 1.422 MB / 0.5137 GB, free: 12.05 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002621/0.4471, allocations: 493.1 kB / 0.5142 GB, free: 11.59 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008863/0.456, allocations: 4.731 MB / 0.5188 GB, free: 6.773 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001932/0.4579, allocations: 1.875 MB / 0.5206 GB, free: 4.863 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001227/0.4592, allocations: 386.8 kB / 0.521 GB, free: 4.48 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003545/0.4595, allocations: 119.4 kB / 0.5211 GB, free: 4.363 MB / 446.1 MB Notification: Performance of SimCode: time 7.91e-07/0.4595, allocations: 4 kB / 0.5211 GB, free: 4.359 MB / 446.1 MB Notification: Performance of Templates: time 0.2683/0.7278, allocations: 27.29 MB / 0.5478 GB, free: 108 MB / 462.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_Inverter/SMPM_Inverter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches