Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_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.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_trunk_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_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001384/0.001384, allocations: 113.4 kB / 17.99 MB, free: 5.395 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001475/0.001475, allocations: 205.8 kB / 18.92 MB, free: 4.465 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.346/1.346, allocations: 227.4 MB / 247.1 MB, free: 10.81 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001342/0.001342, allocations: 68.31 kB / 307.1 MB, free: 0.9492 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0959/0.09726, allocations: 50.53 MB / 357.6 MB, free: 14.42 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.01118/0.1085, allocations: 9.603 MB / 367.2 MB, free: 4.773 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006233/0.1148, allocations: 3.116 MB / 370.4 MB, free: 1.645 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001739/0.1165, allocations: 51.81 kB / 370.4 MB, free: 1.594 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002141/0.1188, allocations: 0.5981 MB / 371 MB, free: 0.9922 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002684/0.1215, allocations: 0.6916 MB / 371.7 MB, free: 304 kB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.1887/0.3102, allocations: 352 kB / 372 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004703/0.3149, allocations: 2.536 MB / 374.6 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003306/0.3183, allocations: 2.335 MB / 376.9 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002855/0.3211, allocations: 1.197 MB / 378.1 MB, free: 9.871 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002918/0.3241, allocations: 1.53 MB / 379.6 MB, free: 9.633 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006855/0.3248, allocations: 317.6 kB / 380 MB, free: 9.633 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001233/0.326, allocations: 421.6 kB / 380.4 MB, free: 9.633 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009166/0.327, allocations: 0.8992 MB / 381.3 MB, free: 9.293 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002043/0.329, allocations: 1.425 MB / 382.7 MB, free: 8.379 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004584/0.3336, allocations: 3.455 MB / 386.1 MB, free: 7.453 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.951e-06/0.3336, allocations: 0 / 386.1 MB, free: 7.453 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.3337, allocations: 4 kB / 386.2 MB, free: 7.449 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001185/0.3338, allocations: 1.125 kB / 386.2 MB, free: 7.449 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: 553 * Number of variables: 553 Notification: Performance of Generate backend data structure: time 0.006784/0.3406, allocations: 2.91 MB / 389.1 MB, free: 5.809 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.609e-05/0.3406, allocations: 10.47 kB / 389.1 MB, free: 5.809 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000923/0.3416, allocations: 293.3 kB / 389.4 MB, free: 5.676 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00239/0.344, allocations: 1.493 MB / 390.9 MB, free: 4.664 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001584/0.3441, allocations: 161.6 kB / 391 MB, free: 4.59 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000338/0.3445, allocations: 218.9 kB / 391.2 MB, free: 4.512 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004724/0.3492, allocations: 2.799 MB / 394 MB, free: 2.84 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.946e-05/0.3493, allocations: 5.281 kB / 394 MB, free: 2.836 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001967/0.3495, allocations: 89.8 kB / 394.1 MB, free: 2.77 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001231/0.3496, allocations: 105.5 kB / 394.2 MB, free: 2.75 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003707/0.3534, allocations: 2.351 MB / 396.6 MB, free: 1.543 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01404/0.3674, allocations: 8.597 MB / 405.2 MB, free: 9.918 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002422/0.3699, allocations: 1.706 MB / 406.9 MB, free: 8.098 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001706/0.3716, allocations: 0.9708 MB / 407.8 MB, free: 7.133 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003299/0.372, allocations: 197.7 kB / 408 MB, free: 6.902 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.515e-05/0.372, allocations: 47.56 kB / 408.1 MB, free: 6.848 MB / 318.1 MB Notification: Performance of pre-optimization done (n=101): time 2.906e-06/0.372, allocations: 0 / 408.1 MB, free: 6.848 MB / 318.1 MB Notification: Performance of matching and sorting (n=116): time 0.01346/0.3855, allocations: 6.229 MB / 414.3 MB, free: 472 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.618e-05/0.3856, allocations: 68.41 kB / 414.4 MB, free: 388 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002172/0.3878, allocations: 1.449 MB / 415.8 MB, free: 14.92 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001169/0.3879, allocations: 45.7 kB / 415.9 MB, free: 14.87 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008127/0.3887, allocations: 1.04 MB / 416.9 MB, free: 13.81 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003437/0.3891, allocations: 413.2 kB / 417.3 MB, free: 13.41 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004134/0.3895, allocations: 247.5 kB / 417.6 MB, free: 13.17 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001587/0.3896, allocations: 369.8 kB / 417.9 MB, free: 12.8 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00112/0.3908, allocations: 0.6901 MB / 418.6 MB, free: 12.11 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001395/0.3922, allocations: 1.066 MB / 419.7 MB, free: 10.89 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002579/0.3948, allocations: 1.868 MB / 421.5 MB, free: 8.863 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.336e-06/0.3948, allocations: 4 kB / 421.5 MB, free: 8.859 MB / 334.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.0041/0.3989, allocations: 2.421 MB / 424 MB, free: 6.398 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.961e-05/0.3989, allocations: 11.12 kB / 424 MB, free: 6.391 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.056e-05/0.399, allocations: 12 kB / 424 MB, free: 6.379 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009937/0.4, allocations: 411.3 kB / 424.4 MB, free: 5.965 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001226/0.4012, allocations: 339.4 kB / 424.7 MB, free: 5.633 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006963/0.4082, allocations: 7.042 MB / 431.8 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001764/0.41, allocations: 99.84 kB / 431.9 MB, free: 14.08 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001782/0.4102, allocations: 59.98 kB / 431.9 MB, free: 14.02 MB / 350.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.001648/0.4118, allocations: 0.6886 MB / 432.6 MB, free: 13.32 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000532/0.4124, allocations: 162 kB / 432.8 MB, free: 13.16 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003925/0.4163, allocations: 2.136 MB / 434.9 MB, free: 10.98 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.61e-05/0.4164, allocations: 12 kB / 434.9 MB, free: 10.97 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.072e-05/0.4164, allocations: 4 kB / 434.9 MB, free: 10.97 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.651e-05/0.4164, allocations: 11.97 kB / 434.9 MB, free: 10.96 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008481/0.4249, allocations: 4.584 MB / 439.5 MB, free: 6.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.508e-06/0.4249, allocations: 4 kB / 439.5 MB, free: 6.266 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009148/0.4259, allocations: 211.7 kB / 439.7 MB, free: 6.059 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001193/0.4271, allocations: 453.9 kB / 440.2 MB, free: 5.609 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001152/0.4272, allocations: 31.98 kB / 440.2 MB, free: 5.578 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007973/0.4352, allocations: 8.622 MB / 448.8 MB, free: 12.4 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.141e-05/0.4352, allocations: 11.94 kB / 448.8 MB, free: 12.39 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005041/0.4403, allocations: 3.105 MB / 451.9 MB, free: 9.195 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001028/0.4413, allocations: 379 kB / 452.3 MB, free: 8.805 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003067/0.4417, allocations: 28 kB / 452.3 MB, free: 8.777 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009004/0.4426, allocations: 83.91 kB / 452.4 MB, free: 8.695 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002533/0.4428, allocations: 100.7 kB / 452.5 MB, free: 8.598 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.155e-05/0.4429, allocations: 39.98 kB / 452.6 MB, free: 8.559 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001489/0.4444, allocations: 0.9927 MB / 453.5 MB, free: 7.566 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4444, allocations: 0 / 453.5 MB, free: 7.566 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001857/0.4463, allocations: 460 kB / 454 MB, free: 7.117 MB / 366.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.0004745/0.4468, allocations: 197.3 kB / 454.2 MB, free: 6.914 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004887/0.4517, allocations: 2.695 MB / 456.9 MB, free: 4.16 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.571e-06/0.4517, allocations: 0 / 456.9 MB, free: 4.16 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002312/0.454, allocations: 1.447 MB / 458.3 MB, free: 2.664 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002389/0.4565, allocations: 431.5 kB / 458.8 MB, free: 2.254 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008659/0.4651, allocations: 5.465 MB / 464.2 MB, free: 12.72 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00147/0.4667, allocations: 1.788 MB / 466 MB, free: 10.9 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006299/0.4673, allocations: 119.4 kB / 466.1 MB, free: 10.79 MB / 382.1 MB Notification: Performance of SimCode: time 7.91e-07/0.4673, allocations: 0 / 466.1 MB, free: 10.79 MB / 382.1 MB Notification: Performance of Templates: time 0.07393/0.5412, allocations: 69.06 MB / 0.5226 GB, free: 5.762 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches