Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Rectifier.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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.excitation.electroMagneticConverter.Phi.re|smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|speed.phi|speed.w|voltageController.I.y",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Rectifier") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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.excitation.electroMagneticConverter.Phi.re|smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|speed.phi|speed.w|voltageController.I.y",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Rectifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00138/0.00138, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.413/1.413, allocations: 221.5 MB / 230.3 MB, free: 7.566 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008926/0.0008926, allocations: 92.61 kB / 281.2 MB, free: 5.324 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.726e-05/1.729e-05, allocations: 0 / 337.1 MB, free: 10 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1094/0.1095, allocations: 50.42 MB / 387.5 MB, free: 7.547 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3883/0.4978, allocations: 131.8 MB / 0.5071 GB, free: 10.92 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002862/0.4982, allocations: 95.94 kB / 0.5072 GB, free: 10.82 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4619/0.9601, allocations: 94.96 MB / 0.5999 GB, free: 94.71 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.9602, allocations: 0 / 0.5999 GB, free: 94.71 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003806/0.9605, allocations: 90.28 kB / 0.6 GB, free: 94.69 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 958 * Number of variables: 958 Notification: Performance of Generate backend data structure: time 0.01105/0.9716, allocations: 3.746 MB / 0.6037 GB, free: 92.84 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.947e-05/0.9717, allocations: 7.719 kB / 0.6037 GB, free: 92.84 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005429/0.9771, allocations: 0.8994 MB / 0.6046 GB, free: 92.55 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01081/0.988, allocations: 3.613 MB / 0.6081 GB, free: 90.77 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000216/0.9882, allocations: 119.7 kB / 0.6082 GB, free: 90.77 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001247/0.9895, allocations: 227.2 kB / 0.6084 GB, free: 90.76 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007778/0.9973, allocations: 3.496 MB / 0.6118 GB, free: 89.26 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009777/1.007, allocations: 4.034 MB / 0.6158 GB, free: 87.42 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001314/1.007, allocations: 11 kB / 0.6158 GB, free: 87.41 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007494/1.008, allocations: 3.688 kB / 0.6158 GB, free: 87.41 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001279/1.008, allocations: 154.7 kB / 0.6159 GB, free: 87.39 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02423/1.032, allocations: 15.3 MB / 0.6309 GB, free: 75.12 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005691/1.038, allocations: 7.679 MB / 0.6384 GB, free: 66.58 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002311/1.04, allocations: 1.646 MB / 0.64 GB, free: 64.95 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008364/1.049, allocations: 4.917 MB / 0.6448 GB, free: 59.91 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.118e-05/1.049, allocations: 52.56 kB / 0.6448 GB, free: 59.86 MB / 426.7 MB Notification: Performance of pre-optimization done (n=174): time 5.961e-06/1.049, allocations: 0 / 0.6448 GB, free: 59.86 MB / 426.7 MB Notification: Performance of matching and sorting (n=177): time 0.009785/1.059, allocations: 5.233 MB / 0.65 GB, free: 54.52 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.241e-05/1.059, allocations: 184.2 kB / 0.6501 GB, free: 54.3 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002968/1.062, allocations: 1.559 MB / 0.6517 GB, free: 52.71 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003292/1.062, allocations: 29.7 kB / 0.6517 GB, free: 52.68 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009899/1.063, allocations: 1.704 MB / 0.6533 GB, free: 50.95 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004179/1.064, allocations: 0.5773 MB / 0.6539 GB, free: 50.36 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.635e-05/1.064, allocations: 4 kB / 0.6539 GB, free: 50.36 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001262/1.064, allocations: 398.3 kB / 0.6543 GB, free: 49.96 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000996/1.065, allocations: 0.7619 MB / 0.655 GB, free: 49.2 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001385/1.066, allocations: 1.387 MB / 0.6564 GB, free: 47.53 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001767/1.068, allocations: 1.161 MB / 0.6575 GB, free: 46.36 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.131e-05/1.068, allocations: 11.94 kB / 0.6575 GB, free: 46.35 MB / 426.7 MB Notification: Performance of matching and sorting (n=284) (initialization): time 0.004527/1.073, allocations: 2.88 MB / 0.6604 GB, free: 43.43 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001567/1.074, allocations: 7.722 MB / 0.6679 GB, free: 35.12 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.098e-05/1.074, allocations: 20 kB / 0.6679 GB, free: 35.1 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009158/1.075, allocations: 463.9 kB / 0.6684 GB, free: 34.63 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001714/1.077, allocations: 479.2 kB / 0.6688 GB, free: 34.16 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005505/1.082, allocations: 7.771 MB / 0.6764 GB, free: 25.93 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002171/1.085, allocations: 59.94 kB / 0.6765 GB, free: 25.88 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001948/1.085, allocations: 92 kB / 0.6765 GB, free: 25.79 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.197e-05/1.085, allocations: 5.562 kB / 0.6765 GB, free: 25.78 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003877/1.089, allocations: 2.606 MB / 0.6791 GB, free: 23.14 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.018e-05/1.089, allocations: 23.98 kB / 0.6791 GB, free: 23.12 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007969/1.09, allocations: 468.3 kB / 0.6796 GB, free: 22.64 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001565/1.091, allocations: 471.3 kB / 0.68 GB, free: 22.18 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005458/1.097, allocations: 7.759 MB / 0.6876 GB, free: 13.96 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002401/1.099, allocations: 47.81 kB / 0.6876 GB, free: 13.92 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003087/1.099, allocations: 95.98 kB / 0.6877 GB, free: 13.82 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 85 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (252): * Single equations (assignments): 245 * 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: 4 * 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: 1 {(1,100.0%) 5} * Non-linear torn systems: 3 {2 7,2 7,2 7} Notification: Performance of prepare postOptimizeDAE: time 0.000564/1.1, allocations: 172.3 kB / 0.6879 GB, free: 13.65 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004252/1.1, allocations: 229.2 kB / 0.6881 GB, free: 13.42 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004567/1.105, allocations: 2.676 MB / 0.6907 GB, free: 10.68 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.231e-05/1.105, allocations: 16 kB / 0.6907 GB, free: 10.66 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.235e-06/1.105, allocations: 4 kB / 0.6907 GB, free: 10.66 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.51e-05/1.105, allocations: 11.97 kB / 0.6908 GB, free: 10.64 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008571/1.114, allocations: 5.372 MB / 0.696 GB, free: 5.184 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.474e-06/1.114, allocations: 0 / 0.696 GB, free: 5.184 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001046/1.115, allocations: 247.7 kB / 0.6962 GB, free: 4.941 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001326/1.116, allocations: 0.6414 MB / 0.6969 GB, free: 4.281 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001174/1.116, allocations: 12 kB / 0.6969 GB, free: 4.27 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0113/1.128, allocations: 12.11 MB / 0.7087 GB, free: 7.484 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.033e-06/1.128, allocations: 0 / 0.7087 GB, free: 7.484 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006952/1.135, allocations: 3.867 MB / 0.7125 GB, free: 3.469 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001469/1.136, allocations: 494.1 kB / 0.7129 GB, free: 2.965 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003579/1.136, allocations: 11.95 kB / 0.713 GB, free: 2.953 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001121/1.138, allocations: 59.94 kB / 0.713 GB, free: 2.895 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003247/1.138, allocations: 133.7 kB / 0.7131 GB, free: 2.762 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001011/1.138, allocations: 51.98 kB / 0.7132 GB, free: 2.711 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001871/1.14, allocations: 1.161 MB / 0.7143 GB, free: 1.531 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.91e-07/1.14, allocations: 4 kB / 0.7143 GB, free: 1.527 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004736/1.145, allocations: 1.164 MB / 0.7155 GB, free: 372 kB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 12 (smee.stator.core.Phi.re,smee.stator.core.Phi.im,smee.excitation.electroMagneticConverter.Phi.re,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (124): * Single equations (assignments): 118 * 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 {(1,100.0%) 5,(1,100.0%) 8,(2,100.0%) 15} * Non-linear torn systems: 3 {2 7,2 7,2 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.2613/1.406, allocations: 457.9 kB / 0.7159 GB, free: 98.95 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.007047/1.413, allocations: 4.466 MB / 0.7203 GB, free: 97.81 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.565e-06/1.413, allocations: 2.719 kB / 0.7203 GB, free: 97.81 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002433/1.415, allocations: 1.81 MB / 0.722 GB, free: 97.16 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002925/1.418, allocations: 493.4 kB / 0.7225 GB, free: 97.15 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01158/1.43, allocations: 5.454 MB / 0.7278 GB, free: 95.89 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003463/1.434, allocations: 2.587 MB / 0.7304 GB, free: 95.09 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.003879/1.437, allocations: 0.7606 MB / 0.7311 GB, free: 95 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003675/1.438, allocations: 114.5 kB / 0.7312 GB, free: 94.99 MB / 442.7 MB Notification: Performance of SimCode: time 1.382e-06/1.438, allocations: 0 / 0.7312 GB, free: 94.99 MB / 442.7 MB Notification: Performance of Templates: time 0.06688/1.505, allocations: 38.48 MB / 0.7688 GB, free: 92.93 MB / 442.7 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Rectifier.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Rectifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Rectifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Rectifier.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Rectifier.sim & ./Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Rectifier -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Rectifier.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Rectifier_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMEE_Rectifier/SMEE_Rectifier.csv","../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Rectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches