Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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 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.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_trunk_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_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001032/0.001032, allocations: 118.1 kB / 17.79 MB, free: 5.305 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001149/0.001149, allocations: 197.2 kB / 18.73 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.396/1.396, allocations: 227.4 MB / 246.9 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001083/0.001083, allocations: 59.91 kB / 358.7 MB, free: 12.9 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2916/0.2927, allocations: 50.53 MB / 409.3 MB, free: 1.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.01233/0.3051, allocations: 10.35 MB / 419.6 MB, free: 7.191 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007122/0.3122, allocations: 3.485 MB / 423.1 MB, free: 3.695 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001873/0.3141, allocations: 59.75 kB / 423.1 MB, free: 3.637 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00246/0.3166, allocations: 0.8232 MB / 424 MB, free: 2.809 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003302/0.32, allocations: 0.8775 MB / 424.8 MB, free: 1.926 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001837/0.3218, allocations: 431.4 kB / 425.3 MB, free: 1.504 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005344/0.3272, allocations: 2.759 MB / 428 MB, free: 14.73 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005408/0.3326, allocations: 2.406 MB / 430.4 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003087/0.3358, allocations: 1.277 MB / 431.7 MB, free: 10.97 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003755/0.3395, allocations: 1.58 MB / 433.3 MB, free: 9.387 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001412/0.341, allocations: 332 kB / 433.6 MB, free: 9.062 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002219/0.3432, allocations: 451.8 kB / 434.1 MB, free: 8.621 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001553/0.3448, allocations: 0.931 MB / 435 MB, free: 7.688 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003072/0.3479, allocations: 1.513 MB / 436.5 MB, free: 6.168 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006357/0.3543, allocations: 4.39 MB / 440.9 MB, free: 1.766 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.3543, allocations: 0 / 440.9 MB, free: 1.766 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.325e-06/0.3543, allocations: 0 / 440.9 MB, free: 1.766 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001005/0.3544, allocations: 0 / 440.9 MB, free: 1.766 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.006378/0.3608, allocations: 3.069 MB / 444 MB, free: 14.63 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.587e-05/0.3609, allocations: 12.03 kB / 444 MB, free: 14.62 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007946/0.3617, allocations: 313.5 kB / 444.3 MB, free: 14.31 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002586/0.3643, allocations: 1.626 MB / 445.9 MB, free: 12.63 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000127/0.3644, allocations: 172.4 kB / 446.1 MB, free: 12.46 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003264/0.3647, allocations: 223.9 kB / 446.3 MB, free: 12.24 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004855/0.3696, allocations: 2.917 MB / 449.2 MB, free: 9.234 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.864e-05/0.3697, allocations: 3.906 kB / 449.2 MB, free: 9.23 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001957/0.3699, allocations: 95.98 kB / 449.3 MB, free: 9.137 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001115/0.37, allocations: 116.3 kB / 449.4 MB, free: 9.02 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004046/0.374, allocations: 2.433 MB / 451.9 MB, free: 6.57 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01414/0.3882, allocations: 9.004 MB / 460.9 MB, free: 13.29 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002256/0.3905, allocations: 1.712 MB / 462.6 MB, free: 11.45 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001708/0.3922, allocations: 0.9769 MB / 463.5 MB, free: 10.48 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000314/0.3926, allocations: 207.2 kB / 463.7 MB, free: 10.24 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.833e-05/0.3926, allocations: 44.03 kB / 463.8 MB, free: 10.19 MB / 382.1 MB Notification: Performance of pre-optimization done (n=105): time 3.517e-06/0.3926, allocations: 0 / 463.8 MB, free: 10.19 MB / 382.1 MB Notification: Performance of matching and sorting (n=122): time 0.01446/0.4071, allocations: 6.57 MB / 470.4 MB, free: 3.449 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.242e-05/0.4072, allocations: 64.41 kB / 470.4 MB, free: 3.375 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002414/0.4096, allocations: 1.573 MB / 472 MB, free: 1.793 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001111/0.4097, allocations: 41.7 kB / 472 MB, free: 1.746 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008054/0.4106, allocations: 1.112 MB / 473.1 MB, free: 0.6172 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003551/0.4109, allocations: 433.8 kB / 473.6 MB, free: 192 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004389/0.4114, allocations: 279.3 kB / 473.8 MB, free: 15.91 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.99e-05/0.4115, allocations: 301.1 kB / 474.1 MB, free: 15.61 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001154/0.4126, allocations: 0.7105 MB / 474.8 MB, free: 14.9 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001432/0.4141, allocations: 1.134 MB / 476 MB, free: 13.58 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002764/0.4169, allocations: 1.967 MB / 478 MB, free: 11.43 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.058e-05/0.4169, allocations: 4 kB / 478 MB, free: 11.43 MB / 398.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.004491/0.4214, allocations: 2.534 MB / 480.5 MB, free: 8.855 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.85e-05/0.4214, allocations: 8 kB / 480.5 MB, free: 8.848 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.008e-05/0.4215, allocations: 12 kB / 480.5 MB, free: 8.836 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001034/0.4225, allocations: 415.4 kB / 480.9 MB, free: 8.418 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001258/0.4238, allocations: 355.4 kB / 481.3 MB, free: 8.07 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007502/0.4313, allocations: 7.122 MB / 488.4 MB, free: 0.5352 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001904/0.4332, allocations: 107.8 kB / 488.5 MB, free: 440 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001257/0.4334, allocations: 64 kB / 488.6 MB, free: 376 kB / 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.001643/0.435, allocations: 0.72 MB / 489.3 MB, free: 15.63 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004014/0.4354, allocations: 169.9 kB / 489.4 MB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003858/0.4393, allocations: 2.198 MB / 491.6 MB, free: 13.23 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.33e-05/0.4393, allocations: 15.98 kB / 491.6 MB, free: 13.21 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.596e-06/0.4393, allocations: 8 kB / 491.7 MB, free: 13.2 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.684e-05/0.4394, allocations: 11.91 kB / 491.7 MB, free: 13.19 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00836/0.4477, allocations: 4.76 MB / 496.4 MB, free: 8.285 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.767e-06/0.4478, allocations: 4.031 kB / 496.4 MB, free: 8.281 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009641/0.4487, allocations: 223.7 kB / 496.7 MB, free: 8.062 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001158/0.4499, allocations: 458.8 kB / 497.1 MB, free: 7.602 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.591e-05/0.45, allocations: 39.92 kB / 497.1 MB, free: 7.562 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008233/0.4583, allocations: 8.694 MB / 0.494 GB, free: 14.3 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.865e-06/0.4583, allocations: 7.938 kB / 0.494 GB, free: 14.29 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005642/0.4639, allocations: 3.21 MB / 0.4971 GB, free: 10.98 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001215/0.4652, allocations: 402.8 kB / 0.4975 GB, free: 10.57 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002196/0.4654, allocations: 35.88 kB / 0.4975 GB, free: 10.54 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009069/0.4663, allocations: 83.91 kB / 0.4976 GB, free: 10.45 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002846/0.4666, allocations: 108.7 kB / 0.4977 GB, free: 10.35 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.325e-05/0.4667, allocations: 36 kB / 0.4978 GB, free: 10.31 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001781/0.4685, allocations: 1.074 MB / 0.4988 GB, free: 9.242 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4685, allocations: 0 / 0.4988 GB, free: 9.242 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001843/0.4704, allocations: 488 kB / 0.4993 GB, free: 8.766 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.000427/0.4708, allocations: 194.4 kB / 0.4995 GB, free: 8.566 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003911/0.4747, allocations: 2.305 MB / 0.5017 GB, free: 6.207 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.448e-06/0.4747, allocations: 0 / 0.5017 GB, free: 6.207 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002512/0.4773, allocations: 1.47 MB / 0.5031 GB, free: 4.688 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002548/0.4798, allocations: 486.9 kB / 0.5036 GB, free: 4.223 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01003/0.4899, allocations: 4.661 MB / 0.5082 GB, free: 15.49 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002496/0.4924, allocations: 1.867 MB / 0.51 GB, free: 13.59 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001415/0.4939, allocations: 390.8 kB / 0.5104 GB, free: 13.2 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004036/0.4943, allocations: 127.4 kB / 0.5105 GB, free: 13.07 MB / 446.1 MB Notification: Performance of SimCode: time 2.645e-06/0.4943, allocations: 0 / 0.5105 GB, free: 13.07 MB / 446.1 MB Notification: Performance of Templates: time 0.04994/0.5442, allocations: 26.92 MB / 0.5368 GB, free: 2.383 MB / 462.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_Inverter/SMPM_Inverter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches