Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_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 trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_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_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001267/0.001267, allocations: 95.05 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001558/0.001558, allocations: 204 kB / 17.9 MB, free: 5.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.366/1.366, allocations: 227.2 MB / 245.9 MB, free: 12.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002133/0.0002133, allocations: 4 kB / 306.6 MB, free: 1.648 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1065/0.1068, allocations: 51.5 MB / 358.1 MB, free: 14.16 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.008947/0.1158, allocations: 8.414 MB / 366.5 MB, free: 5.711 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005979/0.1218, allocations: 3.368 MB / 369.9 MB, free: 2.332 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001007/0.1228, allocations: 47.75 kB / 369.9 MB, free: 2.285 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001523/0.1243, allocations: 0.6413 MB / 370.5 MB, free: 1.641 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001994/0.1263, allocations: 0.7244 MB / 371.3 MB, free: 0.9141 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007008/0.1271, allocations: 267.6 kB / 371.5 MB, free: 0.6523 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1846/0.3116, allocations: 1.805 MB / 373.3 MB, free: 9.781 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002368/0.3141, allocations: 1.579 MB / 374.9 MB, free: 9.512 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001628/0.3157, allocations: 0.8725 MB / 375.8 MB, free: 9.512 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0016/0.3173, allocations: 1.129 MB / 376.9 MB, free: 9.508 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002781/0.3176, allocations: 135.3 kB / 377 MB, free: 9.508 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006606/0.3183, allocations: 212.1 kB / 377.3 MB, free: 9.508 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006684/0.3189, allocations: 0.6664 MB / 377.9 MB, free: 9.504 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005783/0.3195, allocations: 0.515 MB / 378.4 MB, free: 9.473 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003693/0.3232, allocations: 3.471 MB / 381.9 MB, free: 9.262 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.3232, allocations: 0 / 381.9 MB, free: 9.262 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.917e-06/0.3233, allocations: 1.531 kB / 381.9 MB, free: 9.262 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.296e-05/0.3234, allocations: 3.469 kB / 381.9 MB, free: 9.262 MB / 302.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.006115/0.3295, allocations: 2.614 MB / 384.5 MB, free: 7.879 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.358e-05/0.3295, allocations: 13.31 kB / 384.5 MB, free: 7.875 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00101/0.3305, allocations: 314 kB / 384.8 MB, free: 7.723 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002837/0.3334, allocations: 1.549 MB / 386.4 MB, free: 7.016 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001781/0.3336, allocations: 174.7 kB / 386.6 MB, free: 7.008 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003357/0.3339, allocations: 226.6 kB / 386.8 MB, free: 7 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004859/0.3388, allocations: 2.893 MB / 389.7 MB, free: 6.23 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.332e-05/0.3389, allocations: 2.906 kB / 389.7 MB, free: 6.23 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000202/0.3391, allocations: 95.64 kB / 389.8 MB, free: 6.227 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001334/0.3392, allocations: 119.2 kB / 389.9 MB, free: 6.207 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003967/0.3432, allocations: 2.436 MB / 392.3 MB, free: 5.789 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01209/0.3553, allocations: 9.105 MB / 401.4 MB, free: 15.52 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002211/0.3575, allocations: 1.717 MB / 403.2 MB, free: 13.73 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002733/0.3578, allocations: 198.6 kB / 403.3 MB, free: 13.5 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.682e-05/0.3579, allocations: 47.56 kB / 403.4 MB, free: 13.45 MB / 318.1 MB Notification: Performance of pre-optimization done (n=105): time 2.945e-06/0.3579, allocations: 4 kB / 403.4 MB, free: 13.44 MB / 318.1 MB Notification: Performance of matching and sorting (n=122): time 0.01385/0.3717, allocations: 6.682 MB / 410.1 MB, free: 6.609 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.507e-05/0.3718, allocations: 65.34 kB / 410.1 MB, free: 6.531 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002212/0.374, allocations: 1.499 MB / 411.6 MB, free: 5.023 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.4e-05/0.3741, allocations: 45.7 kB / 411.7 MB, free: 4.973 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007169/0.3748, allocations: 1.111 MB / 412.8 MB, free: 3.852 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002941/0.3751, allocations: 432.9 kB / 413.2 MB, free: 3.43 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.433e-05/0.3752, allocations: 32 kB / 413.2 MB, free: 3.398 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001406/0.3754, allocations: 365.9 kB / 413.6 MB, free: 3.035 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001119/0.3765, allocations: 0.7183 MB / 414.3 MB, free: 2.316 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001486/0.378, allocations: 1.143 MB / 415.5 MB, free: 1 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001382/0.3794, allocations: 0.9042 MB / 416.4 MB, free: 96 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.672e-06/0.3794, allocations: 9.219 kB / 416.4 MB, free: 88 kB / 318.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.003894/0.3833, allocations: 2.511 MB / 418.9 MB, free: 13.53 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.634e-05/0.3834, allocations: 12 kB / 418.9 MB, free: 13.52 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.967e-05/0.3834, allocations: 12 kB / 418.9 MB, free: 13.51 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008751/0.3843, allocations: 401.8 kB / 419.3 MB, free: 13.11 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001231/0.3855, allocations: 363.4 kB / 419.7 MB, free: 12.75 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006332/0.3918, allocations: 6.437 MB / 426.1 MB, free: 5.914 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001952/0.3938, allocations: 115.8 kB / 426.2 MB, free: 5.801 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001321/0.394, allocations: 63.98 kB / 426.3 MB, free: 5.738 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 58 * 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 (172): * Single equations (assignments): 168 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(3,100.0%) 12,(1,100.0%) 3,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001862/0.3958, allocations: 0.7198 MB / 427 MB, free: 5.008 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005445/0.3964, allocations: 169.8 kB / 427.2 MB, free: 4.84 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003904/0.4003, allocations: 2.212 MB / 429.4 MB, free: 2.586 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.18e-05/0.4003, allocations: 12 kB / 429.4 MB, free: 2.574 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.674e-06/0.4004, allocations: 7.938 kB / 429.4 MB, free: 2.566 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.599e-05/0.4004, allocations: 7.969 kB / 429.4 MB, free: 2.559 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009256/0.4096, allocations: 4.738 MB / 434.1 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.647e-05/0.4097, allocations: 4 kB / 434.1 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000964/0.4106, allocations: 237.9 kB / 434.4 MB, free: 13.47 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001065/0.4117, allocations: 438.8 kB / 434.8 MB, free: 13.03 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001096/0.4118, allocations: 39.98 kB / 434.8 MB, free: 12.99 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007295/0.4191, allocations: 7.929 MB / 442.8 MB, free: 4.523 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.28e-06/0.4192, allocations: 7.938 kB / 442.8 MB, free: 4.516 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005103/0.4243, allocations: 3.463 MB / 446.2 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001102/0.4254, allocations: 402.8 kB / 446.6 MB, free: 464 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005095/0.4259, allocations: 28 kB / 446.7 MB, free: 436 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001162/0.4271, allocations: 91.91 kB / 446.8 MB, free: 344 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002272/0.4273, allocations: 104.8 kB / 446.9 MB, free: 240 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.976e-05/0.4274, allocations: 39.98 kB / 446.9 MB, free: 200 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001913/0.4293, allocations: 1.012 MB / 447.9 MB, free: 15.19 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4294, allocations: 0 / 447.9 MB, free: 15.19 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002161/0.4315, allocations: 488 kB / 448.4 MB, free: 14.71 MB / 366.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 (110): * Single equations (assignments): 106 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(3,100.0%) 12,(1,100.0%) 3,(1,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003814/0.4319, allocations: 171.6 kB / 448.6 MB, free: 14.54 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003675/0.4356, allocations: 2.294 MB / 450.8 MB, free: 12.19 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.611e-06/0.4356, allocations: 0 / 450.8 MB, free: 12.19 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002248/0.4379, allocations: 1.472 MB / 452.3 MB, free: 10.66 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002282/0.4402, allocations: 447.8 kB / 452.8 MB, free: 10.24 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009107/0.4493, allocations: 5.571 MB / 458.3 MB, free: 4.598 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00217/0.4515, allocations: 1.907 MB / 460.2 MB, free: 2.66 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001577/0.4531, allocations: 390.8 kB / 460.6 MB, free: 2.273 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004381/0.4535, allocations: 123.4 kB / 460.7 MB, free: 2.152 MB / 366.1 MB Notification: Performance of SimCode: time 9.42e-07/0.4535, allocations: 0 / 460.7 MB, free: 2.152 MB / 366.1 MB Notification: Performance of Templates: time 0.04356/0.4971, allocations: 23.85 MB / 484.6 MB, free: 10.55 MB / 398.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_Inverter/SMPM_Inverter.csv","../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches