Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.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_Braking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009709/0.0009709, allocations: 197.2 kB / 18.11 MB, free: 3.738 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.371/1.371, allocations: 226.5 MB / 245.4 MB, free: 8.246 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008321/0.0008323, allocations: 111.8 kB / 297.5 MB, free: 6.887 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002286/0.0002286, allocations: 4 kB / 358.1 MB, free: 10.27 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2289/0.2291, allocations: 51.3 MB / 409.4 MB, free: 27.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3242/0.5533, allocations: 111.3 MB / 0.5085 GB, free: 97.77 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000267/0.5537, allocations: 91.62 kB / 0.5086 GB, free: 97.77 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1282/0.6819, allocations: 55.28 MB / 0.5626 GB, free: 50.49 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.046e-06/0.682, allocations: 0 / 0.5626 GB, free: 50.49 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003664/0.6823, allocations: 71.88 kB / 0.5626 GB, free: 50.42 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: 653 * Number of variables: 653 Notification: Performance of Generate backend data structure: time 0.008691/0.691, allocations: 2.96 MB / 0.5655 GB, free: 47.39 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.54e-05/0.6911, allocations: 8.031 kB / 0.5655 GB, free: 47.38 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001978/0.6931, allocations: 364.9 kB / 0.5659 GB, free: 47.02 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005204/0.6983, allocations: 2.011 MB / 0.5678 GB, free: 44.95 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000176/0.6985, allocations: 185.4 kB / 0.568 GB, free: 44.77 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009281/0.6995, allocations: 252.2 kB / 0.5683 GB, free: 44.52 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008294/0.7078, allocations: 3.403 MB / 0.5716 GB, free: 40.95 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001553/0.708, allocations: 4.188 kB / 0.5716 GB, free: 40.94 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007233/0.7087, allocations: 111.9 kB / 0.5717 GB, free: 40.83 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001144/0.7088, allocations: 116.8 kB / 0.5718 GB, free: 40.71 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006035/0.7149, allocations: 2.775 MB / 0.5745 GB, free: 37.93 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02014/0.7351, allocations: 10.92 MB / 0.5852 GB, free: 26.72 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003145/0.7383, allocations: 2.478 MB / 0.5876 GB, free: 24.09 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001507/0.7398, allocations: 1.07 MB / 0.5886 GB, free: 23.02 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003042/0.7401, allocations: 146.3 kB / 0.5888 GB, free: 22.85 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.122e-05/0.7402, allocations: 47.88 kB / 0.5888 GB, free: 22.8 MB / 378.7 MB Notification: Performance of pre-optimization done (n=136): time 4.018e-06/0.7402, allocations: 0 / 0.5888 GB, free: 22.8 MB / 378.7 MB Notification: Performance of matching and sorting (n=150): time 0.01432/0.7545, allocations: 7.316 MB / 0.596 GB, free: 15.36 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.228e-05/0.7546, allocations: 98.42 kB / 0.5961 GB, free: 15.25 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003097/0.7577, allocations: 1.788 MB / 0.5978 GB, free: 13.46 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001389/0.7579, allocations: 49.7 kB / 0.5979 GB, free: 13.41 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000645/0.7585, allocations: 1.218 MB / 0.599 GB, free: 12.17 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003699/0.7589, allocations: 0.4968 MB / 0.5995 GB, free: 11.67 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001014/0.759, allocations: 36 kB / 0.5996 GB, free: 11.63 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001088/0.7591, allocations: 381.8 kB / 0.5999 GB, free: 11.25 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001184/0.7603, allocations: 0.8511 MB / 0.6008 GB, free: 10.4 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001322/0.7617, allocations: 1.313 MB / 0.602 GB, free: 8.895 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002552/0.7642, allocations: 2.264 MB / 0.6042 GB, free: 6.441 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.125e-05/0.7643, allocations: 4 kB / 0.6043 GB, free: 6.438 MB / 378.7 MB Notification: Performance of matching and sorting (n=220) (initialization): time 0.004143/0.7684, allocations: 2.856 MB / 0.607 GB, free: 3.559 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002344/0.7686, allocations: 0.4902 MB / 0.6075 GB, free: 2.871 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.179e-05/0.7687, allocations: 16 kB / 0.6075 GB, free: 2.855 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001383/0.7701, allocations: 0.6745 MB / 0.6082 GB, free: 2.168 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001225/0.7713, allocations: 375.4 kB / 0.6086 GB, free: 1.801 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008787/0.7801, allocations: 8.296 MB / 0.6167 GB, free: 9.094 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001814/0.7819, allocations: 119.8 kB / 0.6168 GB, free: 8.977 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002801/0.7822, allocations: 68 kB / 0.6168 GB, free: 8.91 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.017e-06/0.7823, allocations: 4 kB / 0.6168 GB, free: 8.906 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004622/0.7869, allocations: 2.638 MB / 0.6194 GB, free: 6.254 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.107e-05/0.787, allocations: 12 kB / 0.6194 GB, free: 6.242 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001473/0.7884, allocations: 0.6712 MB / 0.6201 GB, free: 5.559 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001338/0.7898, allocations: 363.4 kB / 0.6204 GB, free: 5.203 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009402/0.7992, allocations: 8.292 MB / 0.6285 GB, free: 12.52 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001887/0.8011, allocations: 103.9 kB / 0.6286 GB, free: 12.41 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003589/0.8015, allocations: 75.98 kB / 0.6287 GB, free: 12.34 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * Number of states: 0 () * Number of discrete variables: 6 (diodeBridge2mPulse.diode_p.idealDiode[1].off,diodeBridge2mPulse.diode_p.idealDiode[2].off,diodeBridge2mPulse.diode_p.idealDiode[3].off,diodeBridge2mPulse.diode_n.idealDiode[1].off,diodeBridge2mPulse.diode_n.idealDiode[2].off,diodeBridge2mPulse.diode_n.idealDiode[3].off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (183): * Single equations (assignments): 179 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 9,(1,100.0%) 1} * Non-linear torn systems: 1 {6 20} Notification: Performance of prepare postOptimizeDAE: time 0.002512/0.8041, allocations: 0.938 MB / 0.6296 GB, free: 11.39 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007977/0.8049, allocations: 197.6 kB / 0.6298 GB, free: 11.2 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005074/0.81, allocations: 2.621 MB / 0.6324 GB, free: 8.547 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.674e-05/0.81, allocations: 16 kB / 0.6324 GB, free: 8.531 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.38e-05/0.81, allocations: 8 kB / 0.6324 GB, free: 8.523 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.775e-05/0.81, allocations: 7.969 kB / 0.6324 GB, free: 8.516 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01076/0.8208, allocations: 5.403 MB / 0.6377 GB, free: 3.008 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.177e-06/0.8209, allocations: 4 kB / 0.6377 GB, free: 3.004 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009693/0.8218, allocations: 239.9 kB / 0.6379 GB, free: 2.77 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00168/0.8235, allocations: 0.6941 MB / 0.6386 GB, free: 2.062 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001303/0.8237, allocations: 39.92 kB / 0.6386 GB, free: 2.023 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01021/0.8339, allocations: 9.786 MB / 0.6482 GB, free: 7.695 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.43e-06/0.8339, allocations: 7.938 kB / 0.6482 GB, free: 7.688 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006184/0.8401, allocations: 3.798 MB / 0.6519 GB, free: 3.832 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001186/0.8413, allocations: 478.5 kB / 0.6523 GB, free: 3.344 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005321/0.8419, allocations: 31.98 kB / 0.6524 GB, free: 3.312 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001248/0.8432, allocations: 103.8 kB / 0.6525 GB, free: 3.211 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003164/0.8435, allocations: 117.1 kB / 0.6526 GB, free: 3.094 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001063/0.8436, allocations: 43.98 kB / 0.6526 GB, free: 3.051 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002288/0.8459, allocations: 1.225 MB / 0.6538 GB, free: 1.836 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.8459, allocations: 0 / 0.6538 GB, free: 1.836 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003915/0.8498, allocations: 1.047 MB / 0.6548 GB, free: 0.7891 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 5 (smpm.inertiaRotor.phi,smpm.i_0_s,smpm.idq_sr[1],smpm.idq_sr[2],inertiaLoad.w) * Number of discrete variables: 6 (diodeBridge2mPulse.diode_p.idealDiode[1].off,diodeBridge2mPulse.diode_p.idealDiode[2].off,diodeBridge2mPulse.diode_p.idealDiode[3].off,diodeBridge2mPulse.diode_n.idealDiode[1].off,diodeBridge2mPulse.diode_n.idealDiode[2].off,diodeBridge2mPulse.diode_n.idealDiode[3].off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (113): * Single equations (assignments): 109 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 9,(1,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 1 {6 20} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006988/0.8505, allocations: 427.9 kB / 0.6553 GB, free: 384 kB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.006451/0.857, allocations: 4.525 MB / 0.6597 GB, free: 11.73 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.35e-06/0.857, allocations: 320 / 0.6597 GB, free: 11.73 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002322/0.8594, allocations: 1.751 MB / 0.6614 GB, free: 9.938 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00375/0.8631, allocations: 0.5912 MB / 0.662 GB, free: 9.352 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01072/0.8739, allocations: 6.464 MB / 0.6683 GB, free: 2.828 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002583/0.8765, allocations: 2.115 MB / 0.6703 GB, free: 0.6758 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002335/0.8788, allocations: 0.595 MB / 0.6709 GB, free: 80 kB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.1964/1.075, allocations: 131.8 kB / 0.671 GB, free: 107.4 MB / 442.7 MB Notification: Performance of SimCode: time 8.11e-07/1.075, allocations: 0 / 0.671 GB, free: 107.4 MB / 442.7 MB Notification: Performance of Templates: time 0.0658/1.141, allocations: 42.12 MB / 0.7122 GB, free: 103.1 MB / 442.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_Braking/SMPM_Braking.csv","../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches