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.000953/0.0009531, allocations: 177.7 kB / 8.698 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.456/1.456, allocations: 205.3 MB / 214.4 MB, free: 1.734 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008166/0.0008166, allocations: 86.23 kB / 262.4 MB, free: 1.691 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.504e-05/1.508e-05, allocations: 4 kB / 315.5 MB, free: 22.72 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0854/0.08543, allocations: 47.58 MB / 363.1 MB, free: 7.078 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3186/0.4041, allocations: 109.7 MB / 472.7 MB, free: 2.422 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002186/0.4044, allocations: 85.95 kB / 472.8 MB, free: 2.379 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1387/0.543, allocations: 54.27 MB / 0.5147 GB, free: 1.289 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.322e-06/0.5431, allocations: 0 / 0.5147 GB, free: 1.289 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.000285/0.5434, allocations: 71.94 kB / 0.5148 GB, free: 1.219 MB / 394.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.006513/0.5499, allocations: 2.633 MB / 0.5174 GB, free: 14.52 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.882e-05/0.55, allocations: 11.97 kB / 0.5174 GB, free: 14.51 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001044/0.551, allocations: 356 kB / 0.5177 GB, free: 14.16 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003453/0.5545, allocations: 1.937 MB / 0.5196 GB, free: 12.16 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.595e-05/0.5546, allocations: 91.77 kB / 0.5197 GB, free: 12.08 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003178/0.5549, allocations: 147.9 kB / 0.5199 GB, free: 11.93 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004303/0.5592, allocations: 2.56 MB / 0.5224 GB, free: 9.367 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004747/0.564, allocations: 2.964 MB / 0.5253 GB, free: 6.234 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.987e-05/0.564, allocations: 7.906 kB / 0.5253 GB, free: 6.227 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001858/0.5642, allocations: 4 kB / 0.5253 GB, free: 6.223 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001131/0.5644, allocations: 116.8 kB / 0.5254 GB, free: 6.105 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1982/0.7626, allocations: 10.41 MB / 0.5355 GB, free: 95.88 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00243/0.7651, allocations: 2.353 MB / 0.5378 GB, free: 95 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001294/0.7664, allocations: 1.005 MB / 0.5388 GB, free: 94.98 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002888/0.7667, allocations: 141.9 kB / 0.539 GB, free: 94.89 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.812e-05/0.7667, allocations: 48.03 kB / 0.539 GB, free: 94.85 MB / 410.7 MB Notification: Performance of pre-optimization done (n=136): time 4.478e-06/0.7668, allocations: 0 / 0.539 GB, free: 94.85 MB / 410.7 MB Notification: Performance of matching and sorting (n=150): time 0.00923/0.776, allocations: 4.949 MB / 0.5438 GB, free: 94.17 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.566e-05/0.7761, allocations: 93.28 kB / 0.5439 GB, free: 94.07 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002385/0.7785, allocations: 1.322 MB / 0.5452 GB, free: 93.91 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001137/0.7786, allocations: 26.8 kB / 0.5452 GB, free: 93.88 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008221/0.7794, allocations: 1.22 MB / 0.5464 GB, free: 93.46 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003905/0.7798, allocations: 498.4 kB / 0.5469 GB, free: 93.2 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.197e-05/0.7799, allocations: 0 / 0.5469 GB, free: 93.2 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001152/0.78, allocations: 371.1 kB / 0.5473 GB, free: 92.9 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001088/0.7811, allocations: 0.7904 MB / 0.548 GB, free: 92.89 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00126/0.7824, allocations: 1.238 MB / 0.5492 GB, free: 92.39 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001336/0.7838, allocations: 0.9725 MB / 0.5502 GB, free: 92.37 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.034e-05/0.7838, allocations: 3.938 kB / 0.5502 GB, free: 92.37 MB / 410.7 MB Notification: Performance of matching and sorting (n=220) (initialization): time 0.003756/0.7875, allocations: 2.607 MB / 0.5527 GB, free: 92.18 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000967/0.7885, allocations: 5.54 MB / 0.5582 GB, free: 86.32 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.095e-05/0.7885, allocations: 13.78 kB / 0.5582 GB, free: 86.32 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001311/0.7899, allocations: 0.6546 MB / 0.5588 GB, free: 86.29 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001264/0.7911, allocations: 371.3 kB / 0.5592 GB, free: 86.29 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006529/0.7977, allocations: 7.949 MB / 0.5669 GB, free: 82.46 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001837/0.7996, allocations: 80.81 kB / 0.567 GB, free: 82.46 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001317/0.7997, allocations: 64.59 kB / 0.5671 GB, free: 82.46 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.205e-06/0.7997, allocations: 8.5 kB / 0.5671 GB, free: 82.46 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003279/0.803, allocations: 2.389 MB / 0.5694 GB, free: 82.13 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.909e-05/0.803, allocations: 16.95 kB / 0.5694 GB, free: 82.13 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001194/0.8042, allocations: 0.6581 MB / 0.5701 GB, free: 81.92 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001155/0.8054, allocations: 370.2 kB / 0.5704 GB, free: 81.91 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006299/0.8117, allocations: 7.939 MB / 0.5782 GB, free: 76.43 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001525/0.8133, allocations: 64.3 kB / 0.5782 GB, free: 76.43 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001196/0.8134, allocations: 76.11 kB / 0.5783 GB, free: 76.41 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 () * 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.0004052/0.8138, allocations: 159.3 kB / 0.5785 GB, free: 76.29 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003186/0.8141, allocations: 186.6 kB / 0.5786 GB, free: 76.2 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003565/0.8177, allocations: 2.424 MB / 0.581 GB, free: 75.28 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.043e-05/0.8177, allocations: 11.56 kB / 0.581 GB, free: 75.28 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.674e-06/0.8178, allocations: 3.844 kB / 0.581 GB, free: 75.28 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.409e-05/0.8178, allocations: 11.64 kB / 0.581 GB, free: 75.28 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007313/0.8251, allocations: 4.889 MB / 0.5858 GB, free: 73.34 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.155e-06/0.8251, allocations: 3.906 kB / 0.5858 GB, free: 73.34 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009148/0.8261, allocations: 232.9 kB / 0.586 GB, free: 73.33 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00141/0.8275, allocations: 0.6893 MB / 0.5867 GB, free: 73.11 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.765e-05/0.8276, allocations: 15.59 kB / 0.5867 GB, free: 73.11 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007397/0.835, allocations: 9.398 MB / 0.5959 GB, free: 66.31 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.282e-06/0.835, allocations: 7.703 kB / 0.5959 GB, free: 66.3 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004379/0.8394, allocations: 3.72 MB / 0.5995 GB, free: 64.57 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008866/0.8403, allocations: 452.3 kB / 0.6 GB, free: 64.29 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002323/0.8406, allocations: 7.641 kB / 0.6 GB, free: 64.29 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009089/0.8415, allocations: 81.16 kB / 0.6 GB, free: 64.29 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002411/0.8417, allocations: 116.7 kB / 0.6002 GB, free: 64.27 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.527e-05/0.8418, allocations: 43.17 kB / 0.6002 GB, free: 64.25 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001256/0.8431, allocations: 0.9959 MB / 0.6012 GB, free: 63.84 MB / 410.7 MB Notification: Performance of sort global known variables: time 2e-07/0.8431, allocations: 0 / 0.6012 GB, free: 63.84 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002824/0.8459, allocations: 0.9143 MB / 0.6021 GB, free: 63.83 MB / 410.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.0005379/0.8465, allocations: 388.7 kB / 0.6024 GB, free: 63.69 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004795/0.8513, allocations: 4.278 MB / 0.6066 GB, free: 61.51 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.907e-06/0.8513, allocations: 0 / 0.6066 GB, free: 61.51 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001641/0.8529, allocations: 1.632 MB / 0.6082 GB, free: 60.62 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002197/0.8552, allocations: 493 kB / 0.6087 GB, free: 60.5 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007384/0.8626, allocations: 4.718 MB / 0.6133 GB, free: 57.98 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00139/0.864, allocations: 2.149 MB / 0.6154 GB, free: 56.27 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.002251/0.8662, allocations: 0.82 MB / 0.6162 GB, free: 55.75 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002476/0.8665, allocations: 98.72 kB / 0.6163 GB, free: 55.66 MB / 410.7 MB Notification: Performance of SimCode: time 6.91e-07/0.8665, allocations: 0 / 0.6163 GB, free: 55.66 MB / 410.7 MB Notification: Performance of Templates: time 0.04892/0.9154, allocations: 36.71 MB / 0.6521 GB, free: 26.78 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/jenkins/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