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.001309/0.001309, allocations: 200.2 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.291/1.291, allocations: 225.6 MB / 234.8 MB, free: 3.246 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008645/0.0008647, allocations: 97.11 kB / 286.7 MB, free: 5.254 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.23e-05/2.232e-05, allocations: 4.219 kB / 343.7 MB, free: 8.285 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09853/0.09857, allocations: 51.48 MB / 395.2 MB, free: 4.762 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3294/0.428, allocations: 110.5 MB / 0.4939 GB, free: 15.04 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000243/0.4283, allocations: 84.39 kB / 0.4939 GB, free: 15 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1354/0.5637, allocations: 54.63 MB / 0.5473 GB, free: 13 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.5638, allocations: 0 / 0.5473 GB, free: 13 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001906/0.564, allocations: 75.88 kB / 0.5474 GB, free: 12.92 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.005558/0.5695, allocations: 2.664 MB / 0.55 GB, free: 10.2 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.558e-05/0.5696, allocations: 8.031 kB / 0.55 GB, free: 10.19 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001102/0.5707, allocations: 360 kB / 0.5503 GB, free: 9.832 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003836/0.5746, allocations: 1.937 MB / 0.5522 GB, free: 7.84 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.575e-05/0.5747, allocations: 80 kB / 0.5523 GB, free: 7.762 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002991/0.575, allocations: 155.9 kB / 0.5524 GB, free: 7.609 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003925/0.5789, allocations: 2.548 MB / 0.5549 GB, free: 5.055 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004475/0.5834, allocations: 2.956 MB / 0.5578 GB, free: 1.93 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.981e-05/0.5835, allocations: 11.89 kB / 0.5578 GB, free: 1.918 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001935/0.5837, allocations: 4 kB / 0.5578 GB, free: 1.914 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001004/0.5838, allocations: 108.8 kB / 0.5579 GB, free: 1.805 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01428/0.598, allocations: 10.43 MB / 0.5681 GB, free: 7.117 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002418/0.6005, allocations: 2.351 MB / 0.5704 GB, free: 4.602 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001296/0.6018, allocations: 1.005 MB / 0.5714 GB, free: 3.594 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003225/0.6021, allocations: 142.3 kB / 0.5715 GB, free: 3.438 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.11e-05/0.6022, allocations: 47.88 kB / 0.5716 GB, free: 3.383 MB / 442.7 MB Notification: Performance of pre-optimization done (n=136): time 3.036e-06/0.6022, allocations: 0 / 0.5716 GB, free: 3.383 MB / 442.7 MB Notification: Performance of matching and sorting (n=150): time 0.2452/0.8474, allocations: 4.945 MB / 0.5764 GB, free: 87.62 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.176e-05/0.8475, allocations: 100.4 kB / 0.5765 GB, free: 87.53 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001854/0.8494, allocations: 1.319 MB / 0.5778 GB, free: 87.37 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002171/0.8496, allocations: 25.7 kB / 0.5778 GB, free: 87.34 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005878/0.8502, allocations: 1.223 MB / 0.579 GB, free: 86.92 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003108/0.8505, allocations: 487.9 kB / 0.5795 GB, free: 86.66 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.005e-05/0.8506, allocations: 3.375 kB / 0.5795 GB, free: 86.66 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 9.911e-05/0.8507, allocations: 373.9 kB / 0.5798 GB, free: 86.36 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001094/0.8518, allocations: 0.7869 MB / 0.5806 GB, free: 86.36 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001134/0.853, allocations: 1.233 MB / 0.5818 GB, free: 85.85 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001146/0.8541, allocations: 0.9789 MB / 0.5828 GB, free: 85.85 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.574e-06/0.8541, allocations: 6 kB / 0.5828 GB, free: 85.85 MB / 442.7 MB Notification: Performance of matching and sorting (n=220) (initialization): time 0.003526/0.8577, allocations: 2.601 MB / 0.5853 GB, free: 85.66 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000975/0.8587, allocations: 5.536 MB / 0.5907 GB, free: 79.79 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.223e-05/0.8587, allocations: 16.61 kB / 0.5907 GB, free: 79.79 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001382/0.8601, allocations: 0.6592 MB / 0.5914 GB, free: 79.76 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00131/0.8614, allocations: 370.3 kB / 0.5917 GB, free: 79.76 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007002/0.8684, allocations: 7.949 MB / 0.5995 GB, free: 75.94 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001867/0.8703, allocations: 81.95 kB / 0.5996 GB, free: 75.94 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001554/0.8705, allocations: 72.3 kB / 0.5996 GB, free: 75.94 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.756e-06/0.8705, allocations: 3.25 kB / 0.5996 GB, free: 75.94 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003294/0.8738, allocations: 2.395 MB / 0.602 GB, free: 75.86 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.135e-05/0.8738, allocations: 13.75 kB / 0.602 GB, free: 75.86 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001332/0.8752, allocations: 0.6535 MB / 0.6026 GB, free: 75.83 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001227/0.8764, allocations: 366.5 kB / 0.603 GB, free: 75.83 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006565/0.883, allocations: 7.953 MB / 0.6107 GB, free: 72 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00153/0.8846, allocations: 71.91 kB / 0.6108 GB, free: 72 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001228/0.8847, allocations: 67.66 kB / 0.6109 GB, free: 72 MB / 442.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.0004017/0.8851, allocations: 164.2 kB / 0.611 GB, free: 71.89 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003144/0.8854, allocations: 192.5 kB / 0.6112 GB, free: 71.79 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003539/0.889, allocations: 2.4 MB / 0.6136 GB, free: 71.66 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.027e-05/0.889, allocations: 16.41 kB / 0.6136 GB, free: 71.66 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.73e-06/0.889, allocations: 6.594 kB / 0.6136 GB, free: 71.66 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.432e-05/0.889, allocations: 10.41 kB / 0.6136 GB, free: 71.66 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006761/0.8958, allocations: 4.896 MB / 0.6184 GB, free: 70.71 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.261e-06/0.8958, allocations: 0 / 0.6184 GB, free: 70.71 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009423/0.8968, allocations: 237.2 kB / 0.6186 GB, free: 70.71 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001471/0.8983, allocations: 0.6781 MB / 0.6193 GB, free: 70.5 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.005e-05/0.8984, allocations: 13.92 kB / 0.6193 GB, free: 70.49 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007849/0.9062, allocations: 9.401 MB / 0.6285 GB, free: 63.7 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.334e-06/0.9063, allocations: 4.812 kB / 0.6285 GB, free: 63.7 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004879/0.9111, allocations: 3.723 MB / 0.6321 GB, free: 61.97 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000941/0.9121, allocations: 455.3 kB / 0.6325 GB, free: 61.69 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000237/0.9124, allocations: 5.094 kB / 0.6325 GB, free: 61.69 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009258/0.9133, allocations: 76.7 kB / 0.6326 GB, free: 61.69 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002935/0.9136, allocations: 125.4 kB / 0.6327 GB, free: 61.67 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.401e-05/0.9137, allocations: 39.06 kB / 0.6328 GB, free: 61.66 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001406/0.9151, allocations: 0.9924 MB / 0.6337 GB, free: 61.25 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.9151, allocations: 0 / 0.6337 GB, free: 61.25 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003207/0.9183, allocations: 0.92 MB / 0.6346 GB, free: 61.23 MB / 442.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.0006918/0.919, allocations: 393.6 kB / 0.635 GB, free: 61.12 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005394/0.9244, allocations: 4.269 MB / 0.6392 GB, free: 58.95 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.951e-06/0.9245, allocations: 1.031 kB / 0.6392 GB, free: 58.95 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002026/0.9265, allocations: 1.638 MB / 0.6408 GB, free: 58.05 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002362/0.9289, allocations: 491.7 kB / 0.6412 GB, free: 57.95 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006893/0.9358, allocations: 4.378 MB / 0.6455 GB, free: 56.16 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001728/0.9375, allocations: 2.147 MB / 0.6476 GB, free: 55.18 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002681/0.9402, allocations: 0.8264 MB / 0.6484 GB, free: 55.11 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002632/0.9405, allocations: 101.8 kB / 0.6485 GB, free: 55.11 MB / 442.7 MB Notification: Performance of SimCode: time 8.72e-07/0.9405, allocations: 0 / 0.6485 GB, free: 55.11 MB / 442.7 MB Notification: Performance of Templates: time 0.05198/0.9925, allocations: 36.76 MB / 0.6844 GB, free: 51.79 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/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_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches