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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.0009829/0.000983, allocations: 201.5 kB / 17.08 MB, free: 5.062 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.177/1.177, allocations: 227.2 MB / 245 MB, free: 7.48 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007969/0.0007969, allocations: 100.3 kB / 297.3 MB, free: 6.184 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002134/0.0002135, allocations: 8 kB / 357.9 MB, free: 9.531 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1765/0.1768, allocations: 51.48 MB / 409.4 MB, free: 26.75 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.284/0.4608, allocations: 108.5 MB / 0.5058 GB, free: 44.4 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002359/0.4611, allocations: 88.11 kB / 0.5059 GB, free: 44.4 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1239/0.585, allocations: 58.22 MB / 0.5627 GB, free: 31.74 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.382e-06/0.585, allocations: 0 / 0.5627 GB, free: 31.74 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001692/0.5852, allocations: 79.09 kB / 0.5628 GB, free: 31.73 MB / 378.7 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.005007/0.5902, allocations: 3.241 MB / 0.566 GB, free: 29.84 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.331e-05/0.5903, allocations: 9.594 kB / 0.566 GB, free: 29.84 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001168/0.5914, allocations: 408 kB / 0.5664 GB, free: 29.64 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003762/0.5952, allocations: 2.048 MB / 0.5684 GB, free: 28.75 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001231/0.5954, allocations: 212 kB / 0.5686 GB, free: 28.74 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003718/0.5957, allocations: 292.9 kB / 0.5689 GB, free: 28.73 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004827/0.6006, allocations: 3.803 MB / 0.5726 GB, free: 27.57 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.884e-05/0.6006, allocations: 11.58 kB / 0.5726 GB, free: 27.57 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002405/0.6009, allocations: 126.2 kB / 0.5727 GB, free: 27.56 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.35e-05/0.601, allocations: 112.7 kB / 0.5728 GB, free: 27.55 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00396/0.6049, allocations: 3.055 MB / 0.5758 GB, free: 25.09 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01394/0.6189, allocations: 11.79 MB / 0.5873 GB, free: 12.99 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002133/0.6211, allocations: 3.681 MB / 0.5909 GB, free: 8.895 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002405/0.6213, allocations: 138.5 kB / 0.591 GB, free: 8.742 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.333e-05/0.6213, allocations: 59.88 kB / 0.5911 GB, free: 8.676 MB / 378.7 MB Notification: Performance of pre-optimization done (n=139): time 3.166e-06/0.6214, allocations: 0 / 0.5911 GB, free: 8.676 MB / 378.7 MB Notification: Performance of matching and sorting (n=160): time 0.01328/0.6346, allocations: 8.352 MB / 0.5993 GB, free: 76 kB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.757e-05/0.6347, allocations: 72.7 kB / 0.5993 GB, free: 15.99 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002545/0.6373, allocations: 1.804 MB / 0.6011 GB, free: 14.15 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001238/0.6374, allocations: 49.7 kB / 0.6011 GB, free: 14.1 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008736/0.6383, allocations: 1.351 MB / 0.6025 GB, free: 12.73 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003739/0.6387, allocations: 0.543 MB / 0.603 GB, free: 12.18 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.027e-05/0.6388, allocations: 36 kB / 0.603 GB, free: 12.14 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001418/0.6389, allocations: 381.9 kB / 0.6034 GB, free: 11.77 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001244/0.6402, allocations: 0.9135 MB / 0.6043 GB, free: 10.85 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001474/0.6416, allocations: 1.367 MB / 0.6056 GB, free: 9.301 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001469/0.6431, allocations: 1.134 MB / 0.6067 GB, free: 8.168 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.877e-06/0.6431, allocations: 11.98 kB / 0.6067 GB, free: 8.156 MB / 394.7 MB Notification: Performance of matching and sorting (n=238) (initialization): time 0.005367/0.6485, allocations: 3.431 MB / 0.6101 GB, free: 4.684 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.326e-05/0.6486, allocations: 8 kB / 0.6101 GB, free: 4.676 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.087e-05/0.6486, allocations: 16 kB / 0.6101 GB, free: 4.66 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002672/0.6513, allocations: 1.043 MB / 0.6111 GB, free: 3.586 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001131/0.6524, allocations: 327.4 kB / 0.6114 GB, free: 3.266 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01692/0.6693, allocations: 19.62 MB / 0.6306 GB, free: 14.31 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001641/0.671, allocations: 95.89 kB / 0.6307 GB, free: 14.21 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001558/0.6712, allocations: 75.98 kB / 0.6308 GB, free: 14.14 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 61 * 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 (186): * Single equations (assignments): 176 * 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 {(5,76.0%) 20,(1,100.0%) 1,(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%) 4,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001692/0.6729, allocations: 0.9461 MB / 0.6317 GB, free: 13.18 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004202/0.6733, allocations: 221.3 kB / 0.6319 GB, free: 12.96 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005033/0.6783, allocations: 2.861 MB / 0.6347 GB, free: 10.07 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.263e-05/0.6784, allocations: 16 kB / 0.6347 GB, free: 10.05 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.11e-05/0.6784, allocations: 12 kB / 0.6347 GB, free: 10.04 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.38e-05/0.6784, allocations: 11.92 kB / 0.6347 GB, free: 10.03 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009645/0.6881, allocations: 6.038 MB / 0.6406 GB, free: 3.84 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.998e-06/0.6881, allocations: 4 kB / 0.6406 GB, free: 3.836 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007642/0.6889, allocations: 192 kB / 0.6408 GB, free: 3.648 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002339/0.6912, allocations: 0.9325 MB / 0.6417 GB, free: 2.688 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.837e-05/0.6913, allocations: 36 kB / 0.6417 GB, free: 2.652 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01481/0.7062, allocations: 17.5 MB / 0.6588 GB, free: 15.95 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.7062, allocations: 0 / 0.6588 GB, free: 15.95 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006011/0.7122, allocations: 4.219 MB / 0.663 GB, free: 11.57 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001278/0.7135, allocations: 494.2 kB / 0.6634 GB, free: 11.07 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002474/0.7138, allocations: 39.94 kB / 0.6635 GB, free: 11.03 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001017/0.7148, allocations: 119.9 kB / 0.6636 GB, free: 10.91 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000329/0.7151, allocations: 145 kB / 0.6637 GB, free: 10.77 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.835e-05/0.7152, allocations: 44 kB / 0.6638 GB, free: 10.73 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001877/0.7171, allocations: 1.369 MB / 0.6651 GB, free: 9.336 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.7171, allocations: 0 / 0.6651 GB, free: 9.336 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002233/0.7194, allocations: 0.7382 MB / 0.6658 GB, free: 8.598 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 (113): * Single equations (assignments): 104 * 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: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 9 {(5,76.0%) 20,(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,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005882/0.72, allocations: 435.5 kB / 0.6662 GB, free: 8.164 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.004607/0.7246, allocations: 3.58 MB / 0.6697 GB, free: 4.457 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.7246, allocations: 0 / 0.6697 GB, free: 4.457 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002603/0.7272, allocations: 2.284 MB / 0.672 GB, free: 2.055 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002693/0.7299, allocations: 0.6401 MB / 0.6726 GB, free: 1.414 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1686/0.8985, allocations: 6.78 MB / 0.6792 GB, free: 114.2 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001737/0.9003, allocations: 2.358 MB / 0.6815 GB, free: 113.4 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.001466/0.9018, allocations: 488.3 kB / 0.682 GB, free: 113.4 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003012/0.9021, allocations: 131.4 kB / 0.6821 GB, free: 113.4 MB / 458.7 MB Notification: Performance of SimCode: time 9.62e-07/0.9021, allocations: 0 / 0.6821 GB, free: 113.4 MB / 458.7 MB Notification: Performance of Templates: time 0.05063/0.9527, allocations: 40.88 MB / 0.722 GB, free: 110.9 MB / 458.7 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