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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009478/0.0009477, allocations: 98.48 kB / 16.3 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009833/0.0009833, allocations: 182.3 kB / 17.19 MB, free: 5.531 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.463/1.463, allocations: 223.2 MB / 241.1 MB, free: 5.199 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002632/0.0002633, allocations: 12.59 kB / 300.7 MB, free: 5.441 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1055/0.1058, allocations: 50.42 MB / 351.1 MB, free: 11.38 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking): time 0.0105/0.1163, allocations: 9.286 MB / 360.4 MB, free: 2.062 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.007558/0.1239, allocations: 3.617 MB / 364 MB, free: 14.43 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002178/0.1261, allocations: 59.69 kB / 364.1 MB, free: 14.38 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0026/0.1288, allocations: 0.6802 MB / 364.8 MB, free: 13.69 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003646/0.1324, allocations: 0.8529 MB / 365.6 MB, free: 12.84 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001503/0.134, allocations: 315.6 kB / 365.9 MB, free: 12.53 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004445/0.1384, allocations: 2.141 MB / 368.1 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003195/0.1416, allocations: 1.739 MB / 369.8 MB, free: 8.605 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002049/0.1437, allocations: 1.012 MB / 370.8 MB, free: 7.59 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002427/0.1462, allocations: 1.264 MB / 372.1 MB, free: 6.32 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007679/0.1469, allocations: 163.9 kB / 372.3 MB, free: 6.16 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001171/0.1481, allocations: 223.9 kB / 372.5 MB, free: 5.941 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001208/0.1494, allocations: 0.7672 MB / 373.2 MB, free: 5.172 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009006/0.1503, allocations: 0.6017 MB / 373.9 MB, free: 4.562 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003693/0.154, allocations: 4.055 MB / 377.9 MB, free: 0.4961 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.976e-06/0.154, allocations: 3.938 kB / 377.9 MB, free: 0.4922 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.154, allocations: 0 / 377.9 MB, free: 0.4922 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.757e-05/0.1541, allocations: 0 / 377.9 MB, free: 0.4922 MB / 302.1 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.005634/0.1597, allocations: 2.95 MB / 380.9 MB, free: 13.48 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.787e-05/0.1598, allocations: 11.97 kB / 380.9 MB, free: 13.46 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008051/0.1606, allocations: 344 kB / 381.2 MB, free: 13.12 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00331/0.1639, allocations: 1.808 MB / 383 MB, free: 11.26 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001376/0.1641, allocations: 185 kB / 383.2 MB, free: 11.08 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000342/0.1644, allocations: 255.9 kB / 383.4 MB, free: 10.83 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005298/0.1697, allocations: 3.39 MB / 386.8 MB, free: 7.332 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.539e-05/0.1698, allocations: 8 kB / 386.8 MB, free: 7.324 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002106/0.17, allocations: 96 kB / 386.9 MB, free: 7.23 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00011/0.1701, allocations: 124.8 kB / 387.1 MB, free: 7.105 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004626/0.1748, allocations: 2.919 MB / 390 MB, free: 4.172 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01612/0.1909, allocations: 10.86 MB / 400.8 MB, free: 9.012 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002708/0.1936, allocations: 2.429 MB / 403.3 MB, free: 6.422 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002386/0.1939, allocations: 126.4 kB / 403.4 MB, free: 6.281 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.605e-05/0.1939, allocations: 47.88 kB / 403.4 MB, free: 6.227 MB / 334.1 MB Notification: Performance of pre-optimization done (n=133): time 2.946e-06/0.194, allocations: 0 / 403.4 MB, free: 6.227 MB / 334.1 MB Notification: Performance of matching and sorting (n=147): time 0.0145/0.2085, allocations: 7.273 MB / 410.7 MB, free: 14.83 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.636e-05/0.2086, allocations: 94.42 kB / 410.8 MB, free: 14.71 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002353/0.2109, allocations: 1.772 MB / 412.6 MB, free: 12.95 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001256/0.2111, allocations: 49.7 kB / 412.6 MB, free: 12.89 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007767/0.2118, allocations: 1.222 MB / 413.9 MB, free: 11.65 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003589/0.2122, allocations: 0.4891 MB / 414.3 MB, free: 11.16 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.619e-05/0.2123, allocations: 36 kB / 414.4 MB, free: 11.12 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001382/0.2124, allocations: 369.9 kB / 414.7 MB, free: 10.75 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001198/0.2136, allocations: 0.8472 MB / 415.6 MB, free: 9.906 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001444/0.2151, allocations: 1.31 MB / 416.9 MB, free: 8.398 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001428/0.2165, allocations: 1.029 MB / 417.9 MB, free: 7.371 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.743e-06/0.2166, allocations: 4 kB / 417.9 MB, free: 7.367 MB / 350.1 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.004194/0.2208, allocations: 2.849 MB / 420.8 MB, free: 4.496 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.1977/0.4185, allocations: 5.664 MB / 426.4 MB, free: 60.22 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.546e-05/0.4186, allocations: 16.75 kB / 426.5 MB, free: 60.22 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001708/0.4203, allocations: 0.6641 MB / 427.1 MB, free: 60.19 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001443/0.4218, allocations: 361.8 kB / 427.5 MB, free: 60.19 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008843/0.4306, allocations: 8.501 MB / 436 MB, free: 56.27 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001927/0.4326, allocations: 113.9 kB / 436.1 MB, free: 56.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001951/0.4328, allocations: 72.75 kB / 436.2 MB, free: 56.27 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.319e-05/0.4328, allocations: 2.469 kB / 436.2 MB, free: 56.27 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004802/0.4376, allocations: 2.629 MB / 438.8 MB, free: 56.13 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.217e-05/0.4377, allocations: 13.97 kB / 438.8 MB, free: 56.13 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001709/0.4394, allocations: 0.6727 MB / 439.5 MB, free: 56.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001444/0.4409, allocations: 355.6 kB / 439.8 MB, free: 56.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008952/0.4498, allocations: 8.516 MB / 448.3 MB, free: 50.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001785/0.4517, allocations: 107.4 kB / 448.4 MB, free: 50.65 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001995/0.4519, allocations: 70.56 kB / 448.5 MB, free: 50.64 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 63 * 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 (181): * Single equations (assignments): 177 * 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.001726/0.4536, allocations: 0.9269 MB / 449.4 MB, free: 50.11 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005215/0.4541, allocations: 201.5 kB / 449.6 MB, free: 50.1 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004122/0.4583, allocations: 2.583 MB / 452.2 MB, free: 48.9 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.104e-05/0.4583, allocations: 14.66 kB / 452.2 MB, free: 48.9 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.574e-06/0.4583, allocations: 6.688 kB / 452.2 MB, free: 48.9 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.307e-05/0.4584, allocations: 7.969 kB / 452.2 MB, free: 48.89 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007923/0.4663, allocations: 5.402 MB / 457.6 MB, free: 45.24 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.825e-06/0.4663, allocations: 3.719 kB / 457.7 MB, free: 45.24 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008778/0.4672, allocations: 215.7 kB / 457.9 MB, free: 45.03 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00146/0.4687, allocations: 0.6909 MB / 458.6 MB, free: 44.32 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.141e-05/0.4688, allocations: 32 kB / 458.6 MB, free: 44.29 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008092/0.4769, allocations: 9.992 MB / 468.6 MB, free: 33.83 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/0.4769, allocations: 4 kB / 468.6 MB, free: 33.83 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00483/0.4818, allocations: 3.917 MB / 472.5 MB, free: 29.8 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001179/0.483, allocations: 462.5 kB / 473 MB, free: 29.33 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002726/0.4833, allocations: 35.98 kB / 473 MB, free: 29.3 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008937/0.4842, allocations: 95.89 kB / 473.1 MB, free: 29.2 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002794/0.4844, allocations: 121.3 kB / 473.2 MB, free: 29.09 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.708e-05/0.4845, allocations: 36 kB / 473.2 MB, free: 29.05 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001528/0.4861, allocations: 1.209 MB / 474.4 MB, free: 27.85 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4861, allocations: 0 / 474.4 MB, free: 27.85 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.003135/0.4892, allocations: 0.9883 MB / 475.4 MB, free: 26.86 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 5 (smpm.inertiaRotor.w,smpm.i_0_s,smpm.idq_sr[1],smpm.idq_sr[2],inertiaLoad.phi) * 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 (110): * Single equations (assignments): 106 * 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.0003585/0.4896, allocations: 176.2 kB / 475.6 MB, free: 26.69 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.005546/0.4951, allocations: 4.489 MB / 480.1 MB, free: 22.08 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 7.484e-06/0.4952, allocations: 0 / 480.1 MB, free: 22.08 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001994/0.4972, allocations: 1.741 MB / 481.8 MB, free: 20.3 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002734/0.4999, allocations: 0.5804 MB / 482.4 MB, free: 19.73 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00885/0.5088, allocations: 6.446 MB / 488.9 MB, free: 13.24 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001624/0.5105, allocations: 2.149 MB / 491 MB, free: 11.05 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001998/0.5125, allocations: 0.5872 MB / 491.6 MB, free: 10.46 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003307/0.5128, allocations: 131.4 kB / 491.7 MB, free: 10.34 MB / 350.1 MB Notification: Performance of SimCode: time 1.012e-06/0.5128, allocations: 0 / 491.7 MB, free: 10.34 MB / 350.1 MB Notification: Performance of Templates: time 0.06581/0.5786, allocations: 37.76 MB / 0.5171 GB, free: 4.844 MB / 382.1 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