Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Rectifier.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_trunk_cpp_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_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Rectifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001087/0.001086, allocations: 193.5 kB / 17.05 MB, free: 5.102 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.315/1.315, allocations: 226.6 MB / 244.3 MB, free: 8.215 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008227/0.000823, allocations: 91.25 kB / 296.4 MB, free: 7.012 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002745/0.0002745, allocations: 4 kB / 356.2 MB, free: 11.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2234/0.2237, allocations: 51.29 MB / 407.5 MB, free: 27.85 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Rectifier): time 0.007277/0.231, allocations: 10.59 MB / 418.1 MB, free: 17.21 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.009949/0.241, allocations: 6.249 MB / 424.3 MB, free: 10.96 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002405/0.2435, allocations: 59.69 kB / 424.4 MB, free: 10.9 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002516/0.246, allocations: 0.7109 MB / 425.1 MB, free: 10.19 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003068/0.2491, allocations: 0.8037 MB / 425.9 MB, free: 9.379 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0042/0.2533, allocations: 1.395 MB / 427.3 MB, free: 7.992 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.004109/0.2575, allocations: 3.451 MB / 430.8 MB, free: 4.531 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002518/0.26, allocations: 1.42 MB / 432.2 MB, free: 3.078 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002026/0.262, allocations: 1.116 MB / 433.3 MB, free: 1.957 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002088/0.2641, allocations: 1.404 MB / 434.7 MB, free: 0.5469 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007746/0.2649, allocations: 156 kB / 434.9 MB, free: 404 kB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001497/0.2665, allocations: 339.7 kB / 435.2 MB, free: 64 kB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00129/0.2678, allocations: 0.7435 MB / 435.9 MB, free: 15.32 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001189/0.269, allocations: 0.5705 MB / 436.5 MB, free: 14.74 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004298/0.2733, allocations: 3.736 MB / 440.2 MB, free: 10.99 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.693e-06/0.2733, allocations: 0 / 440.2 MB, free: 10.99 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.214e-06/0.2733, allocations: 4 kB / 440.2 MB, free: 10.99 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0002026/0.2735, allocations: 0 / 440.2 MB, free: 10.99 MB / 314.7 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.007284/0.2808, allocations: 2.961 MB / 443.2 MB, free: 7.961 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.122e-05/0.2809, allocations: 8.031 kB / 443.2 MB, free: 7.953 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001876/0.2827, allocations: 428 kB / 443.6 MB, free: 7.531 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003731/0.2865, allocations: 1.641 MB / 445.3 MB, free: 5.836 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001296/0.2867, allocations: 184.7 kB / 445.4 MB, free: 5.652 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004429/0.2871, allocations: 239.9 kB / 445.7 MB, free: 5.418 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005204/0.2923, allocations: 3.037 MB / 448.7 MB, free: 2.262 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.311e-05/0.2924, allocations: 4 kB / 448.7 MB, free: 2.258 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002137/0.2926, allocations: 96 kB / 448.8 MB, free: 2.164 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.876e-05/0.2927, allocations: 112.5 kB / 448.9 MB, free: 2.051 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004064/0.2968, allocations: 2.516 MB / 451.4 MB, free: 15.52 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01466/0.3115, allocations: 10.3 MB / 461.7 MB, free: 4.898 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003082/0.3146, allocations: 2.729 MB / 464.5 MB, free: 1.988 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001791/0.3164, allocations: 1.235 MB / 465.7 MB, free: 0.75 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002378/0.3167, allocations: 130.4 kB / 465.8 MB, free: 0.6016 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.529e-05/0.3167, allocations: 47.88 kB / 465.9 MB, free: 0.5469 MB / 330.7 MB Notification: Performance of pre-optimization done (n=149): time 3.727e-06/0.3167, allocations: 0 / 465.9 MB, free: 0.5469 MB / 330.7 MB Notification: Performance of matching and sorting (n=166): time 0.01797/0.3347, allocations: 8.094 MB / 474 MB, free: 8.289 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000115/0.3348, allocations: 179.5 kB / 474.2 MB, free: 8.074 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003695/0.3386, allocations: 1.85 MB / 476 MB, free: 6.18 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002183/0.3388, allocations: 53.7 kB / 476.1 MB, free: 6.121 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009546/0.3398, allocations: 1.157 MB / 477.2 MB, free: 4.949 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006241/0.3404, allocations: 0.5661 MB / 477.8 MB, free: 4.375 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001379/0.3406, allocations: 40 kB / 477.8 MB, free: 4.336 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002019/0.3408, allocations: 381.9 kB / 478.2 MB, free: 3.957 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001502/0.3423, allocations: 0.8588 MB / 479.1 MB, free: 3.098 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001821/0.3441, allocations: 1.319 MB / 480.4 MB, free: 1.598 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001796/0.3459, allocations: 1.04 MB / 481.4 MB, free: 0.5586 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.341e-05/0.346, allocations: 4 kB / 481.4 MB, free: 0.5547 MB / 346.7 MB Notification: Performance of matching and sorting (n=242) (initialization): time 0.00544/0.3514, allocations: 3.141 MB / 484.6 MB, free: 13.36 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003099/0.3517, allocations: 459.2 kB / 485 MB, free: 12.75 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.278e-05/0.3518, allocations: 19.94 kB / 485 MB, free: 12.73 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001899/0.3537, allocations: 0.7995 MB / 485.8 MB, free: 11.91 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001281/0.355, allocations: 363.4 kB / 486.2 MB, free: 11.55 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01208/0.3671, allocations: 11.85 MB / 498 MB, free: 15.05 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001878/0.369, allocations: 99.91 kB / 498.1 MB, free: 14.96 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002717/0.3693, allocations: 72 kB / 498.2 MB, free: 14.89 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.003e-05/0.3693, allocations: 11.94 kB / 498.2 MB, free: 14.88 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004867/0.3742, allocations: 2.895 MB / 0.4894 GB, free: 11.94 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.661e-05/0.3742, allocations: 12 kB / 0.4894 GB, free: 11.93 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001794/0.376, allocations: 0.7978 MB / 0.4901 GB, free: 11.11 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001306/0.3774, allocations: 363.4 kB / 0.4905 GB, free: 10.76 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1975/0.5749, allocations: 11.82 MB / 0.502 GB, free: 86.6 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002029/0.5769, allocations: 98 kB / 0.5021 GB, free: 86.6 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000189/0.5771, allocations: 69 kB / 0.5022 GB, free: 86.6 MB / 378.7 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 (191): * Single equations (assignments): 183 * 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%) 6} * Non-linear torn systems: 3 {2 7,2 7,2 7} Notification: Performance of prepare postOptimizeDAE: time 0.001634/0.5788, allocations: 0.8073 MB / 0.503 GB, free: 86.41 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004619/0.5792, allocations: 215.5 kB / 0.5032 GB, free: 86.41 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004731/0.584, allocations: 2.858 MB / 0.506 GB, free: 85.96 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.211e-05/0.584, allocations: 15.81 kB / 0.506 GB, free: 85.96 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.468e-06/0.584, allocations: 3.719 kB / 0.506 GB, free: 85.96 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.606e-05/0.584, allocations: 16.45 kB / 0.506 GB, free: 85.96 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008757/0.5928, allocations: 5.686 MB / 0.5116 GB, free: 83.62 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.835e-06/0.5928, allocations: 3.75 kB / 0.5116 GB, free: 83.62 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008969/0.5937, allocations: 238.3 kB / 0.5118 GB, free: 83.6 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001879/0.5956, allocations: 0.8401 MB / 0.5126 GB, free: 83.36 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001081/0.5958, allocations: 42.05 kB / 0.5127 GB, free: 83.34 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01025/0.606, allocations: 13.29 MB / 0.5256 GB, free: 72.91 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.912e-06/0.6061, allocations: 7.875 kB / 0.5256 GB, free: 72.91 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005313/0.6114, allocations: 4.042 MB / 0.5296 GB, free: 69.06 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001173/0.6126, allocations: 481.5 kB / 0.53 GB, free: 68.64 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002421/0.6128, allocations: 40.55 kB / 0.5301 GB, free: 68.6 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001051/0.6139, allocations: 107.1 kB / 0.5302 GB, free: 68.5 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002937/0.6142, allocations: 132.3 kB / 0.5303 GB, free: 68.37 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.278e-05/0.6143, allocations: 47.98 kB / 0.5304 GB, free: 68.32 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001683/0.616, allocations: 1.262 MB / 0.5316 GB, free: 67.04 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.616, allocations: 0 / 0.5316 GB, free: 67.04 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003567/0.6196, allocations: 1.082 MB / 0.5327 GB, free: 65.96 MB / 378.7 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 (120): * Single equations (assignments): 114 * 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%) 6,(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.0004867/0.6201, allocations: 218.6 kB / 0.5329 GB, free: 65.76 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.006359/0.6264, allocations: 5.267 MB / 0.538 GB, free: 60.34 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 9.418e-06/0.6265, allocations: 0 / 0.538 GB, free: 60.34 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002569/0.6291, allocations: 2.084 MB / 0.54 GB, free: 58.19 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002818/0.6319, allocations: 0.567 MB / 0.5406 GB, free: 57.64 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008326/0.6403, allocations: 6.627 MB / 0.5471 GB, free: 50.96 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00125/0.6415, allocations: 1.954 MB / 0.549 GB, free: 48.97 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005622/0.6421, allocations: 135.4 kB / 0.5491 GB, free: 48.84 MB / 378.7 MB Notification: Performance of SimCode: time 1.253e-06/0.6421, allocations: 0 / 0.5491 GB, free: 48.84 MB / 378.7 MB Notification: Performance of Templates: time 0.1025/0.7447, allocations: 105 MB / 0.6516 GB, free: 7.902 MB / 442.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Rectifier.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Rectifier.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Rectifier.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Rectifier.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Rectifier.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Rectifier --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Rectifier.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Rectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches