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.001185/0.001185, allocations: 112.6 kB / 17.07 MB, free: 5.988 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.001015/0.001015, allocations: 191 kB / 18 MB, free: 5.078 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.333/1.333, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009863/0.0009863, allocations: 47.92 kB / 351.3 MB, free: 3.23 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2653/0.2663, allocations: 49.42 MB / 400.7 MB, free: 8.738 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.01126/0.2776, allocations: 9.633 MB / 410.4 MB, free: 15.21 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005736/0.2834, allocations: 3.096 MB / 413.5 MB, free: 12.1 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001384/0.2848, allocations: 55.75 kB / 413.5 MB, free: 12.04 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001942/0.2868, allocations: 0.6751 MB / 414.2 MB, free: 11.37 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00259/0.2894, allocations: 0.7687 MB / 415 MB, free: 10.59 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001045/0.2904, allocations: 379.5 kB / 415.3 MB, free: 10.22 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00297/0.2934, allocations: 2.541 MB / 417.9 MB, free: 7.668 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003112/0.2965, allocations: 2.33 MB / 420.2 MB, free: 5.273 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001786/0.2983, allocations: 1.18 MB / 421.4 MB, free: 4.09 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002448/0.3008, allocations: 1.491 MB / 422.9 MB, free: 2.594 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008569/0.3017, allocations: 320 kB / 423.2 MB, free: 2.281 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001298/0.303, allocations: 419.8 kB / 423.6 MB, free: 1.871 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001326/0.3043, allocations: 0.9077 MB / 424.5 MB, free: 0.9609 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001454/0.3058, allocations: 1.415 MB / 425.9 MB, free: 15.54 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003635/0.3094, allocations: 4.161 MB / 430.1 MB, free: 11.36 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.3095, allocations: 0 / 430.1 MB, free: 11.36 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.885e-06/0.3095, allocations: 0 / 430.1 MB, free: 11.36 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.959e-05/0.3095, allocations: 3.938 kB / 430.1 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.004917/0.3144, allocations: 2.971 MB / 433.1 MB, free: 8.324 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.787e-05/0.3145, allocations: 8.031 kB / 433.1 MB, free: 8.316 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006408/0.3151, allocations: 303.2 kB / 433.4 MB, free: 8.02 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002194/0.3173, allocations: 1.551 MB / 434.9 MB, free: 6.41 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001125/0.3175, allocations: 164.3 kB / 435.1 MB, free: 6.246 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003/0.3178, allocations: 208 kB / 435.3 MB, free: 6.043 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004316/0.3221, allocations: 2.799 MB / 438.1 MB, free: 3.156 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.04e-05/0.3221, allocations: 4 kB / 438.1 MB, free: 3.152 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001879/0.3223, allocations: 91.98 kB / 438.2 MB, free: 3.062 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001119/0.3225, allocations: 104.2 kB / 438.3 MB, free: 2.957 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00375/0.3262, allocations: 2.355 MB / 440.6 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01222/0.3385, allocations: 8.514 MB / 449.1 MB, free: 7.828 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002346/0.3408, allocations: 1.699 MB / 450.8 MB, free: 6.004 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001643/0.3425, allocations: 0.9674 MB / 451.8 MB, free: 5.035 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003018/0.3428, allocations: 211.2 kB / 452 MB, free: 4.793 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.818e-05/0.3429, allocations: 47.5 kB / 452.1 MB, free: 4.738 MB / 366.1 MB Notification: Performance of pre-optimization done (n=101): time 3.357e-06/0.3429, allocations: 3.938 kB / 452.1 MB, free: 4.734 MB / 366.1 MB Notification: Performance of matching and sorting (n=116): time 0.01292/0.3558, allocations: 6.273 MB / 458.3 MB, free: 14.3 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.986e-05/0.3559, allocations: 68.41 kB / 458.4 MB, free: 14.22 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002034/0.3579, allocations: 1.433 MB / 459.8 MB, free: 12.77 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.934e-05/0.358, allocations: 45.7 kB / 459.9 MB, free: 12.72 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007502/0.3588, allocations: 1.067 MB / 460.9 MB, free: 11.64 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003165/0.3591, allocations: 428.4 kB / 461.4 MB, free: 11.22 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003932/0.3595, allocations: 255.5 kB / 461.6 MB, free: 10.96 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001361/0.3596, allocations: 361.9 kB / 462 MB, free: 10.61 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001094/0.3607, allocations: 0.6871 MB / 462.7 MB, free: 9.918 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00137/0.3621, allocations: 1.073 MB / 463.7 MB, free: 8.688 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002562/0.3647, allocations: 1.864 MB / 465.6 MB, free: 6.664 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.743e-06/0.3647, allocations: 8 kB / 465.6 MB, free: 6.656 MB / 382.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.003959/0.3687, allocations: 2.422 MB / 468 MB, free: 4.195 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.569e-05/0.3687, allocations: 12 kB / 468 MB, free: 4.184 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.682e-05/0.3687, allocations: 8 kB / 468 MB, free: 4.176 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009776/0.3697, allocations: 417.7 kB / 468.4 MB, free: 3.758 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00115/0.3709, allocations: 339.5 kB / 468.8 MB, free: 3.426 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00691/0.3778, allocations: 7.048 MB / 475.8 MB, free: 11.96 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001253/0.3791, allocations: 99.86 kB / 475.9 MB, free: 11.86 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001002/0.3792, allocations: 59.98 kB / 476 MB, free: 11.8 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.001142/0.3803, allocations: 0.6924 MB / 476.7 MB, free: 11.1 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002793/0.3806, allocations: 167 kB / 476.8 MB, free: 10.94 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003637/0.3843, allocations: 2.123 MB / 479 MB, free: 8.766 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.916e-05/0.3843, allocations: 12 kB / 479 MB, free: 8.754 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.219e-05/0.3843, allocations: 7.984 kB / 479 MB, free: 8.746 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.399e-05/0.3843, allocations: 7.922 kB / 479 MB, free: 8.738 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007431/0.3918, allocations: 4.559 MB / 483.5 MB, free: 4.047 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.043e-05/0.3918, allocations: 4 kB / 483.5 MB, free: 4.043 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008996/0.3927, allocations: 224.1 kB / 483.8 MB, free: 3.824 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001147/0.3939, allocations: 451.1 kB / 484.2 MB, free: 3.371 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000104/0.394, allocations: 35.97 kB / 484.2 MB, free: 3.336 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008128/0.4021, allocations: 8.624 MB / 492.9 MB, free: 10.15 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.746e-06/0.4021, allocations: 11.92 kB / 492.9 MB, free: 10.14 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004953/0.4071, allocations: 3.1 MB / 496 MB, free: 6.949 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007509/0.4079, allocations: 387.9 kB / 496.4 MB, free: 6.551 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003229/0.4082, allocations: 31.98 kB / 496.4 MB, free: 6.52 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001041/0.4092, allocations: 83.91 kB / 496.5 MB, free: 6.438 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002894/0.4095, allocations: 92.75 kB / 496.6 MB, free: 6.348 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.996e-05/0.4097, allocations: 32 kB / 496.6 MB, free: 6.316 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002188/0.4119, allocations: 0.9926 MB / 497.6 MB, free: 5.324 MB / 414.1 MB Notification: Performance of sort global known variables: time 4.11e-07/0.4119, allocations: 0 / 497.6 MB, free: 5.324 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002156/0.414, allocations: 467.9 kB / 498 MB, free: 4.867 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.0005053/0.4146, allocations: 199 kB / 498.2 MB, free: 4.664 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003982/0.4186, allocations: 2.233 MB / 0.4887 GB, free: 2.375 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.041e-06/0.4186, allocations: 3.938 kB / 0.4887 GB, free: 2.371 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002445/0.421, allocations: 1.45 MB / 0.4902 GB, free: 0.8672 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002119/0.4232, allocations: 414.5 kB / 0.4906 GB, free: 484 kB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008644/0.4318, allocations: 4.505 MB / 0.495 GB, free: 11.9 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00225/0.4341, allocations: 1.799 MB / 0.4967 GB, free: 10.06 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001125/0.4352, allocations: 377.5 kB / 0.4971 GB, free: 9.688 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003939/0.4356, allocations: 115.4 kB / 0.4972 GB, free: 9.574 MB / 430.1 MB Notification: Performance of SimCode: time 7.61e-07/0.4356, allocations: 0 / 0.4972 GB, free: 9.574 MB / 430.1 MB Notification: Performance of Templates: time 0.04413/0.4798, allocations: 24.79 MB / 0.5214 GB, free: 1.012 MB / 446.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMR_Inverter/SMR_Inverter.csv","/var/lib/jenkins/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