Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.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_ResistiveBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|tauElectrical|tauShaft|wMechanical",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|tauElectrical|tauShaft|wMechanical",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001174/0.001174, allocations: 96.47 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001375/0.001375, allocations: 208.2 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.41/1.41, allocations: 227.2 MB / 245.9 MB, free: 12.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002625/0.0002625, allocations: 4 kB / 306.6 MB, free: 1.641 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1063/0.1066, allocations: 51.49 MB / 358.1 MB, free: 14.14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.01169/0.1183, allocations: 9.241 MB / 367.3 MB, free: 4.867 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01044/0.1288, allocations: 3.508 MB / 370.8 MB, free: 1.348 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00292/0.1318, allocations: 59.69 kB / 370.9 MB, free: 1.289 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003189/0.1351, allocations: 0.7153 MB / 371.6 MB, free: 0.5703 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.1858/0.3209, allocations: 0.8108 MB / 372.4 MB, free: 9.766 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001619/0.3225, allocations: 283.7 kB / 372.7 MB, free: 9.766 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005149/0.3277, allocations: 2.391 MB / 375.1 MB, free: 9.762 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00265/0.3303, allocations: 1.946 MB / 377 MB, free: 9.426 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002472/0.3328, allocations: 1.143 MB / 378.2 MB, free: 9.426 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002966/0.3358, allocations: 1.373 MB / 379.5 MB, free: 9.422 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006042/0.3364, allocations: 179.6 kB / 379.7 MB, free: 9.422 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001249/0.3377, allocations: 250.8 kB / 380 MB, free: 9.422 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009769/0.3387, allocations: 0.853 MB / 380.8 MB, free: 9.344 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001504/0.3402, allocations: 0.6708 MB / 381.5 MB, free: 9.203 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005167/0.3454, allocations: 4.385 MB / 385.9 MB, free: 8.23 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.3454, allocations: 0 / 385.9 MB, free: 8.23 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.926e-06/0.3454, allocations: 0.9375 kB / 385.9 MB, free: 8.23 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001819/0.3456, allocations: 1.969 kB / 385.9 MB, free: 8.23 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: 739 * Number of variables: 739 Notification: Performance of Generate backend data structure: time 0.007804/0.3534, allocations: 3.258 MB / 389.1 MB, free: 6.324 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.466e-05/0.3535, allocations: 9.594 kB / 389.1 MB, free: 6.324 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001778/0.3552, allocations: 387.7 kB / 389.5 MB, free: 6.137 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004507/0.3598, allocations: 1.953 MB / 391.5 MB, free: 5.312 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001612/0.36, allocations: 217.3 kB / 391.7 MB, free: 5.301 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006896/0.3606, allocations: 285.8 kB / 392 MB, free: 5.293 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007062/0.3677, allocations: 3.81 MB / 395.8 MB, free: 4.281 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.095e-05/0.3678, allocations: 10.34 kB / 395.8 MB, free: 4.277 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002816/0.3681, allocations: 113.5 kB / 395.9 MB, free: 4.227 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001063/0.3682, allocations: 122 kB / 396 MB, free: 4.211 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005779/0.374, allocations: 3.232 MB / 399.2 MB, free: 2.512 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02283/0.3969, allocations: 11.95 MB / 411.2 MB, free: 6.34 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004324/0.4012, allocations: 3.647 MB / 414.8 MB, free: 2.285 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003075/0.4016, allocations: 126 kB / 415 MB, free: 2.148 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.02e-05/0.4016, allocations: 55.83 kB / 415 MB, free: 2.086 MB / 318.1 MB Notification: Performance of pre-optimization done (n=136): time 3.497e-06/0.4016, allocations: 0 / 415 MB, free: 2.086 MB / 318.1 MB Notification: Performance of matching and sorting (n=151): time 0.0163/0.4179, allocations: 7.449 MB / 422.5 MB, free: 10.36 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.362e-05/0.418, allocations: 72.7 kB / 422.5 MB, free: 10.28 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003463/0.4215, allocations: 2.029 MB / 424.6 MB, free: 8.211 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000294/0.4218, allocations: 53.7 kB / 424.6 MB, free: 8.152 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001085/0.4229, allocations: 1.379 MB / 426 MB, free: 6.77 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005357/0.4235, allocations: 0.5092 MB / 426.5 MB, free: 6.266 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001039/0.4236, allocations: 36 kB / 426.5 MB, free: 6.23 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001622/0.4238, allocations: 385.8 kB / 426.9 MB, free: 5.848 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001535/0.4253, allocations: 0.8627 MB / 427.8 MB, free: 4.984 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001951/0.4273, allocations: 1.36 MB / 429.1 MB, free: 3.422 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001821/0.4291, allocations: 1.099 MB / 430.2 MB, free: 2.328 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.839e-05/0.4291, allocations: 4 kB / 430.2 MB, free: 2.324 MB / 334.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.006613/0.4357, allocations: 3.253 MB / 433.5 MB, free: 15.01 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.167e-05/0.4358, allocations: 8 kB / 433.5 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.649e-05/0.4358, allocations: 16.5 kB / 433.5 MB, free: 14.99 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002568/0.4384, allocations: 0.841 MB / 434.4 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001411/0.4398, allocations: 359.4 kB / 434.7 MB, free: 13.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01831/0.4582, allocations: 18.91 MB / 453.6 MB, free: 9.395 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002393/0.4606, allocations: 107.8 kB / 453.7 MB, free: 9.289 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003134/0.4609, allocations: 72 kB / 453.8 MB, free: 9.219 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 67 * Number of states: 0 () * Number of discrete variables: 2 (booleanReplicator2.y[3],booleanReplicator3.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (197): * Single equations (assignments): 186 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 11 {(2,100.0%) 9,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 4,(1,100.0%) 3,(1,100.0%) 4,(1,100.0%) 3,(1,100.0%) 4,(2,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002329/0.4633, allocations: 0.9425 MB / 454.7 MB, free: 8.266 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006161/0.4639, allocations: 213.4 kB / 454.9 MB, free: 8.055 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004904/0.4688, allocations: 2.613 MB / 457.6 MB, free: 5.375 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.391e-05/0.4689, allocations: 16 kB / 457.6 MB, free: 5.359 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.918e-05/0.469, allocations: 11.88 kB / 457.6 MB, free: 5.348 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.883e-05/0.469, allocations: 7.969 kB / 457.6 MB, free: 5.34 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01155/0.4805, allocations: 5.886 MB / 463.5 MB, free: 15.31 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.189e-05/0.4806, allocations: 4 kB / 463.5 MB, free: 15.3 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008703/0.4815, allocations: 195.7 kB / 463.7 MB, free: 15.11 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001936/0.4834, allocations: 0.725 MB / 464.4 MB, free: 14.36 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001502/0.4836, allocations: 39.94 kB / 464.4 MB, free: 14.32 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01484/0.4984, allocations: 16.81 MB / 481.2 MB, free: 12.19 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.19e-06/0.4985, allocations: 4 kB / 481.3 MB, free: 12.19 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006474/0.505, allocations: 4.04 MB / 485.3 MB, free: 7.906 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001746/0.5068, allocations: 482.3 kB / 485.8 MB, free: 7.414 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005805/0.5074, allocations: 35.98 kB / 485.8 MB, free: 7.379 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00126/0.5086, allocations: 107.9 kB / 485.9 MB, free: 7.273 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003632/0.509, allocations: 152.9 kB / 486.1 MB, free: 7.125 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000102/0.5091, allocations: 44 kB / 486.1 MB, free: 7.082 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002454/0.5116, allocations: 1.373 MB / 487.5 MB, free: 5.688 MB / 398.1 MB Notification: Performance of sort global known variables: time 4.41e-07/0.5116, allocations: 0 / 487.5 MB, free: 5.688 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00365/0.5153, allocations: 0.6562 MB / 488.1 MB, free: 5.031 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 4 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],inertiaLoad.phi) * Number of discrete variables: 2 (booleanReplicator2.y[3],booleanReplicator3.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (121): * Single equations (assignments): 111 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 10 {(2,100.0%) 9,(1,100.0%) 1,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005449/0.5158, allocations: 170.5 kB / 488.3 MB, free: 4.855 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.005661/0.5215, allocations: 3.436 MB / 491.7 MB, free: 1.285 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.143e-05/0.5215, allocations: 6 kB / 491.7 MB, free: 1.281 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003011/0.5246, allocations: 2.196 MB / 493.9 MB, free: 14.96 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004077/0.5287, allocations: 0.6387 MB / 494.6 MB, free: 14.33 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01293/0.5416, allocations: 6.72 MB / 0.4895 GB, free: 7.555 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003246/0.5449, allocations: 2.342 MB / 0.4918 GB, free: 5.18 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0024/0.5473, allocations: 0.5027 MB / 0.4923 GB, free: 4.672 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007072/0.5481, allocations: 135.4 kB / 0.4924 GB, free: 4.539 MB / 414.1 MB Notification: Performance of SimCode: time 2.084e-06/0.5481, allocations: 0 / 0.4924 GB, free: 4.539 MB / 414.1 MB Notification: Performance of Templates: time 0.06421/0.6123, allocations: 35.05 MB / 0.5267 GB, free: 1.93 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_ResistiveBraking/SMPM_ResistiveBraking.csv","../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches