Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001513/0.001513, allocations: 119.6 kB / 18.46 MB, free: 4.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001623/0.001623, allocations: 206.7 kB / 19.41 MB, free: 3.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.408/1.408, allocations: 227.7 MB / 247.9 MB, free: 10.25 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001929/0.001929, allocations: 71.86 kB / 359.7 MB, free: 12.77 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.23/0.2319, allocations: 50.53 MB / 410.2 MB, free: 1.473 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.01234/0.2442, allocations: 10.39 MB / 420.6 MB, free: 7.047 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007048/0.2513, allocations: 3.478 MB / 424.1 MB, free: 3.555 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001231/0.2525, allocations: 59.75 kB / 424.1 MB, free: 3.496 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001894/0.2544, allocations: 0.8385 MB / 425 MB, free: 2.656 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002305/0.2567, allocations: 0.8776 MB / 425.9 MB, free: 1.773 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000902/0.2576, allocations: 423.4 kB / 426.3 MB, free: 1.359 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003039/0.2607, allocations: 2.762 MB / 429 MB, free: 14.59 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002124/0.2628, allocations: 1.723 MB / 430.8 MB, free: 12.79 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001697/0.2645, allocations: 1.273 MB / 432 MB, free: 11.52 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001905/0.2664, allocations: 1.592 MB / 433.6 MB, free: 9.918 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004749/0.2669, allocations: 332 kB / 433.9 MB, free: 9.594 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007486/0.2676, allocations: 443.8 kB / 434.4 MB, free: 9.16 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009049/0.2685, allocations: 0.9426 MB / 435.3 MB, free: 8.215 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00151/0.27, allocations: 1.513 MB / 436.8 MB, free: 6.695 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004586/0.2746, allocations: 4.406 MB / 441.2 MB, free: 2.273 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.2746, allocations: 0 / 441.2 MB, free: 2.273 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.2746, allocations: 0 / 441.2 MB, free: 2.273 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.667e-05/0.2747, allocations: 0 / 441.2 MB, free: 2.273 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: 581 * Number of variables: 581 Notification: Performance of Generate backend data structure: time 0.006199/0.2809, allocations: 3.132 MB / 444.4 MB, free: 15.07 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.656e-05/0.2809, allocations: 12.03 kB / 444.4 MB, free: 15.06 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008963/0.2818, allocations: 335 kB / 444.7 MB, free: 14.73 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003007/0.2848, allocations: 1.631 MB / 446.3 MB, free: 13.05 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001593/0.285, allocations: 184.3 kB / 446.5 MB, free: 12.86 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004037/0.2854, allocations: 223.9 kB / 446.7 MB, free: 12.64 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004955/0.2903, allocations: 2.917 MB / 449.7 MB, free: 9.641 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.145e-05/0.2904, allocations: 7.938 kB / 449.7 MB, free: 9.633 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002153/0.2906, allocations: 88 kB / 449.7 MB, free: 9.547 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001284/0.2907, allocations: 112.3 kB / 449.9 MB, free: 9.434 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004366/0.2951, allocations: 2.43 MB / 452.3 MB, free: 6.988 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01502/0.3101, allocations: 9.046 MB / 461.3 MB, free: 13.66 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002552/0.3127, allocations: 1.638 MB / 463 MB, free: 11.91 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00186/0.3145, allocations: 0.9183 MB / 463.9 MB, free: 10.99 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003186/0.3149, allocations: 211.2 kB / 464.1 MB, free: 10.75 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.981e-05/0.3149, allocations: 43.56 kB / 464.1 MB, free: 10.7 MB / 382.1 MB Notification: Performance of pre-optimization done (n=105): time 2.655e-06/0.3149, allocations: 0 / 464.1 MB, free: 10.7 MB / 382.1 MB Notification: Performance of matching and sorting (n=122): time 0.01528/0.3302, allocations: 6.597 MB / 470.7 MB, free: 3.938 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.872e-05/0.3302, allocations: 68.41 kB / 470.8 MB, free: 3.859 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002535/0.3328, allocations: 1.57 MB / 472.4 MB, free: 2.281 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001156/0.3329, allocations: 45.7 kB / 472.4 MB, free: 2.23 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009698/0.3339, allocations: 1.138 MB / 473.6 MB, free: 1.078 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004167/0.3343, allocations: 452.1 kB / 474 MB, free: 0.6328 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004527/0.3347, allocations: 271.5 kB / 474.3 MB, free: 368 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001877/0.3349, allocations: 305.1 kB / 474.6 MB, free: 60 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001256/0.3362, allocations: 0.7106 MB / 475.3 MB, free: 15.34 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001602/0.3378, allocations: 1.138 MB / 476.4 MB, free: 14.02 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002976/0.3408, allocations: 1.963 MB / 478.4 MB, free: 11.88 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.055e-06/0.3408, allocations: 8 kB / 478.4 MB, free: 11.87 MB / 398.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.004501/0.3453, allocations: 2.523 MB / 480.9 MB, free: 9.312 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.031e-05/0.3453, allocations: 16.28 kB / 480.9 MB, free: 9.297 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.987e-05/0.3453, allocations: 12 kB / 480.9 MB, free: 9.285 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001027/0.3464, allocations: 423.1 kB / 481.3 MB, free: 8.859 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00132/0.3477, allocations: 351.4 kB / 481.7 MB, free: 8.516 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007658/0.3553, allocations: 7.128 MB / 488.8 MB, free: 0.9766 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001282/0.3566, allocations: 107.8 kB / 488.9 MB, free: 0.8711 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001168/0.3567, allocations: 64 kB / 489 MB, free: 0.8086 MB / 398.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.001223/0.358, allocations: 0.7159 MB / 489.7 MB, free: 84 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003192/0.3583, allocations: 178.9 kB / 489.9 MB, free: 15.9 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004026/0.3623, allocations: 2.194 MB / 492.1 MB, free: 13.67 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.173e-05/0.3623, allocations: 16 kB / 492.1 MB, free: 13.65 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.306e-06/0.3623, allocations: 4 kB / 492.1 MB, free: 13.65 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.27e-05/0.3623, allocations: 7.922 kB / 492.1 MB, free: 13.64 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008293/0.3706, allocations: 4.756 MB / 496.8 MB, free: 8.738 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.201e-06/0.3706, allocations: 0 / 496.8 MB, free: 8.738 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009565/0.3716, allocations: 231.6 kB / 497.1 MB, free: 8.512 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00118/0.3728, allocations: 463.3 kB / 497.5 MB, free: 8.047 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.017e-05/0.3729, allocations: 31.98 kB / 497.6 MB, free: 8.016 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009269/0.3821, allocations: 8.69 MB / 0.4944 GB, free: 14.76 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.027e-06/0.3821, allocations: 7.938 kB / 0.4944 GB, free: 14.75 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005482/0.3876, allocations: 3.215 MB / 0.4975 GB, free: 11.44 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008916/0.3885, allocations: 411.8 kB / 0.4979 GB, free: 11.02 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002174/0.3887, allocations: 31.98 kB / 0.498 GB, free: 10.99 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000918/0.3896, allocations: 83.91 kB / 0.498 GB, free: 10.91 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002328/0.3899, allocations: 96.75 kB / 0.4981 GB, free: 10.81 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.786e-05/0.39, allocations: 39.98 kB / 0.4982 GB, free: 10.77 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001665/0.3916, allocations: 1.074 MB / 0.4992 GB, free: 9.703 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3916, allocations: 0 / 0.4992 GB, free: 9.703 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001639/0.3933, allocations: 487.9 kB / 0.4997 GB, free: 9.227 MB / 430.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.0004043/0.3937, allocations: 207 kB / 0.4999 GB, free: 9.012 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003911/0.3976, allocations: 2.219 MB / 0.502 GB, free: 6.738 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.057e-06/0.3976, allocations: 4 kB / 0.502 GB, free: 6.734 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002516/0.4001, allocations: 1.423 MB / 0.5034 GB, free: 5.262 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002225/0.4023, allocations: 488.7 kB / 0.5039 GB, free: 4.793 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00746/0.4098, allocations: 4.738 MB / 0.5085 GB, free: 15.97 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001745/0.4115, allocations: 1.883 MB / 0.5104 GB, free: 14.05 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001096/0.4126, allocations: 386.9 kB / 0.5107 GB, free: 13.67 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003527/0.413, allocations: 123.4 kB / 0.5109 GB, free: 13.55 MB / 446.1 MB Notification: Performance of SimCode: time 7.01e-07/0.413, allocations: 0 / 0.5109 GB, free: 13.55 MB / 446.1 MB Notification: Performance of Templates: time 0.04715/0.4601, allocations: 27.12 MB / 0.5373 GB, free: 2.695 MB / 462.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_Inverter/SMPM_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches