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.001081/0.001081, allocations: 88.16 kB / 16.31 MB, free: 5.629 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.001381/0.001381, allocations: 181.3 kB / 17.21 MB, free: 5.547 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.53/1.53, allocations: 223.2 MB / 241.2 MB, free: 336 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003048/0.0003048, allocations: 4 kB / 300.8 MB, free: 6.453 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1236/0.1239, allocations: 50.41 MB / 351.2 MB, free: 4.023 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking): time 0.01006/0.134, allocations: 10.16 MB / 361.4 MB, free: 9.824 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006837/0.1409, allocations: 3.499 MB / 364.9 MB, free: 6.316 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001645/0.1426, allocations: 59.75 kB / 365 MB, free: 6.258 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001658/0.1442, allocations: 0.6523 MB / 365.6 MB, free: 5.602 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002542/0.1468, allocations: 0.7884 MB / 366.4 MB, free: 4.809 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001063/0.1479, allocations: 323.5 kB / 366.7 MB, free: 4.492 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004137/0.152, allocations: 3.393 MB / 370.1 MB, free: 1.09 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2961/0.4481, allocations: 1.734 MB / 371.8 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00317/0.4514, allocations: 1.098 MB / 372.9 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003267/0.4547, allocations: 1.46 MB / 374.4 MB, free: 10.19 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006657/0.4554, allocations: 163 kB / 374.6 MB, free: 10.19 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001123/0.4565, allocations: 226.6 kB / 374.8 MB, free: 10.19 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001233/0.4577, allocations: 0.8114 MB / 375.6 MB, free: 10.19 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009313/0.4587, allocations: 0.6043 MB / 376.2 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006138/0.4648, allocations: 4.111 MB / 380.3 MB, free: 9.934 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.325e-06/0.4649, allocations: 0 / 380.3 MB, free: 9.934 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.206e-06/0.4649, allocations: 0 / 380.3 MB, free: 9.934 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002629/0.4651, allocations: 0 / 380.3 MB, free: 9.934 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.01027/0.4754, allocations: 2.971 MB / 383.3 MB, free: 8.355 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.531e-05/0.4755, allocations: 8.688 kB / 383.3 MB, free: 8.355 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001749/0.4772, allocations: 348.9 kB / 383.6 MB, free: 8.184 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004509/0.4818, allocations: 1.779 MB / 385.4 MB, free: 7.484 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001969/0.482, allocations: 185.6 kB / 385.6 MB, free: 7.477 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006447/0.4826, allocations: 250.8 kB / 385.8 MB, free: 7.473 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008802/0.4914, allocations: 3.412 MB / 389.2 MB, free: 6.551 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.899e-05/0.4916, allocations: 10.34 kB / 389.3 MB, free: 6.547 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002839/0.4919, allocations: 102.4 kB / 389.4 MB, free: 6.547 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001329/0.492, allocations: 126.2 kB / 389.5 MB, free: 6.527 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00647/0.4985, allocations: 2.916 MB / 392.4 MB, free: 6.043 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01903/0.5175, allocations: 10.92 MB / 403.3 MB, free: 14.73 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002972/0.5206, allocations: 2.426 MB / 405.7 MB, free: 12.21 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001832/0.5224, allocations: 1.194 MB / 406.9 MB, free: 11.02 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002939/0.5227, allocations: 128.7 kB / 407.1 MB, free: 10.88 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.676e-05/0.5228, allocations: 47.88 kB / 407.1 MB, free: 10.82 MB / 318.1 MB Notification: Performance of pre-optimization done (n=133): time 5.19e-06/0.5228, allocations: 0 / 407.1 MB, free: 10.82 MB / 318.1 MB Notification: Performance of matching and sorting (n=147): time 0.0159/0.5387, allocations: 7.26 MB / 414.4 MB, free: 3.469 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.229e-05/0.5388, allocations: 98.42 kB / 414.5 MB, free: 3.352 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003033/0.5419, allocations: 1.819 MB / 416.3 MB, free: 1.535 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001232/0.542, allocations: 53.7 kB / 416.3 MB, free: 1.477 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009243/0.543, allocations: 1.211 MB / 417.5 MB, free: 260 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000471/0.5434, allocations: 0.4978 MB / 418 MB, free: 15.76 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.3e-05/0.5435, allocations: 31.47 kB / 418.1 MB, free: 15.73 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001855/0.5437, allocations: 373.9 kB / 418.4 MB, free: 15.36 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001298/0.545, allocations: 0.851 MB / 419.3 MB, free: 14.51 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001655/0.5467, allocations: 1.31 MB / 420.6 MB, free: 13.01 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001545/0.5483, allocations: 1.025 MB / 421.6 MB, free: 12 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.244e-06/0.5483, allocations: 4 kB / 421.6 MB, free: 11.99 MB / 334.1 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.004827/0.5531, allocations: 2.849 MB / 424.5 MB, free: 9.215 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005438/0.5537, allocations: 0.5072 MB / 425 MB, free: 8.523 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.794e-05/0.5537, allocations: 16 kB / 425 MB, free: 8.508 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001622/0.5553, allocations: 0.6664 MB / 425.7 MB, free: 7.832 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001272/0.5566, allocations: 364.2 kB / 426 MB, free: 7.5 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01024/0.5669, allocations: 8.289 MB / 434.3 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00256/0.5695, allocations: 115.9 kB / 434.4 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001634/0.5697, allocations: 75.98 kB / 434.5 MB, free: 14.66 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.507e-05/0.5697, allocations: 9.938 kB / 434.5 MB, free: 14.65 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004616/0.5743, allocations: 2.623 MB / 437.1 MB, free: 12.06 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.089e-05/0.5743, allocations: 12 kB / 437.1 MB, free: 12.05 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001541/0.5759, allocations: 0.6783 MB / 437.8 MB, free: 11.36 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001226/0.5771, allocations: 347.5 kB / 438.2 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01041/0.5876, allocations: 8.306 MB / 446.5 MB, free: 2.324 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003065/0.5907, allocations: 99.81 kB / 446.6 MB, free: 2.227 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002079/0.5909, allocations: 75.98 kB / 446.6 MB, free: 2.152 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.003013/0.5939, allocations: 0.9272 MB / 447.6 MB, free: 1.215 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006767/0.5946, allocations: 201.5 kB / 447.8 MB, free: 1.016 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004864/0.5995, allocations: 2.549 MB / 450.3 MB, free: 14.45 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.884e-05/0.5995, allocations: 16 kB / 450.3 MB, free: 14.43 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.091e-05/0.5995, allocations: 4 kB / 450.3 MB, free: 14.43 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.86e-05/0.5995, allocations: 11.97 kB / 450.3 MB, free: 14.41 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01082/0.6104, allocations: 5.43 MB / 455.8 MB, free: 8.91 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.825e-06/0.6104, allocations: 0 / 455.8 MB, free: 8.91 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009951/0.6114, allocations: 228 kB / 456 MB, free: 8.688 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001841/0.6133, allocations: 0.6968 MB / 456.7 MB, free: 7.98 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001019/0.6134, allocations: 28.19 kB / 456.7 MB, free: 7.953 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0116/0.625, allocations: 9.77 MB / 466.5 MB, free: 13.65 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/0.625, allocations: 4.062 kB / 466.5 MB, free: 13.65 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00593/0.631, allocations: 3.75 MB / 470.2 MB, free: 9.844 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001166/0.6322, allocations: 472.5 kB / 470.7 MB, free: 9.363 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002746/0.6325, allocations: 35.98 kB / 470.7 MB, free: 9.328 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009775/0.6334, allocations: 99.89 kB / 470.8 MB, free: 9.23 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003193/0.6338, allocations: 121 kB / 471 MB, free: 9.113 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.912e-05/0.6339, allocations: 36 kB / 471 MB, free: 9.078 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002314/0.6362, allocations: 1.248 MB / 472.2 MB, free: 7.84 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.6362, allocations: 0 / 472.2 MB, free: 7.84 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00394/0.6401, allocations: 1.004 MB / 473.2 MB, free: 6.836 MB / 382.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.0004193/0.6406, allocations: 159.9 kB / 473.4 MB, free: 6.668 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006905/0.6475, allocations: 4.493 MB / 477.9 MB, free: 2.066 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.004e-05/0.6475, allocations: 0 / 477.9 MB, free: 2.066 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002546/0.6501, allocations: 1.73 MB / 479.6 MB, free: 296 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003554/0.6537, allocations: 0.6015 MB / 480.2 MB, free: 15.7 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01277/0.6665, allocations: 6.439 MB / 486.7 MB, free: 9.203 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002365/0.6689, allocations: 2.095 MB / 488.8 MB, free: 7.07 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.002514/0.6714, allocations: 0.5912 MB / 489.4 MB, free: 6.477 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003872/0.6718, allocations: 131.4 kB / 489.5 MB, free: 6.348 MB / 398.1 MB Notification: Performance of SimCode: time 1.733e-06/0.6718, allocations: 0 / 489.5 MB, free: 6.348 MB / 398.1 MB Notification: Performance of Templates: time 0.07074/0.7426, allocations: 38.48 MB / 0.5156 GB, free: 228 kB / 430.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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/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