Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001517/0.001517, allocations: 176.4 kB / 8.347 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.318/1.318, allocations: 221.5 MB / 230.3 MB, free: 7.52 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008057/0.0008057, allocations: 98.19 kB / 281.2 MB, free: 5.262 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.631e-05/1.632e-05, allocations: 0 / 337 MB, free: 10.01 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08203/0.08206, allocations: 50.43 MB / 387.5 MB, free: 7.543 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3029/0.385, allocations: 109.7 MB / 497.2 MB, free: 1.031 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000303/0.3853, allocations: 79.95 kB / 497.3 MB, free: 0.9531 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1383/0.5236, allocations: 54.52 MB / 0.5389 GB, free: 10.05 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.734e-06/0.5236, allocations: 0 / 0.5389 GB, free: 10.05 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001818/0.5238, allocations: 67.94 kB / 0.5389 GB, free: 9.988 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: 653 * Number of variables: 653 Notification: Performance of Generate backend data structure: time 0.005294/0.5291, allocations: 2.656 MB / 0.5415 GB, free: 7.27 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.376e-05/0.5292, allocations: 15.98 kB / 0.5415 GB, free: 7.254 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001041/0.5302, allocations: 356 kB / 0.5419 GB, free: 6.902 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003741/0.534, allocations: 1.933 MB / 0.5438 GB, free: 4.914 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.046e-05/0.5341, allocations: 84 kB / 0.5438 GB, free: 4.832 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003664/0.5345, allocations: 159.8 kB / 0.544 GB, free: 4.676 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004373/0.5389, allocations: 2.548 MB / 0.5465 GB, free: 2.121 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2289/0.7677, allocations: 2.948 MB / 0.5494 GB, free: 100.1 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.87e-05/0.7679, allocations: 11.94 kB / 0.5494 GB, free: 100.1 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002356/0.7681, allocations: 4.625 kB / 0.5494 GB, free: 100.1 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001483/0.7683, allocations: 113 kB / 0.5495 GB, free: 100.1 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01774/0.7861, allocations: 10.42 MB / 0.5597 GB, free: 97.49 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002662/0.7888, allocations: 2.349 MB / 0.562 GB, free: 96.61 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001475/0.7903, allocations: 1.009 MB / 0.5629 GB, free: 96.59 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003071/0.7906, allocations: 138.8 kB / 0.5631 GB, free: 96.5 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.842e-05/0.7906, allocations: 48.75 kB / 0.5631 GB, free: 96.46 MB / 426.7 MB Notification: Performance of pre-optimization done (n=136): time 5.64e-06/0.7907, allocations: 3.219 kB / 0.5631 GB, free: 96.46 MB / 426.7 MB Notification: Performance of matching and sorting (n=150): time 0.009211/0.7999, allocations: 4.95 MB / 0.568 GB, free: 95.67 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.791e-05/0.7999, allocations: 92.73 kB / 0.568 GB, free: 95.58 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002012/0.802, allocations: 1.317 MB / 0.5693 GB, free: 95.42 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001291/0.8021, allocations: 25.7 kB / 0.5694 GB, free: 95.39 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006884/0.8028, allocations: 1.223 MB / 0.5705 GB, free: 94.93 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003731/0.8032, allocations: 497.9 kB / 0.571 GB, free: 94.61 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.314e-05/0.8033, allocations: 0 / 0.571 GB, free: 94.61 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001161/0.8034, allocations: 372.8 kB / 0.5714 GB, free: 94.31 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001121/0.8045, allocations: 0.7879 MB / 0.5721 GB, free: 94.3 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001306/0.8058, allocations: 1.232 MB / 0.5733 GB, free: 93.79 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001314/0.8072, allocations: 0.9752 MB / 0.5743 GB, free: 93.78 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.165e-05/0.8072, allocations: 8.844 kB / 0.5743 GB, free: 93.78 MB / 426.7 MB Notification: Performance of matching and sorting (n=220) (initialization): time 0.003786/0.811, allocations: 2.603 MB / 0.5769 GB, free: 93.11 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009053/0.8119, allocations: 5.526 MB / 0.5822 GB, free: 87.15 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.103e-05/0.8119, allocations: 18.16 kB / 0.5823 GB, free: 87.15 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001318/0.8133, allocations: 0.6644 MB / 0.5829 GB, free: 86.94 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001305/0.8146, allocations: 370.7 kB / 0.5833 GB, free: 86.93 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006361/0.821, allocations: 7.942 MB / 0.591 GB, free: 81.45 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001687/0.8227, allocations: 80.47 kB / 0.5911 GB, free: 81.45 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001668/0.8229, allocations: 72.97 kB / 0.5912 GB, free: 81.43 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.197e-06/0.8229, allocations: 3.938 kB / 0.5912 GB, free: 81.43 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003235/0.8261, allocations: 2.387 MB / 0.5935 GB, free: 80.65 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.363e-05/0.8262, allocations: 17.56 kB / 0.5935 GB, free: 80.65 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001191/0.8274, allocations: 0.6608 MB / 0.5942 GB, free: 80.45 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001183/0.8286, allocations: 359.4 kB / 0.5945 GB, free: 80.44 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006217/0.8348, allocations: 7.962 MB / 0.6023 GB, free: 74.93 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001378/0.8362, allocations: 71.73 kB / 0.6024 GB, free: 74.93 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001217/0.8363, allocations: 73.53 kB / 0.6024 GB, free: 74.92 MB / 426.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 () * 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.000355/0.8367, allocations: 156.2 kB / 0.6026 GB, free: 74.77 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003116/0.837, allocations: 188.6 kB / 0.6028 GB, free: 74.68 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003392/0.8404, allocations: 2.415 MB / 0.6051 GB, free: 73.75 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.028e-05/0.8404, allocations: 14.34 kB / 0.6051 GB, free: 73.75 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.991e-06/0.8404, allocations: 3.75 kB / 0.6051 GB, free: 73.75 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.442e-05/0.8405, allocations: 10.92 kB / 0.6051 GB, free: 73.75 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006689/0.8471, allocations: 4.891 MB / 0.6099 GB, free: 71.77 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.905e-06/0.8472, allocations: 0 / 0.6099 GB, free: 71.77 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009077/0.8481, allocations: 233 kB / 0.6101 GB, free: 71.75 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001371/0.8495, allocations: 0.6795 MB / 0.6108 GB, free: 71.54 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.872e-05/0.8496, allocations: 13.95 kB / 0.6108 GB, free: 71.54 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006989/0.8566, allocations: 9.416 MB / 0.62 GB, free: 64.68 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.641e-06/0.8566, allocations: 3.938 kB / 0.62 GB, free: 64.68 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004231/0.8609, allocations: 3.721 MB / 0.6236 GB, free: 62.93 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008827/0.8618, allocations: 450.4 kB / 0.6241 GB, free: 62.64 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002341/0.862, allocations: 3.75 kB / 0.6241 GB, free: 62.64 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008944/0.8629, allocations: 74.02 kB / 0.6242 GB, free: 62.64 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002664/0.8632, allocations: 124.1 kB / 0.6243 GB, free: 62.62 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.619e-05/0.8633, allocations: 41.42 kB / 0.6243 GB, free: 62.61 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001354/0.8646, allocations: 0.9915 MB / 0.6253 GB, free: 62.2 MB / 426.7 MB Notification: Performance of sort global known variables: time 8.92e-07/0.8647, allocations: 0 / 0.6253 GB, free: 62.2 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002948/0.8676, allocations: 0.9179 MB / 0.6262 GB, free: 62.19 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 () * 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.0006494/0.8683, allocations: 407 kB / 0.6266 GB, free: 62.02 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.00482/0.8731, allocations: 4.274 MB / 0.6307 GB, free: 59.82 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.062e-06/0.8731, allocations: 0 / 0.6307 GB, free: 59.82 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001743/0.8749, allocations: 1.627 MB / 0.6323 GB, free: 58.93 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002473/0.8774, allocations: 493 kB / 0.6328 GB, free: 58.8 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006918/0.8843, allocations: 4.369 MB / 0.6371 GB, free: 56.57 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001488/0.8858, allocations: 2.156 MB / 0.6392 GB, free: 54.86 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0024/0.8882, allocations: 0.8188 MB / 0.64 GB, free: 54.33 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002672/0.8885, allocations: 103.4 kB / 0.6401 GB, free: 54.23 MB / 426.7 MB Notification: Performance of SimCode: time 1.042e-06/0.8885, allocations: 0 / 0.6401 GB, free: 54.23 MB / 426.7 MB Notification: Performance of Templates: time 0.04994/0.9385, allocations: 36.68 MB / 0.6759 GB, free: 23.95 MB / 426.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_Braking/SMPM_Braking.csv","../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches