Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.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.0.0_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.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001489/0.001488, allocations: 104.2 kB / 17.59 MB, free: 5.559 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.001433/0.001433, allocations: 191.4 kB / 18.51 MB, free: 4.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.361/1.361, allocations: 222.9 MB / 242.2 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001489/0.001489, allocations: 51.02 kB / 301.3 MB, free: 5.852 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1068/0.1084, allocations: 49.45 MB / 350.7 MB, free: 4.398 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.01116/0.1195, allocations: 10.31 MB / 361 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006131/0.1257, allocations: 3.423 MB / 364.5 MB, free: 6.602 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001519/0.1273, allocations: 59.75 kB / 364.5 MB, free: 6.543 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002288/0.1296, allocations: 0.7685 MB / 365.3 MB, free: 5.77 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002882/0.1325, allocations: 0.8307 MB / 366.1 MB, free: 4.934 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001123/0.1337, allocations: 423.4 kB / 366.5 MB, free: 4.52 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003285/0.137, allocations: 2.738 MB / 369.3 MB, free: 1.773 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1701/0.3071, allocations: 2.398 MB / 371.7 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002245/0.3094, allocations: 1.253 MB / 372.9 MB, free: 11.22 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003006/0.3124, allocations: 1.581 MB / 374.5 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006513/0.3131, allocations: 334.6 kB / 374.8 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001224/0.3144, allocations: 429.1 kB / 375.3 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001056/0.3154, allocations: 0.9369 MB / 376.2 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001839/0.3173, allocations: 1.509 MB / 377.7 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004822/0.3221, allocations: 4.326 MB / 382 MB, free: 9.957 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.3221, allocations: 1.031 kB / 382 MB, free: 9.957 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.3221, allocations: 0 / 382 MB, free: 9.957 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001233/0.3223, allocations: 0 / 382 MB, free: 9.957 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.008393/0.3307, allocations: 3.057 MB / 385.1 MB, free: 8.289 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.617e-05/0.3307, allocations: 9.375 kB / 385.1 MB, free: 8.289 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001002/0.3317, allocations: 314.4 kB / 385.4 MB, free: 8.141 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002571/0.3343, allocations: 1.572 MB / 387 MB, free: 7.289 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001691/0.3345, allocations: 179.4 kB / 387.2 MB, free: 7.207 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003304/0.3349, allocations: 223.8 kB / 387.4 MB, free: 7.129 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005194/0.3401, allocations: 2.917 MB / 390.3 MB, free: 5.523 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.945e-05/0.3401, allocations: 6.188 kB / 390.3 MB, free: 5.523 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002115/0.3404, allocations: 94.03 kB / 390.4 MB, free: 5.453 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001095/0.3405, allocations: 117.5 kB / 390.5 MB, free: 5.43 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004205/0.3447, allocations: 2.436 MB / 392.9 MB, free: 4.188 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01397/0.3587, allocations: 9.106 MB / 402 MB, free: 13.73 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002436/0.3612, allocations: 1.705 MB / 403.7 MB, free: 12.45 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001861/0.363, allocations: 0.996 MB / 404.7 MB, free: 11.46 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003118/0.3634, allocations: 203.1 kB / 404.9 MB, free: 11.22 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.659e-05/0.3634, allocations: 43.56 kB / 405 MB, free: 11.17 MB / 318.1 MB Notification: Performance of pre-optimization done (n=105): time 3.326e-06/0.3634, allocations: 0 / 405 MB, free: 11.17 MB / 318.1 MB Notification: Performance of matching and sorting (n=122): time 0.01566/0.3791, allocations: 6.561 MB / 411.5 MB, free: 4.484 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.572e-05/0.3792, allocations: 71.02 kB / 411.6 MB, free: 4.406 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002548/0.3818, allocations: 1.565 MB / 413.2 MB, free: 2.832 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001031/0.3819, allocations: 45.7 kB / 413.2 MB, free: 2.781 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007908/0.3827, allocations: 1.108 MB / 414.3 MB, free: 1.66 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003461/0.383, allocations: 427.7 kB / 414.7 MB, free: 1.246 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004326/0.3835, allocations: 271.3 kB / 415 MB, free: 0.9766 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.645e-05/0.3836, allocations: 305.1 kB / 415.3 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0012/0.3848, allocations: 0.7074 MB / 416 MB, free: 15.97 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001481/0.3863, allocations: 1.139 MB / 417.2 MB, free: 14.65 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002754/0.389, allocations: 1.968 MB / 419.1 MB, free: 12.55 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.678e-06/0.3891, allocations: 4 kB / 419.1 MB, free: 12.55 MB / 334.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.004488/0.3936, allocations: 2.522 MB / 421.7 MB, free: 10.08 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.775e-05/0.3936, allocations: 15.94 kB / 421.7 MB, free: 10.07 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.148e-05/0.3936, allocations: 12 kB / 421.7 MB, free: 10.05 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001059/0.3947, allocations: 431.3 kB / 422.1 MB, free: 9.621 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001347/0.3961, allocations: 348.8 kB / 422.4 MB, free: 9.301 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007405/0.4035, allocations: 7.133 MB / 429.6 MB, free: 1.789 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001754/0.4053, allocations: 103.8 kB / 429.7 MB, free: 1.688 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001463/0.4054, allocations: 63.98 kB / 429.7 MB, free: 1.625 MB / 334.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.001529/0.407, allocations: 0.7228 MB / 430.5 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004712/0.4074, allocations: 170 kB / 430.6 MB, free: 0.7461 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004019/0.4115, allocations: 2.202 MB / 432.8 MB, free: 14.51 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.199e-05/0.4115, allocations: 12 kB / 432.8 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.198e-05/0.4115, allocations: 4 kB / 432.8 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.417e-05/0.4115, allocations: 3.984 kB / 432.8 MB, free: 14.49 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009669/0.4212, allocations: 4.795 MB / 437.6 MB, free: 9.625 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.054e-05/0.4212, allocations: 4 kB / 437.6 MB, free: 9.621 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009952/0.4222, allocations: 223.3 kB / 437.9 MB, free: 9.414 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001208/0.4235, allocations: 472.6 kB / 438.3 MB, free: 8.949 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001106/0.4236, allocations: 35.98 kB / 438.4 MB, free: 8.914 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008605/0.4322, allocations: 8.677 MB / 447 MB, free: 15.71 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.111e-06/0.4323, allocations: 4 kB / 447 MB, free: 15.71 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005689/0.438, allocations: 3.221 MB / 450.3 MB, free: 12.41 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001083/0.4391, allocations: 402.8 kB / 450.7 MB, free: 12 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005242/0.4396, allocations: 28 kB / 450.7 MB, free: 11.97 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001323/0.441, allocations: 87.89 kB / 450.8 MB, free: 11.88 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002793/0.4413, allocations: 96.66 kB / 450.9 MB, free: 11.79 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.686e-05/0.4414, allocations: 39.98 kB / 450.9 MB, free: 11.75 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002127/0.4435, allocations: 1.07 MB / 452 MB, free: 10.69 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4435, allocations: 0 / 452 MB, free: 10.69 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002428/0.4459, allocations: 492 kB / 452.5 MB, free: 10.21 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.0004794/0.4464, allocations: 199 kB / 452.6 MB, free: 10.02 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.005541/0.452, allocations: 2.795 MB / 455.4 MB, free: 7.23 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 8.256e-06/0.452, allocations: 0 / 455.4 MB, free: 7.23 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002553/0.4546, allocations: 1.473 MB / 456.9 MB, free: 5.734 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003177/0.4578, allocations: 482.9 kB / 457.4 MB, free: 5.27 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009773/0.4676, allocations: 4.778 MB / 462.2 MB, free: 444 kB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002154/0.4698, allocations: 1.847 MB / 464 MB, free: 14.56 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006864/0.4705, allocations: 131.4 kB / 464.1 MB, free: 14.43 MB / 382.1 MB Notification: Performance of SimCode: time 6.11e-07/0.4705, allocations: 0 / 464.1 MB, free: 14.43 MB / 382.1 MB Notification: Performance of Templates: time 0.08127/0.5518, allocations: 73.62 MB / 0.5252 GB, free: 4.879 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_Inverter/SMPM_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches