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.0009806/0.0009805, allocations: 198.1 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.336/1.336, allocations: 225.6 MB / 234.8 MB, free: 3.281 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009512/0.0009513, allocations: 98.08 kB / 286.7 MB, free: 5.277 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.65e-05/1.661e-05, allocations: 0 / 343.7 MB, free: 8.301 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0931/0.09314, allocations: 51.48 MB / 395.2 MB, free: 4.781 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3068/0.3999, allocations: 107.8 MB / 0.4912 GB, free: 1.773 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002229/0.4002, allocations: 84.98 kB / 0.4913 GB, free: 1.73 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1403/0.5405, allocations: 57.52 MB / 0.5474 GB, free: 12.83 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.5405, allocations: 0 / 0.5474 GB, free: 12.83 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.000205/0.5408, allocations: 79.88 kB / 0.5475 GB, free: 12.75 MB / 426.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.00622/0.547, allocations: 2.904 MB / 0.5503 GB, free: 9.789 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.113e-05/0.547, allocations: 8.031 kB / 0.5503 GB, free: 9.781 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001492/0.5485, allocations: 407.5 kB / 0.5507 GB, free: 9.379 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004559/0.5531, allocations: 2.036 MB / 0.5527 GB, free: 7.289 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001009/0.5532, allocations: 92.34 kB / 0.5528 GB, free: 7.199 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004306/0.5537, allocations: 179.9 kB / 0.553 GB, free: 7.023 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005353/0.559, allocations: 2.823 MB / 0.5557 GB, free: 4.195 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005579/0.5646, allocations: 3.33 MB / 0.559 GB, free: 0.7031 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.974e-05/0.5647, allocations: 7.906 kB / 0.559 GB, free: 0.6953 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002239/0.565, allocations: 4 kB / 0.559 GB, free: 0.6914 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001134/0.5651, allocations: 113.5 kB / 0.5591 GB, free: 0.5781 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01726/0.5824, allocations: 11.22 MB / 0.5701 GB, free: 5.066 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002616/0.585, allocations: 3.598 MB / 0.5736 GB, free: 1.07 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.2095/0.7945, allocations: 1.083 MB / 0.5746 GB, free: 86.39 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004083/0.795, allocations: 142.6 kB / 0.5748 GB, free: 86.3 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.96e-05/0.795, allocations: 49.69 kB / 0.5748 GB, free: 86.26 MB / 442.7 MB Notification: Performance of pre-optimization done (n=139): time 3.918e-06/0.795, allocations: 0 / 0.5748 GB, free: 86.26 MB / 442.7 MB Notification: Performance of matching and sorting (n=160): time 0.01022/0.8053, allocations: 5.589 MB / 0.5803 GB, free: 85.57 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.754e-05/0.8053, allocations: 70.53 kB / 0.5803 GB, free: 85.5 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002101/0.8074, allocations: 1.498 MB / 0.5818 GB, free: 85.34 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001233/0.8076, allocations: 31.67 kB / 0.5818 GB, free: 85.31 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006423/0.8082, allocations: 1.37 MB / 0.5832 GB, free: 84.84 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003032/0.8085, allocations: 0.5202 MB / 0.5837 GB, free: 84.54 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.665e-05/0.8086, allocations: 2.938 kB / 0.5837 GB, free: 84.54 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 9.716e-05/0.8087, allocations: 380.4 kB / 0.5841 GB, free: 84.23 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009551/0.8097, allocations: 0.8459 MB / 0.5849 GB, free: 84.23 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001152/0.8108, allocations: 1.283 MB / 0.5861 GB, free: 83.73 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001254/0.8121, allocations: 1.071 MB / 0.5872 GB, free: 83.72 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.787e-06/0.8121, allocations: 9.812 kB / 0.5872 GB, free: 83.72 MB / 442.7 MB Notification: Performance of matching and sorting (n=238) (initialization): time 0.004484/0.8166, allocations: 3.153 MB / 0.5903 GB, free: 83.44 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.549e-05/0.8166, allocations: 12.12 kB / 0.5903 GB, free: 83.44 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.7e-05/0.8167, allocations: 12 kB / 0.5903 GB, free: 83.44 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002337/0.819, allocations: 1.009 MB / 0.5913 GB, free: 83.36 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001102/0.8201, allocations: 335.3 kB / 0.5916 GB, free: 83.36 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01284/0.833, allocations: 18.46 MB / 0.6096 GB, free: 71.03 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001502/0.8345, allocations: 65.8 kB / 0.6097 GB, free: 71.03 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002139/0.8347, allocations: 74.28 kB / 0.6098 GB, free: 71.03 MB / 442.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 () * 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%) 4,(1,100.0%) 3,(1,100.0%) 4,(1,100.0%) 3,(1,100.0%) 4,(1,100.0%) 3,(2,100.0%) 4,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003558/0.8351, allocations: 155.8 kB / 0.6099 GB, free: 70.91 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003951/0.8355, allocations: 205.3 kB / 0.6101 GB, free: 70.81 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004042/0.8396, allocations: 2.628 MB / 0.6127 GB, free: 70.62 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.08e-05/0.8396, allocations: 13.25 kB / 0.6127 GB, free: 70.62 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.669e-05/0.8396, allocations: 13.66 kB / 0.6127 GB, free: 70.62 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.606e-05/0.8396, allocations: 14.55 kB / 0.6127 GB, free: 70.61 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008551/0.8482, allocations: 5.466 MB / 0.618 GB, free: 69.96 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.927e-06/0.8482, allocations: 3.375 kB / 0.6181 GB, free: 69.96 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007608/0.849, allocations: 186 kB / 0.6182 GB, free: 69.96 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002173/0.8512, allocations: 0.901 MB / 0.6191 GB, free: 69.88 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000101/0.8513, allocations: 9.375 kB / 0.6191 GB, free: 69.88 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01238/0.8637, allocations: 16.43 MB / 0.6352 GB, free: 57.04 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.063e-05/0.8637, allocations: 6.547 kB / 0.6352 GB, free: 57.04 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006307/0.8701, allocations: 3.964 MB / 0.639 GB, free: 55.29 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001145/0.8712, allocations: 467.8 kB / 0.6395 GB, free: 55 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000523/0.8718, allocations: 7.688 kB / 0.6395 GB, free: 55 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001293/0.8731, allocations: 91.36 kB / 0.6396 GB, free: 55 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003745/0.8735, allocations: 145.4 kB / 0.6397 GB, free: 54.98 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001153/0.8736, allocations: 46.44 kB / 0.6398 GB, free: 54.97 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001886/0.8755, allocations: 1.115 MB / 0.6408 GB, free: 54.52 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.8755, allocations: 0 / 0.6408 GB, free: 54.52 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003156/0.8787, allocations: 0.6286 MB / 0.6415 GB, free: 54.51 MB / 442.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 () * 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.0007488/0.8794, allocations: 384.8 kB / 0.6418 GB, free: 54.4 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004713/0.8841, allocations: 3.35 MB / 0.6451 GB, free: 52.55 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.079e-06/0.8842, allocations: 1.031 kB / 0.6451 GB, free: 52.55 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002175/0.8864, allocations: 2.128 MB / 0.6472 GB, free: 51.18 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002631/0.889, allocations: 0.5258 MB / 0.6477 GB, free: 51.07 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007173/0.8962, allocations: 4.463 MB / 0.6521 GB, free: 49.31 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002227/0.8984, allocations: 2.364 MB / 0.6544 GB, free: 48.3 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001433/0.8999, allocations: 460.5 kB / 0.6548 GB, free: 48.25 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003378/0.9002, allocations: 120.4 kB / 0.6549 GB, free: 48.25 MB / 442.7 MB Notification: Performance of SimCode: time 4.31e-07/0.9002, allocations: 0 / 0.6549 GB, free: 48.25 MB / 442.7 MB Notification: Performance of Templates: time 0.04934/0.9496, allocations: 33.47 MB / 0.6876 GB, free: 46.52 MB / 442.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