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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.0009016/0.0009017, allocations: 94.92 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009921/0.0009922, allocations: 204.3 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.389/1.389, allocations: 227.2 MB / 245.9 MB, free: 12.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002247/0.0002248, allocations: 7.984 kB / 306.6 MB, free: 1.652 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1098/0.11, allocations: 51.48 MB / 358.1 MB, free: 14.16 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking): time 0.01047/0.1205, allocations: 9.325 MB / 367.4 MB, free: 4.805 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00762/0.1282, allocations: 3.668 MB / 371.1 MB, free: 1.125 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001661/0.1299, allocations: 59.69 kB / 371.1 MB, free: 1.066 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001805/0.1317, allocations: 0.688 MB / 371.8 MB, free: 384 kB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.1944/0.3261, allocations: 0.8502 MB / 372.7 MB, free: 9.77 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001243/0.3274, allocations: 328.7 kB / 373 MB, free: 9.766 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004507/0.3319, allocations: 2.144 MB / 375.1 MB, free: 9.762 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002478/0.3344, allocations: 1.741 MB / 376.9 MB, free: 9.453 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002053/0.3364, allocations: 1.019 MB / 377.9 MB, free: 9.453 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002254/0.3387, allocations: 1.264 MB / 379.1 MB, free: 9.449 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004572/0.3392, allocations: 157.5 kB / 379.3 MB, free: 9.449 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009781/0.3402, allocations: 231.7 kB / 379.5 MB, free: 9.449 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008808/0.3411, allocations: 0.7624 MB / 380.3 MB, free: 9.43 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009202/0.342, allocations: 0.6072 MB / 380.9 MB, free: 9.301 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004624/0.3466, allocations: 4.066 MB / 385 MB, free: 8.547 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.976e-06/0.3466, allocations: 0 / 385 MB, free: 8.547 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.016e-06/0.3467, allocations: 0 / 385 MB, free: 8.547 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001572/0.3468, allocations: 3.391 kB / 385 MB, free: 8.547 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.007658/0.3545, allocations: 2.965 MB / 387.9 MB, free: 6.781 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.312e-05/0.3545, allocations: 10.25 kB / 387.9 MB, free: 6.781 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001679/0.3562, allocations: 351.5 kB / 388.3 MB, free: 6.609 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004057/0.3603, allocations: 1.805 MB / 390.1 MB, free: 5.824 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000169/0.3605, allocations: 186.1 kB / 390.3 MB, free: 5.816 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005987/0.3611, allocations: 256.8 kB / 390.5 MB, free: 5.809 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00575/0.3668, allocations: 3.38 MB / 393.9 MB, free: 4.887 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.862e-05/0.3669, allocations: 7.188 kB / 393.9 MB, free: 4.883 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002497/0.3672, allocations: 106.5 kB / 394 MB, free: 4.883 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001352/0.3673, allocations: 123.2 kB / 394.1 MB, free: 4.863 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005668/0.373, allocations: 2.917 MB / 397 MB, free: 3.492 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01881/0.3918, allocations: 10.88 MB / 407.9 MB, free: 9.547 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002947/0.3948, allocations: 2.422 MB / 410.3 MB, free: 6.973 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002596/0.3951, allocations: 126.4 kB / 410.5 MB, free: 6.832 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.828e-05/0.3952, allocations: 47.88 kB / 410.5 MB, free: 6.777 MB / 318.1 MB Notification: Performance of pre-optimization done (n=133): time 3.627e-06/0.3952, allocations: 0 / 410.5 MB, free: 6.777 MB / 318.1 MB Notification: Performance of matching and sorting (n=147): time 0.01564/0.4108, allocations: 7.278 MB / 417.8 MB, free: 15.38 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.617e-05/0.4109, allocations: 94.41 kB / 417.9 MB, free: 15.27 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002697/0.4136, allocations: 1.773 MB / 419.7 MB, free: 13.5 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001948/0.4138, allocations: 49.7 kB / 419.7 MB, free: 13.44 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008342/0.4147, allocations: 1.221 MB / 420.9 MB, free: 12.21 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004323/0.4151, allocations: 0.4916 MB / 421.4 MB, free: 11.72 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.41e-05/0.4152, allocations: 39.94 kB / 421.5 MB, free: 11.68 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001462/0.4154, allocations: 373.9 kB / 421.8 MB, free: 11.31 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00133/0.4167, allocations: 0.8432 MB / 422.7 MB, free: 10.47 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001549/0.4183, allocations: 1.306 MB / 424 MB, free: 8.965 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001503/0.4198, allocations: 1.03 MB / 425 MB, free: 7.938 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.616e-06/0.4198, allocations: 4 kB / 425 MB, free: 7.934 MB / 334.1 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.004772/0.4246, allocations: 2.852 MB / 427.9 MB, free: 5.059 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.002214/0.4268, allocations: 5.675 MB / 433.5 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.761e-05/0.4269, allocations: 16 kB / 433.6 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001592/0.4284, allocations: 0.6619 MB / 434.2 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001455/0.4299, allocations: 363.4 kB / 434.6 MB, free: 13.85 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009744/0.4397, allocations: 8.505 MB / 443.1 MB, free: 4.953 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002145/0.4419, allocations: 115.9 kB / 443.2 MB, free: 4.84 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001782/0.4421, allocations: 71.94 kB / 443.3 MB, free: 4.77 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.012e-05/0.4421, allocations: 4 kB / 443.3 MB, free: 4.766 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004288/0.4464, allocations: 2.623 MB / 445.9 MB, free: 2.129 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.751e-05/0.4464, allocations: 12 kB / 445.9 MB, free: 2.117 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001492/0.4479, allocations: 0.6813 MB / 446.6 MB, free: 1.426 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001392/0.4493, allocations: 347.5 kB / 446.9 MB, free: 1.086 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01043/0.4598, allocations: 8.527 MB / 455.4 MB, free: 8.172 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00251/0.4623, allocations: 99.81 kB / 455.5 MB, free: 8.074 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003834/0.4627, allocations: 81.69 kB / 455.6 MB, free: 7.996 MB / 366.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.002446/0.4652, allocations: 0.9222 MB / 456.5 MB, free: 7.062 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007056/0.4659, allocations: 201.5 kB / 456.7 MB, free: 6.863 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005274/0.4712, allocations: 2.567 MB / 459.3 MB, free: 4.266 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.909e-05/0.4712, allocations: 20 kB / 459.3 MB, free: 4.246 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.701e-05/0.4713, allocations: 7.938 kB / 459.3 MB, free: 4.238 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.788e-05/0.4713, allocations: 3.984 kB / 459.3 MB, free: 4.234 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01171/0.483, allocations: 5.394 MB / 464.7 MB, free: 14.77 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.649e-05/0.4831, allocations: 7.953 kB / 464.7 MB, free: 14.77 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001036/0.4841, allocations: 228 kB / 465 MB, free: 14.54 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001971/0.4861, allocations: 0.6845 MB / 465.6 MB, free: 13.85 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003438/0.4864, allocations: 43.86 kB / 465.7 MB, free: 13.8 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01288/0.4993, allocations: 9.987 MB / 475.7 MB, free: 3.293 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.623e-06/0.4994, allocations: 8.094 kB / 475.7 MB, free: 3.285 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007024/0.5064, allocations: 3.902 MB / 479.6 MB, free: 15.28 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001621/0.5081, allocations: 466.5 kB / 480 MB, free: 14.8 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004827/0.5086, allocations: 32 kB / 480.1 MB, free: 14.77 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001085/0.5096, allocations: 99.84 kB / 480.2 MB, free: 14.67 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003239/0.51, allocations: 117.1 kB / 480.3 MB, free: 14.55 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001033/0.5101, allocations: 39.98 kB / 480.3 MB, free: 14.52 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002271/0.5124, allocations: 1.209 MB / 481.5 MB, free: 13.32 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5124, allocations: 0 / 481.5 MB, free: 13.32 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.004086/0.5165, allocations: 0.9922 MB / 482.5 MB, free: 12.32 MB / 398.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.0004368/0.5169, allocations: 158.5 kB / 482.7 MB, free: 12.16 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.007838/0.5248, allocations: 4.505 MB / 487.2 MB, free: 7.547 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.192e-05/0.5248, allocations: 8 kB / 487.2 MB, free: 7.539 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002807/0.5276, allocations: 1.728 MB / 488.9 MB, free: 5.762 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003418/0.5311, allocations: 0.5842 MB / 489.5 MB, free: 5.191 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01166/0.5428, allocations: 6.462 MB / 496 MB, free: 14.68 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002125/0.5449, allocations: 2.142 MB / 498.1 MB, free: 12.5 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.002144/0.5471, allocations: 0.5911 MB / 498.7 MB, free: 11.91 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003964/0.5475, allocations: 131.4 kB / 498.8 MB, free: 11.78 MB / 414.1 MB Notification: Performance of SimCode: time 1.182e-06/0.5475, allocations: 0 / 498.8 MB, free: 11.78 MB / 414.1 MB Notification: Performance of Templates: time 0.06523/0.6128, allocations: 37.85 MB / 0.5241 GB, free: 6.219 MB / 446.1 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