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.0007512/0.0007513, allocations: 96.61 kB / 17.35 MB, free: 6.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009228/0.0009229, allocations: 202.9 kB / 18.28 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.331/1.331, allocations: 227.8 MB / 246.8 MB, free: 9.773 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002082/0.0002082, allocations: 4 kB / 307.8 MB, free: 0.6055 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09953/0.09976, allocations: 51.52 MB / 359.3 MB, free: 13.08 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.01083/0.1106, allocations: 9.732 MB / 369 MB, free: 3.301 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.159/0.2697, allocations: 3.414 MB / 372.4 MB, free: 9.805 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001902/0.2716, allocations: 54.56 kB / 372.5 MB, free: 9.805 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001981/0.2736, allocations: 0.67 MB / 373.1 MB, free: 9.805 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002059/0.2757, allocations: 0.7558 MB / 373.9 MB, free: 9.781 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009078/0.2766, allocations: 372.5 kB / 374.3 MB, free: 9.773 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003795/0.2804, allocations: 3.088 MB / 377.4 MB, free: 9.391 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002285/0.2827, allocations: 2.012 MB / 379.4 MB, free: 8.914 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001575/0.2843, allocations: 0.9697 MB / 380.3 MB, free: 8.684 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001524/0.2858, allocations: 1.334 MB / 381.7 MB, free: 8.402 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000259/0.2861, allocations: 142.3 kB / 381.8 MB, free: 8.398 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006161/0.2867, allocations: 257.2 kB / 382.1 MB, free: 8.395 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000692/0.2874, allocations: 0.7013 MB / 382.8 MB, free: 8.285 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00108/0.2885, allocations: 1.273 MB / 384 MB, free: 7.535 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003084/0.2916, allocations: 4.114 MB / 388.1 MB, free: 5.68 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.2916, allocations: 0 / 388.1 MB, free: 5.68 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.2916, allocations: 1.156 kB / 388.1 MB, free: 5.68 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.523e-05/0.2917, allocations: 0 / 388.1 MB, free: 5.68 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.004445/0.2961, allocations: 2.605 MB / 390.8 MB, free: 3.902 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.54e-05/0.2962, allocations: 9.531 kB / 390.8 MB, free: 3.902 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007825/0.297, allocations: 317.8 kB / 391.1 MB, free: 3.746 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002155/0.2991, allocations: 1.583 MB / 392.7 MB, free: 2.617 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001528/0.2993, allocations: 173.5 kB / 392.8 MB, free: 2.539 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003415/0.2996, allocations: 225.5 kB / 393 MB, free: 2.461 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004846/0.3045, allocations: 2.93 MB / 396 MB, free: 0.7227 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.867e-05/0.3046, allocations: 2.969 kB / 396 MB, free: 0.7227 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000203/0.3048, allocations: 86 kB / 396.1 MB, free: 0.6562 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001376/0.3049, allocations: 127.7 kB / 396.2 MB, free: 0.6211 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004123/0.309, allocations: 2.457 MB / 398.6 MB, free: 15.38 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01421/0.3233, allocations: 9.165 MB / 407.8 MB, free: 6.734 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002403/0.3257, allocations: 1.71 MB / 409.5 MB, free: 4.914 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001831/0.3276, allocations: 1.014 MB / 410.5 MB, free: 3.906 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003097/0.3279, allocations: 210.5 kB / 410.7 MB, free: 3.664 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.479e-05/0.3279, allocations: 43.56 kB / 410.8 MB, free: 3.613 MB / 318.1 MB Notification: Performance of pre-optimization done (n=105): time 3.136e-06/0.3279, allocations: 0 / 410.8 MB, free: 3.613 MB / 318.1 MB Notification: Performance of matching and sorting (n=122): time 0.01614/0.3441, allocations: 6.703 MB / 417.5 MB, free: 12.75 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.253e-05/0.3442, allocations: 64.41 kB / 417.5 MB, free: 12.67 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002769/0.3469, allocations: 1.558 MB / 419.1 MB, free: 11.11 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001048/0.3471, allocations: 49.7 kB / 419.2 MB, free: 11.05 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007783/0.3479, allocations: 1.121 MB / 420.3 MB, free: 9.918 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003676/0.3482, allocations: 430.6 kB / 420.7 MB, free: 9.5 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000192/0.3484, allocations: 121.6 kB / 420.8 MB, free: 9.375 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 8.831e-05/0.3485, allocations: 301.1 kB / 421.1 MB, free: 9.078 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00129/0.3498, allocations: 0.7222 MB / 421.8 MB, free: 8.355 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001566/0.3514, allocations: 1.151 MB / 423 MB, free: 7.023 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002887/0.3543, allocations: 1.992 MB / 425 MB, free: 4.852 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.009e-05/0.3543, allocations: 4 kB / 425 MB, free: 4.848 MB / 334.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.004591/0.3589, allocations: 2.538 MB / 427.5 MB, free: 2.27 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.197e-05/0.359, allocations: 11.94 kB / 427.5 MB, free: 2.258 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.709e-05/0.359, allocations: 16 kB / 427.5 MB, free: 2.242 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001053/0.3601, allocations: 424.5 kB / 428 MB, free: 1.82 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001331/0.3614, allocations: 359.5 kB / 428.3 MB, free: 1.469 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007027/0.3684, allocations: 6.556 MB / 434.9 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00177/0.3703, allocations: 111.8 kB / 435 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002326/0.3705, allocations: 63.98 kB / 435 MB, free: 10.34 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.001754/0.3723, allocations: 0.723 MB / 435.8 MB, free: 9.613 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005094/0.3728, allocations: 169.8 kB / 435.9 MB, free: 9.445 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004381/0.3772, allocations: 2.219 MB / 438.1 MB, free: 7.184 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.493e-05/0.3772, allocations: 15.94 kB / 438.2 MB, free: 7.168 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.273e-05/0.3772, allocations: 4 kB / 438.2 MB, free: 7.164 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.389e-05/0.3772, allocations: 7.969 kB / 438.2 MB, free: 7.156 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008764/0.386, allocations: 4.812 MB / 443 MB, free: 2.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.041e-05/0.386, allocations: 4 kB / 443 MB, free: 2.227 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009896/0.387, allocations: 235.6 kB / 443.2 MB, free: 1.996 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001223/0.3883, allocations: 453.3 kB / 443.7 MB, free: 1.543 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001104/0.3884, allocations: 43.98 kB / 443.7 MB, free: 1.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008052/0.3965, allocations: 7.984 MB / 451.7 MB, free: 8.992 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.865e-06/0.3965, allocations: 11.92 kB / 451.7 MB, free: 8.98 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005482/0.402, allocations: 3.243 MB / 454.9 MB, free: 5.641 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001094/0.4031, allocations: 402.8 kB / 455.3 MB, free: 5.227 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000465/0.4036, allocations: 35.98 kB / 455.4 MB, free: 5.191 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001196/0.4048, allocations: 87.91 kB / 455.5 MB, free: 5.105 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002362/0.405, allocations: 100.7 kB / 455.6 MB, free: 5.008 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.52e-05/0.4051, allocations: 36 kB / 455.6 MB, free: 4.973 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001927/0.4071, allocations: 1.074 MB / 456.7 MB, free: 3.902 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4071, allocations: 0 / 456.7 MB, free: 3.902 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002273/0.4093, allocations: 488 kB / 457.1 MB, free: 3.426 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.0005109/0.4099, allocations: 209.9 kB / 457.3 MB, free: 3.215 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003974/0.4138, allocations: 2.306 MB / 459.7 MB, free: 0.8477 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.789e-06/0.4139, allocations: 0 / 459.7 MB, free: 0.8477 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00249/0.4164, allocations: 1.489 MB / 461.1 MB, free: 15.31 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003253/0.4196, allocations: 459.1 kB / 461.6 MB, free: 14.88 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008438/0.4281, allocations: 5.838 MB / 467.4 MB, free: 8.949 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001699/0.4298, allocations: 1.867 MB / 469.3 MB, free: 7.043 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001202/0.431, allocations: 390.9 kB / 469.7 MB, free: 6.656 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00036/0.4314, allocations: 123.4 kB / 469.8 MB, free: 6.535 MB / 382.1 MB Notification: Performance of SimCode: time 5.11e-07/0.4314, allocations: 0 / 469.8 MB, free: 6.535 MB / 382.1 MB Notification: Performance of Templates: time 0.04449/0.4759, allocations: 25.03 MB / 494.8 MB, free: 13.75 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