Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smee.is.1.|smee.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking") translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smee.is.1.|smee.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009737/0.0009737, allocations: 183.8 kB / 18.04 MB, free: 3.66 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.267/1.267, allocations: 205.4 MB / 224.2 MB, free: 9.02 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007332/0.0007329, allocations: 93.03 kB / 272.5 MB, free: 8.254 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002975/0.0002976, allocations: 8 kB / 329.5 MB, free: 15.26 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2039/0.2042, allocations: 47.58 MB / 377 MB, free: 45.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1168/0.3211, allocations: 110.4 MB / 487.4 MB, free: 2.078 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002575/0.3214, allocations: 87.95 kB / 487.5 MB, free: 1.992 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2788/0.6002, allocations: 54.91 MB / 0.5297 GB, free: 88.96 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.223e-06/0.6003, allocations: 0 / 0.5297 GB, free: 88.96 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.000224/0.6005, allocations: 75.81 kB / 0.5298 GB, free: 88.89 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.00638/0.6069, allocations: 2.931 MB / 0.5327 GB, free: 85.89 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.546e-05/0.6069, allocations: 12.03 kB / 0.5327 GB, free: 85.88 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001145/0.6081, allocations: 360.9 kB / 0.533 GB, free: 85.52 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003755/0.6119, allocations: 2.011 MB / 0.535 GB, free: 83.45 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000119/0.612, allocations: 185.4 kB / 0.5352 GB, free: 83.27 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005276/0.6125, allocations: 256.3 kB / 0.5354 GB, free: 83.02 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005489/0.618, allocations: 3.403 MB / 0.5387 GB, free: 79.44 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.548e-05/0.6181, allocations: 12.11 kB / 0.5387 GB, free: 79.43 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003103/0.6185, allocations: 107.9 kB / 0.5388 GB, free: 79.32 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.871e-05/0.6186, allocations: 112.8 kB / 0.5389 GB, free: 79.21 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004565/0.6231, allocations: 2.779 MB / 0.5417 GB, free: 76.42 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0152/0.6384, allocations: 10.92 MB / 0.5523 GB, free: 65.2 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00251/0.6409, allocations: 2.476 MB / 0.5547 GB, free: 62.56 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00134/0.6423, allocations: 1.089 MB / 0.5558 GB, free: 61.48 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002642/0.6426, allocations: 142.3 kB / 0.5559 GB, free: 61.32 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.78e-05/0.6426, allocations: 47.88 kB / 0.556 GB, free: 61.27 MB / 378.7 MB Notification: Performance of pre-optimization done (n=136): time 4.949e-06/0.6426, allocations: 3.984 kB / 0.556 GB, free: 61.26 MB / 378.7 MB Notification: Performance of matching and sorting (n=150): time 0.0142/0.6568, allocations: 7.313 MB / 0.5631 GB, free: 53.82 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.749e-05/0.6569, allocations: 90.42 kB / 0.5632 GB, free: 53.71 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002817/0.6597, allocations: 1.792 MB / 0.565 GB, free: 51.92 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002231/0.66, allocations: 53.7 kB / 0.565 GB, free: 51.86 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000658/0.6606, allocations: 1.218 MB / 0.5662 GB, free: 50.63 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004166/0.6611, allocations: 0.4968 MB / 0.5667 GB, free: 50.12 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001167/0.6612, allocations: 32 kB / 0.5667 GB, free: 50.09 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001066/0.6613, allocations: 389.7 kB / 0.5671 GB, free: 49.71 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001223/0.6625, allocations: 0.8472 MB / 0.5679 GB, free: 48.86 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001384/0.6639, allocations: 1.317 MB / 0.5692 GB, free: 47.35 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00259/0.6665, allocations: 2.256 MB / 0.5714 GB, free: 44.91 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.178e-05/0.6666, allocations: 7.938 kB / 0.5714 GB, free: 44.9 MB / 378.7 MB Notification: Performance of matching and sorting (n=220) (initialization): time 0.004643/0.6712, allocations: 2.86 MB / 0.5742 GB, free: 42.02 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002818/0.6715, allocations: 0.4901 MB / 0.5747 GB, free: 41.33 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.781e-05/0.6716, allocations: 16 kB / 0.5747 GB, free: 41.32 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001494/0.6731, allocations: 0.6645 MB / 0.5754 GB, free: 40.64 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001253/0.6743, allocations: 367.4 kB / 0.5757 GB, free: 40.28 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00718/0.6815, allocations: 8.294 MB / 0.5838 GB, free: 31.58 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001622/0.6832, allocations: 115.8 kB / 0.5839 GB, free: 31.46 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002271/0.6834, allocations: 68.12 kB / 0.584 GB, free: 31.4 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.787e-06/0.6834, allocations: 8.062 kB / 0.584 GB, free: 31.39 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003997/0.6874, allocations: 2.642 MB / 0.5866 GB, free: 28.73 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.712e-05/0.6875, allocations: 16 kB / 0.5866 GB, free: 28.72 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001356/0.6889, allocations: 0.6712 MB / 0.5872 GB, free: 28.04 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001255/0.6901, allocations: 359.4 kB / 0.5876 GB, free: 27.68 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007099/0.6973, allocations: 8.295 MB / 0.5957 GB, free: 18.98 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001585/0.6989, allocations: 107.9 kB / 0.5958 GB, free: 18.88 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002712/0.6992, allocations: 71.98 kB / 0.5959 GB, free: 18.81 MB / 378.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.001602/0.7008, allocations: 0.9337 MB / 0.5968 GB, free: 17.86 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005067/0.7013, allocations: 205.6 kB / 0.597 GB, free: 17.66 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004246/0.7056, allocations: 2.578 MB / 0.5995 GB, free: 15.05 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.235e-05/0.7056, allocations: 12 kB / 0.5995 GB, free: 15.04 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.755e-06/0.7056, allocations: 4 kB / 0.5995 GB, free: 15.04 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.225e-05/0.7056, allocations: 7.969 kB / 0.5995 GB, free: 15.03 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008465/0.7141, allocations: 5.407 MB / 0.6048 GB, free: 9.52 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.985e-06/0.7141, allocations: 3.938 kB / 0.6048 GB, free: 9.516 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009393/0.7151, allocations: 235.7 kB / 0.605 GB, free: 9.285 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00152/0.7166, allocations: 0.6983 MB / 0.6057 GB, free: 8.574 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001259/0.7168, allocations: 35.98 kB / 0.6057 GB, free: 8.539 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008656/0.7254, allocations: 9.795 MB / 0.6153 GB, free: 14.21 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/0.7255, allocations: 4.094 kB / 0.6153 GB, free: 14.2 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006519/0.732, allocations: 3.797 MB / 0.619 GB, free: 10.34 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00126/0.7333, allocations: 470.5 kB / 0.6195 GB, free: 9.863 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005482/0.7339, allocations: 36.09 kB / 0.6195 GB, free: 9.828 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001476/0.7354, allocations: 103.8 kB / 0.6196 GB, free: 9.727 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004124/0.7358, allocations: 121 kB / 0.6197 GB, free: 9.609 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001378/0.7359, allocations: 47.98 kB / 0.6197 GB, free: 9.562 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002869/0.7388, allocations: 1.225 MB / 0.6209 GB, free: 8.348 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.41e-07/0.7388, allocations: 0 / 0.6209 GB, free: 8.348 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.004814/0.7437, allocations: 1.047 MB / 0.622 GB, free: 7.301 MB / 394.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.0007739/0.7445, allocations: 403.4 kB / 0.6223 GB, free: 6.906 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.007163/0.7516, allocations: 4.541 MB / 0.6268 GB, free: 2.25 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 7.785e-06/0.7517, allocations: 0 / 0.6268 GB, free: 2.25 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002473/0.7542, allocations: 1.736 MB / 0.6285 GB, free: 476 kB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003623/0.7578, allocations: 0.5886 MB / 0.6291 GB, free: 15.88 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01184/0.7697, allocations: 6.865 MB / 0.6358 GB, free: 8.945 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00266/0.7723, allocations: 2.107 MB / 0.6378 GB, free: 6.805 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.00227/0.7746, allocations: 0.595 MB / 0.6384 GB, free: 6.207 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005061/0.7752, allocations: 131.4 kB / 0.6385 GB, free: 6.078 MB / 410.7 MB Notification: Performance of SimCode: time 6.61e-07/0.7752, allocations: 0 / 0.6385 GB, free: 6.078 MB / 410.7 MB Notification: Performance of Templates: time 0.2353/1.011, allocations: 42.04 MB / 0.6796 GB, free: 99.94 MB / 410.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/SynchronousInductionMachines/SMPM_Braking/SMPM_Braking.csv","../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches