Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Rectifier.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.SMEE_Rectifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=22000,variableFilter="time|capacitor1.v|capacitor2.v|filter.x.1.|filter.x.2.|smee.is.1.|smee.is.2.|smee.idq_dr.1.|smee.idq_rr.2.|smee.idq_sr.1.|smee.idq_sr.2.|smee.lesigma.i|speed.phi|speed.w|voltageController.I.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Rectifier") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Rectifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=22000,variableFilter="time|capacitor1.v|capacitor2.v|filter.x.1.|filter.x.2.|smee.is.1.|smee.is.2.|smee.idq_dr.1.|smee.idq_rr.2.|smee.idq_sr.1.|smee.idq_sr.2.|smee.lesigma.i|speed.phi|speed.w|voltageController.I.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Rectifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001209/0.001209, allocations: 95.77 kB / 16.3 MB, free: 6.461 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.001184/0.001184, allocations: 183 kB / 17.19 MB, free: 6.34 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.3/1.3, allocations: 223.2 MB / 241.1 MB, free: 5.453 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002427/0.0002428, allocations: 7.5 kB / 300.7 MB, free: 5.941 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09296/0.09321, allocations: 50.43 MB / 351.1 MB, free: 11.75 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Rectifier): time 0.009406/0.1027, allocations: 9.713 MB / 360.9 MB, free: 1.992 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00935/0.112, allocations: 6.276 MB / 367.1 MB, free: 11.7 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001481/0.1135, allocations: 55.69 kB / 367.2 MB, free: 11.65 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001853/0.1154, allocations: 0.6959 MB / 367.9 MB, free: 10.95 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002238/0.1177, allocations: 0.867 MB / 368.8 MB, free: 10.08 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003236/0.1209, allocations: 1.331 MB / 370.1 MB, free: 8.758 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002814/0.1237, allocations: 2.22 MB / 372.3 MB, free: 6.535 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00151/0.1253, allocations: 1.42 MB / 373.7 MB, free: 5.082 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0011/0.1264, allocations: 1.059 MB / 374.8 MB, free: 4.02 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001227/0.1276, allocations: 1.241 MB / 376 MB, free: 2.773 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002391/0.1279, allocations: 148 kB / 376.2 MB, free: 2.629 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006724/0.1285, allocations: 323.7 kB / 376.5 MB, free: 2.312 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006342/0.1292, allocations: 0.7087 MB / 377.2 MB, free: 1.602 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004673/0.1297, allocations: 0.5705 MB / 377.8 MB, free: 1.023 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002757/0.1324, allocations: 3.697 MB / 381.5 MB, free: 13.32 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.416e-06/0.1324, allocations: 0 / 381.5 MB, free: 13.32 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.1324, allocations: 0 / 381.5 MB, free: 13.32 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.511e-05/0.1325, allocations: 0 / 381.5 MB, free: 13.32 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 617 * Number of variables: 617 Notification: Performance of Generate backend data structure: time 0.005794/0.1383, allocations: 2.961 MB / 384.4 MB, free: 10.29 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.902e-05/0.1384, allocations: 8.031 kB / 384.4 MB, free: 10.28 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001257/0.1396, allocations: 428 kB / 384.8 MB, free: 9.859 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002766/0.1424, allocations: 1.649 MB / 386.5 MB, free: 8.156 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001134/0.1425, allocations: 180.7 kB / 386.7 MB, free: 7.977 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003121/0.1428, allocations: 247.9 kB / 386.9 MB, free: 7.734 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00447/0.1473, allocations: 3.018 MB / 389.9 MB, free: 4.598 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.551e-05/0.1474, allocations: 11.91 kB / 389.9 MB, free: 4.586 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002216/0.1476, allocations: 100 kB / 390 MB, free: 4.488 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.839e-05/0.1477, allocations: 100.6 kB / 390.1 MB, free: 4.387 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00377/0.1515, allocations: 2.528 MB / 392.7 MB, free: 1.844 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01356/0.1651, allocations: 10.29 MB / 403 MB, free: 7.238 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002995/0.1681, allocations: 2.714 MB / 405.7 MB, free: 4.352 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002568/0.1684, allocations: 126.4 kB / 405.8 MB, free: 4.211 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.156e-05/0.1684, allocations: 47.88 kB / 405.8 MB, free: 4.156 MB / 334.1 MB Notification: Performance of pre-optimization done (n=149): time 3.166e-06/0.1684, allocations: 0 / 405.8 MB, free: 4.156 MB / 334.1 MB Notification: Performance of matching and sorting (n=166): time 0.01578/0.1842, allocations: 8.18 MB / 414 MB, free: 11.79 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.076e-05/0.1843, allocations: 175.5 kB / 414.2 MB, free: 11.58 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002328/0.1867, allocations: 1.834 MB / 416 MB, free: 9.703 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001085/0.1868, allocations: 57.62 kB / 416.1 MB, free: 9.641 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007478/0.1875, allocations: 1.157 MB / 417.2 MB, free: 8.469 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004132/0.1879, allocations: 0.5583 MB / 417.8 MB, free: 7.902 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.921e-05/0.188, allocations: 39.98 kB / 417.8 MB, free: 7.863 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001446/0.1882, allocations: 381.9 kB / 418.2 MB, free: 7.484 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001224/0.1894, allocations: 0.8589 MB / 419.1 MB, free: 6.625 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001475/0.1909, allocations: 1.315 MB / 420.4 MB, free: 5.133 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001458/0.1924, allocations: 1.052 MB / 421.4 MB, free: 4.082 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.165e-06/0.1924, allocations: 7.953 kB / 421.4 MB, free: 4.074 MB / 350.1 MB Notification: Performance of matching and sorting (n=242) (initialization): time 0.004763/0.1972, allocations: 3.113 MB / 424.6 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.1943/0.3914, allocations: 4.979 MB / 429.5 MB, free: 58.17 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.648e-05/0.3915, allocations: 13.94 kB / 429.6 MB, free: 58.17 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002064/0.3936, allocations: 0.7665 MB / 430.3 MB, free: 58.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001496/0.3951, allocations: 373.6 kB / 430.7 MB, free: 58.12 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01183/0.407, allocations: 11.87 MB / 442.6 MB, free: 51.46 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001835/0.4089, allocations: 101.8 kB / 442.7 MB, free: 51.46 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000149/0.409, allocations: 76.38 kB / 442.7 MB, free: 51.46 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.016e-05/0.409, allocations: 3.688 kB / 442.7 MB, free: 51.46 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004814/0.4138, allocations: 2.885 MB / 445.6 MB, free: 51.17 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.765e-05/0.4139, allocations: 13.75 kB / 445.6 MB, free: 51.17 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001712/0.4156, allocations: 0.7679 MB / 446.4 MB, free: 51.11 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001341/0.417, allocations: 363.1 kB / 446.8 MB, free: 51.09 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00994/0.4269, allocations: 11.87 MB / 458.6 MB, free: 42.3 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00143/0.4284, allocations: 100.1 kB / 458.7 MB, free: 42.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001412/0.4285, allocations: 70.88 kB / 458.8 MB, free: 42.23 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 7 (idealDiode1.idealDiode[1].off,idealDiode1.idealDiode[2].off,idealDiode1.idealDiode[3].off,idealDiode2.idealDiode[1].off,idealDiode2.idealDiode[2].off,idealDiode2.idealDiode[3].off,voltageController.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (194): * Single equations (assignments): 186 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 5 * 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 {(3,100.0%) 16,(1,100.0%) 3} * Non-linear torn systems: 3 {2 7,2 7,2 7} Notification: Performance of prepare postOptimizeDAE: time 0.001208/0.4297, allocations: 0.7993 MB / 459.6 MB, free: 41.67 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003846/0.4301, allocations: 213.3 kB / 459.8 MB, free: 41.67 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004011/0.4342, allocations: 2.839 MB / 462.6 MB, free: 40 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.003e-05/0.4342, allocations: 19.06 kB / 462.7 MB, free: 39.99 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.978e-06/0.4342, allocations: 3.812 kB / 462.7 MB, free: 39.99 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.236e-05/0.4342, allocations: 11.97 kB / 462.7 MB, free: 39.98 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007651/0.4419, allocations: 5.665 MB / 468.3 MB, free: 35.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.424e-06/0.4419, allocations: 4 kB / 468.3 MB, free: 35.06 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008969/0.4428, allocations: 235.7 kB / 468.6 MB, free: 34.83 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00169/0.4445, allocations: 0.8149 MB / 469.4 MB, free: 34 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001035/0.4446, allocations: 43.98 kB / 469.4 MB, free: 33.96 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009785/0.4544, allocations: 13.35 MB / 482.8 MB, free: 19.84 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.308e-06/0.4544, allocations: 7.938 kB / 482.8 MB, free: 19.83 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004864/0.4593, allocations: 4.262 MB / 487 MB, free: 15.35 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009833/0.4603, allocations: 482.3 kB / 487.5 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003927/0.4607, allocations: 39.98 kB / 487.6 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001128/0.4618, allocations: 99.91 kB / 487.7 MB, free: 14.72 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002765/0.4621, allocations: 137 kB / 487.8 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.006e-05/0.4622, allocations: 47.98 kB / 487.8 MB, free: 14.54 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001657/0.4639, allocations: 1.25 MB / 489.1 MB, free: 13.27 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4639, allocations: 4 kB / 489.1 MB, free: 13.26 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.003474/0.4674, allocations: 1.071 MB / 490.2 MB, free: 12.2 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 12 (smee.idq_sr[1],smee.idq_sr[2],smee.idq_rr[1],smee.idq_rr[2],smee.idq_dr[1],speed.phi,speed.w,voltageController.I.y,capacitor1.v,capacitor2.v,filter.x[1],filter.x[2]) * Number of discrete variables: 6 (idealDiode1.idealDiode[1].off,idealDiode1.idealDiode[2].off,idealDiode1.idealDiode[3].off,idealDiode2.idealDiode[1].off,idealDiode2.idealDiode[2].off,idealDiode2.idealDiode[3].off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (123): * Single equations (assignments): 117 * 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: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(3,100.0%) 16,(1,100.0%) 3,(2,100.0%) 1} * Non-linear torn systems: 3 {2 7,2 7,2 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004298/0.4678, allocations: 214.6 kB / 490.4 MB, free: 11.99 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.006338/0.4742, allocations: 5.248 MB / 495.6 MB, free: 6.578 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.638e-06/0.4742, allocations: 0 / 495.6 MB, free: 6.578 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002359/0.4765, allocations: 2.069 MB / 497.7 MB, free: 4.438 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002141/0.4787, allocations: 0.5358 MB / 498.2 MB, free: 3.902 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008798/0.4875, allocations: 6.573 MB / 0.493 GB, free: 13.29 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001922/0.4894, allocations: 2.03 MB / 0.4949 GB, free: 11.22 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001647/0.4911, allocations: 0.5012 MB / 0.4954 GB, free: 10.72 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003975/0.4915, allocations: 131.4 kB / 0.4956 GB, free: 10.59 MB / 366.1 MB Notification: Performance of SimCode: time 7.41e-07/0.4915, allocations: 0 / 0.4956 GB, free: 10.59 MB / 366.1 MB Notification: Performance of Templates: time 0.06462/0.5562, allocations: 39.58 MB / 0.5342 GB, free: 3.391 MB / 398.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Rectifier.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Rectifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Rectifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Rectifier.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Rectifier.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Rectifier -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Rectifier.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Rectifier_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMEE_Rectifier/SMEE_Rectifier.csv","../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Rectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches