Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_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.SMR_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertia.phi|loadInertia.w|smr.is.1.|smr.is.2.|smr.idq_rr.1.|smr.idq_rr.2.|smr.idq_sr.1.|smr.idq_sr.2.|vfController.x",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertia.phi|loadInertia.w|smr.is.1.|smr.is.2.|smr.idq_rr.1.|smr.idq_rr.2.|smr.idq_sr.1.|smr.idq_sr.2.|vfController.x",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001064/0.001064, allocations: 111 kB / 17.74 MB, free: 5.34 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.00109/0.00109, allocations: 188.4 kB / 18.67 MB, free: 4.418 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.388/1.388, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001092/0.001092, allocations: 51.92 kB / 352 MB, free: 3.223 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3511/0.3522, allocations: 49.43 MB / 401.4 MB, free: 8.73 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.01155/0.3638, allocations: 9.632 MB / 411 MB, free: 15.19 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007093/0.3709, allocations: 3.092 MB / 414.1 MB, free: 12.09 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002045/0.373, allocations: 59.75 kB / 414.2 MB, free: 12.03 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002445/0.3755, allocations: 0.6674 MB / 414.9 MB, free: 11.36 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003568/0.3791, allocations: 0.7726 MB / 415.6 MB, free: 10.58 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001676/0.3808, allocations: 383.5 kB / 416 MB, free: 10.21 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004215/0.385, allocations: 2.541 MB / 418.6 MB, free: 7.652 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003675/0.3887, allocations: 2.326 MB / 420.9 MB, free: 5.262 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002197/0.3909, allocations: 1.184 MB / 422.1 MB, free: 4.074 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002798/0.3938, allocations: 1.499 MB / 423.6 MB, free: 2.57 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001002/0.3948, allocations: 316 kB / 423.9 MB, free: 2.262 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001556/0.3963, allocations: 419.8 kB / 424.3 MB, free: 1.852 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001531/0.3979, allocations: 0.9038 MB / 425.2 MB, free: 0.9453 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003235/0.4011, allocations: 1.423 MB / 426.6 MB, free: 15.51 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00638/0.4075, allocations: 4.141 MB / 430.7 MB, free: 11.36 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.272e-06/0.4076, allocations: 0 / 430.7 MB, free: 11.36 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.268e-06/0.4076, allocations: 0 / 430.7 MB, free: 11.36 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001678/0.4078, allocations: 3.938 kB / 430.8 MB, free: 11.36 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 553 * Number of variables: 553 Notification: Performance of Generate backend data structure: time 0.008345/0.4161, allocations: 2.908 MB / 433.7 MB, free: 8.387 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.821e-05/0.4162, allocations: 8.031 kB / 433.7 MB, free: 8.379 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008613/0.417, allocations: 293.7 kB / 434 MB, free: 8.09 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002682/0.4197, allocations: 1.542 MB / 435.5 MB, free: 6.488 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001232/0.4199, allocations: 160.3 kB / 435.7 MB, free: 6.328 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003194/0.4202, allocations: 208 kB / 435.9 MB, free: 6.125 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004808/0.425, allocations: 2.803 MB / 438.7 MB, free: 3.234 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.099e-05/0.4251, allocations: 3.906 kB / 438.7 MB, free: 3.23 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001894/0.4253, allocations: 84 kB / 438.7 MB, free: 3.148 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001251/0.4254, allocations: 112.1 kB / 438.9 MB, free: 3.035 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003998/0.4294, allocations: 2.347 MB / 441.2 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01406/0.4435, allocations: 8.507 MB / 449.7 MB, free: 7.918 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002345/0.4459, allocations: 1.695 MB / 451.4 MB, free: 6.098 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001686/0.4476, allocations: 0.9635 MB / 452.4 MB, free: 5.133 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002977/0.4479, allocations: 204.2 kB / 452.6 MB, free: 4.898 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.047e-05/0.448, allocations: 51.44 kB / 452.6 MB, free: 4.84 MB / 366.1 MB Notification: Performance of pre-optimization done (n=101): time 2.896e-06/0.448, allocations: 3.938 kB / 452.6 MB, free: 4.836 MB / 366.1 MB Notification: Performance of matching and sorting (n=116): time 0.01309/0.4611, allocations: 6.226 MB / 458.8 MB, free: 14.44 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.149e-05/0.4612, allocations: 64.41 kB / 458.9 MB, free: 14.37 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00218/0.4633, allocations: 1.445 MB / 460.4 MB, free: 12.91 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001086/0.4635, allocations: 45.7 kB / 460.4 MB, free: 12.86 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007543/0.4642, allocations: 1.037 MB / 461.4 MB, free: 11.81 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003364/0.4646, allocations: 410.1 kB / 461.8 MB, free: 11.4 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003925/0.465, allocations: 255.4 kB / 462.1 MB, free: 11.14 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001881/0.4652, allocations: 361.9 kB / 462.4 MB, free: 10.79 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00112/0.4663, allocations: 0.691 MB / 463.1 MB, free: 10.09 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0014/0.4677, allocations: 1.066 MB / 464.2 MB, free: 8.871 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002458/0.4702, allocations: 1.868 MB / 466.1 MB, free: 6.844 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.221e-06/0.4702, allocations: 0 / 466.1 MB, free: 6.844 MB / 382.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.004017/0.4742, allocations: 2.421 MB / 468.5 MB, free: 4.383 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.573e-05/0.4743, allocations: 12.25 kB / 468.5 MB, free: 4.371 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.983e-05/0.4743, allocations: 16 kB / 468.5 MB, free: 4.355 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001024/0.4753, allocations: 417.2 kB / 468.9 MB, free: 3.938 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001169/0.4765, allocations: 335.4 kB / 469.2 MB, free: 3.609 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007066/0.4836, allocations: 7.037 MB / 476.3 MB, free: 12.15 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001517/0.4852, allocations: 103.8 kB / 476.4 MB, free: 12.05 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001239/0.4853, allocations: 56 kB / 476.4 MB, free: 12 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * 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 (157): * Single equations (assignments): 153 * 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,11,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.001425/0.4867, allocations: 0.6924 MB / 477.1 MB, free: 11.29 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000355/0.4871, allocations: 154.1 kB / 477.3 MB, free: 11.14 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003667/0.4908, allocations: 2.138 MB / 479.4 MB, free: 8.953 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.246e-05/0.4908, allocations: 12 kB / 479.4 MB, free: 8.941 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.538e-06/0.4908, allocations: 4 kB / 479.4 MB, free: 8.938 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.121e-05/0.4908, allocations: 11.92 kB / 479.4 MB, free: 8.926 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007586/0.4984, allocations: 4.563 MB / 484 MB, free: 4.23 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.907e-06/0.4985, allocations: 4 kB / 484 MB, free: 4.227 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009192/0.4994, allocations: 203.7 kB / 484.2 MB, free: 4.027 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001156/0.5006, allocations: 458.6 kB / 484.7 MB, free: 3.57 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.644e-05/0.5007, allocations: 31.98 kB / 484.7 MB, free: 3.539 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008536/0.5092, allocations: 8.616 MB / 493.3 MB, free: 10.36 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.822e-06/0.5092, allocations: 11.88 kB / 493.3 MB, free: 10.35 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005063/0.5143, allocations: 3.095 MB / 496.4 MB, free: 7.16 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009953/0.5153, allocations: 379 kB / 496.8 MB, free: 6.77 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004037/0.5157, allocations: 31.98 kB / 496.8 MB, free: 6.738 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001055/0.5168, allocations: 79.91 kB / 496.9 MB, free: 6.66 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002666/0.5171, allocations: 100.8 kB / 497 MB, free: 6.562 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001017/0.5172, allocations: 43.98 kB / 497 MB, free: 6.52 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001567/0.5188, allocations: 0.9769 MB / 498 MB, free: 5.543 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.5188, allocations: 0 / 498 MB, free: 5.543 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001892/0.5207, allocations: 472 kB / 498.5 MB, free: 5.082 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 7 (smr.inertiaRotor.w,smr.idq_sr[1],smr.idq_sr[2],smr.idq_dr[1],smr.idq_dr[2],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 (102): * Single equations (assignments): 98 * 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,11,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.0004101/0.5211, allocations: 191 kB / 498.7 MB, free: 4.887 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003925/0.525, allocations: 2.229 MB / 0.4892 GB, free: 2.602 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.681e-06/0.5251, allocations: 0 / 0.4892 GB, free: 2.602 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002348/0.5274, allocations: 1.446 MB / 0.4906 GB, free: 1.102 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002353/0.5298, allocations: 432.6 kB / 0.491 GB, free: 0.6875 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008279/0.5381, allocations: 4.489 MB / 0.4954 GB, free: 12.13 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001913/0.54, allocations: 1.788 MB / 0.4971 GB, free: 10.3 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005392/0.5406, allocations: 123.4 kB / 0.4972 GB, free: 10.18 MB / 430.1 MB Notification: Performance of SimCode: time 9.62e-07/0.5406, allocations: 0 / 0.4972 GB, free: 10.18 MB / 430.1 MB Notification: Performance of Templates: time 0.3123/0.8529, allocations: 69.45 MB / 0.565 GB, free: 115.8 MB / 462.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMR_Inverter/SMR_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches