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.001118/0.001118, allocations: 191.6 kB / 17.37 MB, free: 4.406 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.237/1.237, allocations: 226.5 MB / 244.7 MB, free: 6.445 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007374/0.0007373, allocations: 89.19 kB / 296.8 MB, free: 6.66 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002086/0.0002086, allocations: 7.984 kB / 356.8 MB, free: 10.66 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1865/0.1868, allocations: 51.29 MB / 408 MB, free: 27.67 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Rectifier): time 0.007535/0.1943, allocations: 10.6 MB / 418.7 MB, free: 17.02 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.008096/0.2025, allocations: 6.244 MB / 424.9 MB, free: 10.78 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001245/0.2038, allocations: 59.75 kB / 425 MB, free: 10.72 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001478/0.2053, allocations: 0.707 MB / 425.7 MB, free: 10.01 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001722/0.207, allocations: 0.8193 MB / 426.5 MB, free: 9.188 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003/0.21, allocations: 1.389 MB / 427.9 MB, free: 7.809 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.003117/0.2131, allocations: 3.506 MB / 431.4 MB, free: 4.293 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001777/0.2149, allocations: 1.821 MB / 433.2 MB, free: 2.41 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001569/0.2165, allocations: 1.12 MB / 434.3 MB, free: 1.285 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001504/0.218, allocations: 1.393 MB / 435.7 MB, free: 15.89 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003076/0.2183, allocations: 156 kB / 435.9 MB, free: 15.73 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000922/0.2193, allocations: 387.5 kB / 436.2 MB, free: 15.36 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007206/0.22, allocations: 0.7319 MB / 437 MB, free: 14.62 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001477/0.2215, allocations: 1.358 MB / 438.3 MB, free: 13.25 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003388/0.2249, allocations: 3.736 MB / 442.1 MB, free: 9.504 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.049e-06/0.2249, allocations: 0 / 442.1 MB, free: 9.504 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.2249, allocations: 4 kB / 442.1 MB, free: 9.5 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001031/0.225, allocations: 4 kB / 442.1 MB, free: 9.496 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.00575/0.2308, allocations: 2.933 MB / 445 MB, free: 6.5 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.76e-05/0.2308, allocations: 12.02 kB / 445 MB, free: 6.488 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001431/0.2323, allocations: 425 kB / 445.4 MB, free: 6.07 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002975/0.2353, allocations: 1.711 MB / 447.1 MB, free: 4.305 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001207/0.2354, allocations: 180.9 kB / 447.3 MB, free: 4.125 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003494/0.2358, allocations: 243.9 kB / 447.6 MB, free: 3.887 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004853/0.2406, allocations: 3.037 MB / 450.6 MB, free: 0.7305 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.981e-05/0.2407, allocations: 11.91 kB / 450.6 MB, free: 0.7188 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002116/0.2409, allocations: 96 kB / 450.7 MB, free: 0.625 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.786e-05/0.241, allocations: 112.5 kB / 450.8 MB, free: 0.5117 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004348/0.2454, allocations: 2.516 MB / 453.3 MB, free: 13.98 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01522/0.2606, allocations: 10.31 MB / 463.6 MB, free: 3.355 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003175/0.2639, allocations: 2.722 MB / 466.4 MB, free: 468 kB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001822/0.2657, allocations: 1.243 MB / 467.6 MB, free: 15.21 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002407/0.266, allocations: 118.4 kB / 467.7 MB, free: 15.07 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.658e-05/0.266, allocations: 55.88 kB / 467.8 MB, free: 15.01 MB / 346.7 MB Notification: Performance of pre-optimization done (n=149): time 3.537e-06/0.266, allocations: 0 / 467.8 MB, free: 15.01 MB / 346.7 MB Notification: Performance of matching and sorting (n=166): time 0.01629/0.2823, allocations: 8.098 MB / 475.9 MB, free: 6.746 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.829e-05/0.2824, allocations: 179.5 kB / 476 MB, free: 6.531 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002572/0.285, allocations: 1.85 MB / 477.9 MB, free: 4.637 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000117/0.2852, allocations: 53.7 kB / 477.9 MB, free: 4.578 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008012/0.286, allocations: 1.157 MB / 479.1 MB, free: 3.406 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004241/0.2864, allocations: 0.566 MB / 479.7 MB, free: 2.832 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.946e-05/0.2865, allocations: 40 kB / 479.7 MB, free: 2.793 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000167/0.2867, allocations: 381.8 kB / 480.1 MB, free: 2.414 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001345/0.288, allocations: 0.8627 MB / 480.9 MB, free: 1.551 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001572/0.2896, allocations: 1.319 MB / 482.3 MB, free: 52 kB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002854/0.2925, allocations: 2.25 MB / 484.5 MB, free: 13.64 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.604e-06/0.2925, allocations: 4 kB / 484.5 MB, free: 13.63 MB / 362.7 MB Notification: Performance of matching and sorting (n=242) (initialization): time 0.004855/0.2974, allocations: 3.133 MB / 487.7 MB, free: 10.45 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002497/0.2976, allocations: 470.9 kB / 488.1 MB, free: 9.824 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.513e-05/0.2977, allocations: 16 kB / 488.1 MB, free: 9.809 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001836/0.2995, allocations: 0.7856 MB / 488.9 MB, free: 9.004 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001251/0.3008, allocations: 367.4 kB / 489.3 MB, free: 8.645 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01147/0.3123, allocations: 11.85 MB / 0.4894 GB, free: 12.13 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001546/0.3138, allocations: 103.9 kB / 0.4895 GB, free: 12.03 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00013/0.314, allocations: 72.09 kB / 0.4895 GB, free: 11.96 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.133e-06/0.314, allocations: 7.938 kB / 0.4896 GB, free: 11.95 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004343/0.3183, allocations: 2.899 MB / 0.4924 GB, free: 9.016 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.599e-05/0.3184, allocations: 20.33 kB / 0.4924 GB, free: 8.996 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001764/0.3202, allocations: 0.7856 MB / 0.4932 GB, free: 8.191 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001194/0.3214, allocations: 355.5 kB / 0.4935 GB, free: 7.844 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1769/0.4983, allocations: 11.84 MB / 0.5051 GB, free: 86.04 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001621/0.4999, allocations: 98 kB / 0.5052 GB, free: 86.04 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001247/0.5001, allocations: 72.55 kB / 0.5052 GB, free: 86.04 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.001254/0.5013, allocations: 0.8018 MB / 0.506 GB, free: 85.75 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003894/0.5017, allocations: 216.6 kB / 0.5062 GB, free: 85.75 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004125/0.5059, allocations: 2.858 MB / 0.509 GB, free: 84.59 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.33e-05/0.5059, allocations: 15.84 kB / 0.509 GB, free: 84.59 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.027e-06/0.5059, allocations: 11.56 kB / 0.509 GB, free: 84.59 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.587e-05/0.5059, allocations: 7.641 kB / 0.5091 GB, free: 84.59 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007892/0.5138, allocations: 5.698 MB / 0.5146 GB, free: 82.22 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.554e-06/0.5139, allocations: 3.438 kB / 0.5146 GB, free: 82.22 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008643/0.5147, allocations: 231.4 kB / 0.5148 GB, free: 82.2 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001841/0.5166, allocations: 0.8299 MB / 0.5157 GB, free: 81.96 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001023/0.5167, allocations: 44.55 kB / 0.5157 GB, free: 81.94 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01001/0.5267, allocations: 13.29 MB / 0.5287 GB, free: 70.3 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.188e-06/0.5267, allocations: 7.938 kB / 0.5287 GB, free: 70.3 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005029/0.5318, allocations: 4.045 MB / 0.5326 GB, free: 66.29 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009212/0.5327, allocations: 478.3 kB / 0.5331 GB, free: 65.89 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002441/0.533, allocations: 47.2 kB / 0.5331 GB, free: 65.85 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001001/0.534, allocations: 95.91 kB / 0.5332 GB, free: 65.75 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000293/0.5343, allocations: 135.9 kB / 0.5334 GB, free: 65.62 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.495e-05/0.5344, allocations: 51.98 kB / 0.5334 GB, free: 65.57 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001524/0.5359, allocations: 1.265 MB / 0.5346 GB, free: 64.29 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.5359, allocations: 0 / 0.5346 GB, free: 64.29 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002961/0.5389, allocations: 1.082 MB / 0.5357 GB, free: 63.21 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.0005064/0.5394, allocations: 249.5 kB / 0.5359 GB, free: 62.98 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.006073/0.5455, allocations: 5.257 MB / 0.5411 GB, free: 57.57 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.032e-06/0.5455, allocations: 0 / 0.5411 GB, free: 57.57 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002447/0.548, allocations: 2.093 MB / 0.5431 GB, free: 55.41 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003192/0.5512, allocations: 0.5598 MB / 0.5437 GB, free: 54.88 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007604/0.5588, allocations: 6.615 MB / 0.5501 GB, free: 48.2 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001196/0.5601, allocations: 1.957 MB / 0.552 GB, free: 46.21 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000512/0.5606, allocations: 131.4 kB / 0.5522 GB, free: 46.09 MB / 378.7 MB Notification: Performance of SimCode: time 1.072e-06/0.5606, allocations: 0 / 0.5522 GB, free: 46.09 MB / 378.7 MB Notification: Performance of Templates: time 0.08948/0.6501, allocations: 105 MB / 0.6547 GB, free: 5.113 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