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.001737/0.001737, allocations: 196 kB / 18.11 MB, free: 3.734 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.327/1.327, allocations: 226.5 MB / 245.4 MB, free: 8.191 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008405/0.0008405, allocations: 92.72 kB / 297.5 MB, free: 6.883 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002451/0.0002453, allocations: 4 kB / 358.1 MB, free: 10.26 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2404/0.2406, allocations: 51.29 MB / 409.4 MB, free: 27.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3247/0.5654, allocations: 108.6 MB / 0.5058 GB, free: 97.11 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000361/0.5658, allocations: 85.09 kB / 0.5059 GB, free: 97.11 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1297/0.6955, allocations: 58.27 MB / 0.5628 GB, free: 50.21 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.322e-06/0.6956, allocations: 0 / 0.5628 GB, free: 50.21 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002596/0.6958, allocations: 75.94 kB / 0.5629 GB, free: 50.13 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.007321/0.7032, allocations: 3.202 MB / 0.566 GB, free: 46.86 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.369e-05/0.7032, allocations: 8.031 kB / 0.566 GB, free: 46.85 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001522/0.7047, allocations: 416.6 kB / 0.5664 GB, free: 46.44 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004967/0.7097, allocations: 2.121 MB / 0.5685 GB, free: 44.27 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001996/0.71, allocations: 214 kB / 0.5687 GB, free: 44.05 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009721/0.7109, allocations: 292.3 kB / 0.5689 GB, free: 43.77 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007081/0.718, allocations: 3.822 MB / 0.5727 GB, free: 39.78 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001004/0.7182, allocations: 4.188 kB / 0.5727 GB, free: 39.78 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000418/0.7186, allocations: 127.9 kB / 0.5728 GB, free: 39.65 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.594e-05/0.7187, allocations: 125.5 kB / 0.5729 GB, free: 39.53 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004953/0.7236, allocations: 3.059 MB / 0.5759 GB, free: 36.46 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01627/0.7399, allocations: 11.79 MB / 0.5874 GB, free: 24.35 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002234/0.7422, allocations: 3.687 MB / 0.591 GB, free: 20.26 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001364/0.7436, allocations: 1.149 MB / 0.5921 GB, free: 19.1 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002568/0.7438, allocations: 138.4 kB / 0.5923 GB, free: 18.95 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.472e-05/0.7439, allocations: 51.88 kB / 0.5923 GB, free: 18.89 MB / 378.7 MB Notification: Performance of pre-optimization done (n=139): time 3.747e-06/0.7439, allocations: 0 / 0.5923 GB, free: 18.89 MB / 378.7 MB Notification: Performance of matching and sorting (n=160): time 0.01379/0.7577, allocations: 8.311 MB / 0.6004 GB, free: 10.34 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.379e-05/0.7578, allocations: 68.72 kB / 0.6005 GB, free: 10.25 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003046/0.7608, allocations: 2.025 MB / 0.6025 GB, free: 8.188 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001694/0.761, allocations: 57.7 kB / 0.6025 GB, free: 8.125 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007692/0.7618, allocations: 1.351 MB / 0.6039 GB, free: 6.758 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004344/0.7622, allocations: 0.5353 MB / 0.6044 GB, free: 6.215 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001263/0.7624, allocations: 36 kB / 0.6044 GB, free: 6.18 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001712/0.7625, allocations: 381.9 kB / 0.6048 GB, free: 5.801 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001299/0.7638, allocations: 0.9056 MB / 0.6057 GB, free: 4.895 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001375/0.7652, allocations: 1.363 MB / 0.607 GB, free: 3.344 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002653/0.7679, allocations: 2.367 MB / 0.6093 GB, free: 0.793 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.285e-05/0.7679, allocations: 4 kB / 0.6093 GB, free: 0.7891 MB / 378.7 MB Notification: Performance of matching and sorting (n=238) (initialization): time 0.006007/0.7739, allocations: 3.423 MB / 0.6127 GB, free: 13.32 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.248e-05/0.774, allocations: 8 kB / 0.6127 GB, free: 13.32 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.202e-05/0.774, allocations: 16 kB / 0.6127 GB, free: 13.3 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002964/0.777, allocations: 1.043 MB / 0.6137 GB, free: 12.23 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001268/0.7783, allocations: 335.4 kB / 0.614 GB, free: 11.9 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01762/0.7959, allocations: 19.26 MB / 0.6328 GB, free: 7.301 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001686/0.7976, allocations: 99.89 kB / 0.6329 GB, free: 7.203 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002775/0.7979, allocations: 71.98 kB / 0.633 GB, free: 7.133 MB / 410.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%) 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.001914/0.7999, allocations: 0.946 MB / 0.6339 GB, free: 6.176 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005254/0.8004, allocations: 221.4 kB / 0.6341 GB, free: 5.957 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004839/0.8052, allocations: 2.837 MB / 0.6369 GB, free: 3.074 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.395e-05/0.8053, allocations: 20 kB / 0.6369 GB, free: 3.055 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.58e-05/0.8053, allocations: 11.94 kB / 0.6369 GB, free: 3.043 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.489e-05/0.8053, allocations: 7.969 kB / 0.6369 GB, free: 3.035 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0106/0.8159, allocations: 6.035 MB / 0.6428 GB, free: 12.85 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.798e-06/0.816, allocations: 4 kB / 0.6428 GB, free: 12.85 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007485/0.8167, allocations: 191.7 kB / 0.643 GB, free: 12.66 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002479/0.8192, allocations: 0.9134 MB / 0.6439 GB, free: 11.72 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001424/0.8194, allocations: 40.11 kB / 0.6439 GB, free: 11.68 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01724/0.8366, allocations: 17.15 MB / 0.6607 GB, free: 9.336 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.666e-06/0.8367, allocations: 7.938 kB / 0.6607 GB, free: 9.328 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006931/0.8436, allocations: 4.024 MB / 0.6646 GB, free: 5.23 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001297/0.845, allocations: 494.3 kB / 0.6651 GB, free: 4.727 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005836/0.8456, allocations: 31.94 kB / 0.6651 GB, free: 4.695 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001429/0.847, allocations: 123.9 kB / 0.6652 GB, free: 4.574 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003946/0.8474, allocations: 145 kB / 0.6654 GB, free: 4.43 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001326/0.8476, allocations: 47.98 kB / 0.6654 GB, free: 4.383 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002566/0.8502, allocations: 1.369 MB / 0.6668 GB, free: 2.992 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.485e-06/0.8502, allocations: 0 / 0.6668 GB, free: 2.992 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003105/0.8533, allocations: 0.7343 MB / 0.6675 GB, free: 2.258 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 () * 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.0007073/0.854, allocations: 408.6 kB / 0.6679 GB, free: 1.855 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.208/1.062, allocations: 3.578 MB / 0.6714 GB, free: 109.6 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.076e-05/1.062, allocations: 1.719 kB / 0.6714 GB, free: 109.6 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003126/1.065, allocations: 2.287 MB / 0.6736 GB, free: 108.6 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003946/1.069, allocations: 0.6428 MB / 0.6742 GB, free: 108.6 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009171/1.078, allocations: 6.78 MB / 0.6808 GB, free: 105.9 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00192/1.08, allocations: 2.306 MB / 0.6831 GB, free: 105.2 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001656/1.082, allocations: 480.3 kB / 0.6836 GB, free: 105.1 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003004/1.082, allocations: 134.5 kB / 0.6837 GB, free: 105.1 MB / 442.7 MB Notification: Performance of SimCode: time 8.41e-07/1.082, allocations: 0 / 0.6837 GB, free: 105.1 MB / 442.7 MB Notification: Performance of Templates: time 0.06603/1.148, allocations: 41.44 MB / 0.7242 GB, free: 94.11 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/jenkins1/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