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.001069/0.001069, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001173/0.001174, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.408/1.408, allocations: 227.4 MB / 246.7 MB, free: 10.64 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00119/0.00119, allocations: 58.66 kB / 306.9 MB, free: 0.6406 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1161/0.1173, allocations: 50.53 MB / 357.5 MB, free: 14.11 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.01217/0.1295, allocations: 10.35 MB / 367.8 MB, free: 3.707 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006279/0.1358, allocations: 3.482 MB / 371.3 MB, free: 212 kB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009607/0.1368, allocations: 59.75 kB / 371.4 MB, free: 152 kB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.1717/0.3085, allocations: 0.7658 MB / 372.1 MB, free: 10.15 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002681/0.3112, allocations: 0.8358 MB / 373 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007679/0.312, allocations: 426.7 kB / 373.4 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002761/0.3148, allocations: 2.742 MB / 376.1 MB, free: 9.875 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002511/0.3173, allocations: 2.409 MB / 378.5 MB, free: 9.383 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00293/0.3202, allocations: 1.264 MB / 379.8 MB, free: 9 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001953/0.3222, allocations: 1.587 MB / 381.4 MB, free: 8.297 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004512/0.3227, allocations: 334.1 kB / 381.7 MB, free: 8.297 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008753/0.3236, allocations: 443 kB / 382.1 MB, free: 8.273 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008608/0.3244, allocations: 0.9294 MB / 383.1 MB, free: 7.781 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001781/0.3262, allocations: 1.519 MB / 384.6 MB, free: 6.793 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005994/0.3322, allocations: 4.338 MB / 388.9 MB, free: 4.941 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.713e-06/0.3323, allocations: 0 / 388.9 MB, free: 4.941 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.426e-06/0.3323, allocations: 0 / 388.9 MB, free: 4.941 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001106/0.3324, allocations: 1.125 kB / 388.9 MB, free: 4.941 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.007505/0.3399, allocations: 3.063 MB / 392 MB, free: 2.828 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.336e-05/0.34, allocations: 10.06 kB / 392 MB, free: 2.828 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009132/0.3409, allocations: 318.7 kB / 392.3 MB, free: 2.672 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002193/0.3431, allocations: 1.571 MB / 393.9 MB, free: 1.551 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001341/0.3432, allocations: 172.5 kB / 394.1 MB, free: 1.473 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002913/0.3435, allocations: 224 kB / 394.3 MB, free: 1.395 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004191/0.3477, allocations: 2.918 MB / 397.2 MB, free: 15.66 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.166e-05/0.3478, allocations: 6.875 kB / 397.2 MB, free: 15.65 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002065/0.348, allocations: 90.16 kB / 397.3 MB, free: 15.59 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001064/0.3481, allocations: 122.5 kB / 397.4 MB, free: 15.55 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004028/0.3521, allocations: 2.432 MB / 399.8 MB, free: 14.31 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01356/0.3657, allocations: 9.115 MB / 409 MB, free: 5.074 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002186/0.3679, allocations: 1.705 MB / 410.7 MB, free: 3.262 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001646/0.3696, allocations: 0.9959 MB / 411.7 MB, free: 2.27 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002856/0.3699, allocations: 206 kB / 411.9 MB, free: 2.031 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.646e-05/0.3699, allocations: 51.5 kB / 411.9 MB, free: 1.973 MB / 318.1 MB Notification: Performance of pre-optimization done (n=105): time 3.416e-06/0.37, allocations: 0 / 411.9 MB, free: 1.973 MB / 318.1 MB Notification: Performance of matching and sorting (n=122): time 0.01384/0.3838, allocations: 6.575 MB / 418.5 MB, free: 11.24 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.092e-05/0.3839, allocations: 64.41 kB / 418.5 MB, free: 11.17 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002274/0.3861, allocations: 1.569 MB / 420.1 MB, free: 9.59 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 8.891e-05/0.3862, allocations: 49.64 kB / 420.2 MB, free: 9.535 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007809/0.387, allocations: 1.107 MB / 421.3 MB, free: 8.414 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003518/0.3874, allocations: 427.9 kB / 421.7 MB, free: 8 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004336/0.3878, allocations: 275.3 kB / 422 MB, free: 7.727 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001312/0.388, allocations: 301.1 kB / 422.2 MB, free: 7.43 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00119/0.3892, allocations: 0.7144 MB / 423 MB, free: 6.715 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001467/0.3906, allocations: 1.127 MB / 424.1 MB, free: 5.41 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002719/0.3934, allocations: 1.972 MB / 426.1 MB, free: 3.258 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.684e-06/0.3934, allocations: 4 kB / 426.1 MB, free: 3.254 MB / 334.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.004091/0.3975, allocations: 2.526 MB / 428.6 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.696e-05/0.3975, allocations: 11.94 kB / 428.6 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.912e-05/0.3976, allocations: 12 kB / 428.6 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009708/0.3985, allocations: 431.5 kB / 429 MB, free: 240 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00126/0.3998, allocations: 347.5 kB / 429.4 MB, free: 15.89 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007045/0.4069, allocations: 7.126 MB / 436.5 MB, free: 8.352 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001713/0.4086, allocations: 108 kB / 436.6 MB, free: 8.246 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001655/0.4088, allocations: 63.98 kB / 436.7 MB, free: 8.184 MB / 350.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.001352/0.4102, allocations: 0.7274 MB / 437.4 MB, free: 7.445 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003722/0.4105, allocations: 169.8 kB / 437.6 MB, free: 7.277 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003703/0.4142, allocations: 2.187 MB / 439.8 MB, free: 5.051 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.229e-05/0.4143, allocations: 12 kB / 439.8 MB, free: 5.039 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.646e-06/0.4143, allocations: 4 kB / 439.8 MB, free: 5.035 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.776e-05/0.4143, allocations: 11.97 kB / 439.8 MB, free: 5.023 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008036/0.4223, allocations: 4.793 MB / 444.6 MB, free: 116 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.696e-06/0.4224, allocations: 4 kB / 444.6 MB, free: 112 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009429/0.4233, allocations: 219.7 kB / 444.8 MB, free: 15.89 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001123/0.4245, allocations: 460.6 kB / 445.2 MB, free: 15.44 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.827e-05/0.4246, allocations: 47.97 kB / 445.3 MB, free: 15.39 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008178/0.4328, allocations: 8.683 MB / 454 MB, free: 6.16 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.889e-06/0.4328, allocations: 4 kB / 454 MB, free: 6.156 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005086/0.4379, allocations: 3.223 MB / 457.2 MB, free: 2.836 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008179/0.4387, allocations: 390.8 kB / 457.6 MB, free: 2.434 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002314/0.439, allocations: 39.98 kB / 457.6 MB, free: 2.395 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008816/0.4399, allocations: 83.91 kB / 457.7 MB, free: 2.312 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002186/0.4401, allocations: 100.7 kB / 457.8 MB, free: 2.215 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.489e-05/0.4402, allocations: 39.94 kB / 457.8 MB, free: 2.176 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001517/0.4417, allocations: 1.071 MB / 458.9 MB, free: 1.109 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4417, allocations: 4 kB / 458.9 MB, free: 1.105 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001634/0.4433, allocations: 488 kB / 459.4 MB, free: 0.6289 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 (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.0003491/0.4437, allocations: 200.9 kB / 459.6 MB, free: 436 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004646/0.4484, allocations: 2.794 MB / 462.4 MB, free: 13.57 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.847e-06/0.4484, allocations: 0 / 462.4 MB, free: 13.57 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002244/0.4506, allocations: 1.479 MB / 463.9 MB, free: 12.04 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002034/0.4527, allocations: 479.4 kB / 464.3 MB, free: 11.59 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00726/0.4599, allocations: 4.721 MB / 469 MB, free: 6.793 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001667/0.4616, allocations: 1.867 MB / 470.9 MB, free: 4.895 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001177/0.4628, allocations: 402.8 kB / 471.3 MB, free: 4.496 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003175/0.4631, allocations: 119.4 kB / 471.4 MB, free: 4.379 MB / 382.1 MB Notification: Performance of SimCode: time 5.61e-07/0.4631, allocations: 0 / 471.4 MB, free: 4.379 MB / 382.1 MB Notification: Performance of Templates: time 0.04437/0.5075, allocations: 26.45 MB / 497.9 MB, free: 10.21 MB / 414.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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches